Posts Tagged ‘CakePHP Tutorial’

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   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.

5. Now run the project. For me it is; localhost:81/tut
6. The page will display as below.
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.
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.

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;
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
I may take some to reply (with in 24 Hours), as per my busy schedules.

Day-1 (Part-2) >>