Cake PHP Tutorial- Day-1 Part-1

Posted: July 19, 2014 in CakePHP, CakePHP Tutorial, PHP
Tags: ,

Day-1 (Part-1):

I am getting many requests from students and PHP Programmers for an easy CakePHP Tutorial with step by step demonstration. I also have searched various sources, but unfortunately, CakePHP itself  lacks demonstrations and also, the existing tutorials are outdated with CakePHP 1.2.  Here is a tutorial demonstrating a small Project with CakePHP 2.5.2. On every saturday/sunday, I am able to update the blog as getting very less time to do this.

1. Download cakephp from cakephp.org   version 2.5.2 (Stable)
2. Keep it at root (For me it is C://wamp/www/)
3. Create a folder “tut” with in “www” (let “tut” refers  “tutorial”)
4. Extract all files of CakePHP zip file to “tut” folder as shown below.
1

5. Now run the project. For me it is; localhost:81/tut
6. The page will display as below.
2
7. Open app/Config/core.php in any editor. (I am using Dreamweaver). Go to line number 225 and change the Security.salt to any alphanumeric string.  Now, go to Line Number 230 and change the Security.CipherSeed to any number as shown below.
Note: You can use this website to generate strong security salt.
3
8. Create a database “tut“. Again, I request you to use the naming convention as I am using. Once you do this project, you can manipulate and keep your research.

9. Rename app/config/database.php.default to database.php and open it in the editor.
4
5

10. Go to line number 65 and change the database-login id, database-password and database name. For me, it is like;
611. Now browse your project in the browser. For me, it is http://localhost:81/tut.  It will be like;
7
12. Now, We are ready to start our project.

You can comment if felt any difficulty in any step. You can comment in this post or can mail me at deb882003@gmail.com
I may take some to reply (with in 24 Hours), as per my busy schedules.

Day-1 (Part-2) >>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s