Cakephp Blog Tutorial Part 2 – Naming Conventions

A tutorial for building a blog using the Cakephp framework. This tutorial covers the naming conventions for files and classnames as well as the cake url’s. You can download source code files for this tutorial at my website: www.andrews-custom-web-design.com You can also read this tutorial as an article on my website. It also has a table showing model/controller/view naming conventions as well: www.andrews-custom-web-design.com
Video Rating: 4 / 5

24 Responses to Cakephp Blog Tutorial Part 2 – Naming Conventions

  • JacKaka Riki says:

    mi too :(

  • phobi3 says:

    man i don’t get it, i have created 3 files in 3 different locations, i have written things in a very very specific way just to get a damn hello world… why is php cake so popular? the hole structure is very very complicated

  • andrewperk says:

    Yeah sorry, my first set of videos I didn’t really know what I was doing. My newer videos are in 720p though.

  • WindowsSoftwareDe says:

    I wish your videos were in HD… i can’t see everything you type ;)

  • Kirk Gravatt says:

    Not Found

    The requested URL /shopkeeper/posts/hello_word was not found on this server.
    I’m in cake 2.1.3 … so that might be why. CakePHP has been a pain since I’ve been trying to get into it

  • keerthi71815 says:

    The video really helped me a lot., but i have a question,
    Though i have not made the color of the contents of the heading two as red, why is the output coming in red color?.., hey thanks for your videos :)

  • Marcelo Custódio says:

    Andrew, congrats for the video! Some questions concerning CakePHP 2.0:

    (1) what’s that IDE ?
    (2) The PostsController *automatically* holds an instance of Post class ?
    (3) The only one way to create an instance of, say, Author class within the PostsController is calling ClassRegistry::init(“Author”) ?

    Thank you in advance!

  • UmzGames says:

    Absolutely brilliant tutorials !
    Just go easy on the keyboard :P

  • 4umangck says:

    please provide the link for cakephp 2.1.3 of your tutorial.

  • andrewperk says:

    Hi there, follow what the error message is telling you to do. This video was for cake 1.3, you are likely using cake 2. Please watch my Cake 2.0 update videos. Naming conventions have changed. The controller should be PostsController as the error is saying. Good luck.

  • IMTIYAZ NABI MASOODI says:

    i did all things right .As accurate as you do but it is showing me this error and i think something is wrong with webroot index.
    Error: PostsController could not be found.

    Error: Create the class PostsController below in file: appControllerPostsController.php

  • Saqib Ahmed says:

    The url -> localhost/tut_blog/posts/hello­_world is not working for me. It says 404 Not found. I’m using Cakephp 1.3.14, Net Beans and Wampserver with Firefox.

    Help me with this.

  • andrewperk says:

    It sounds like you need to enable mod_rewrite for apache in your h ttpd.conf file.

  • DeepuTanguturi says:

    i am developed example application whatever in the video.i got the error like this the requested resource is not available.

  • DeepuTanguturi says:

    hi

  • BlakMetall says:

    Buen video amigo, me sirvio.

  • ChonaiSingh says:

    And uncomment the App.baseUrl below:
    */
    /Configure::write(‘App.baseUrl’, env(‘SCRIPT_NAME’));

    in core.php file your application will work fine according to your desire

  • ChonaiSingh says:

    “localhost/tut_blog/index.php/posts/hello_world

    use this link to access hello_world page

  • itrelease says:

    Sir i want to ask that is these tutorials work fine for new version of cakephp? Thanks.

  • andrewperk says:

    Yes, I have used Netbeans. When I recorded this video Phpstorm was in beta and was free to use. I currently use Gedit and it’s just a simple text editor for Linux now which is similar to Textmate. On windows I use Aptana 3. I don’t feel the need to pay for Phpstorm when other editors/IDE’s perform just as well and are free. Phpstorm was nice though and I have no complaints about it.

  • lookbehindtheveil says:

    Even for CakePHP 2 this is worth watching.

  • lookbehindtheveil says:

    Have you ever used NetBeans and if so, was paying for Phpstorm worth the expense?

  • 790102078 says:

    you should prolly remove these videos because its out dated and not relevent to the recent versions of cakephp

  • brijesh chavda says:

    Great job Thanks.