CrimpJiggler Posted January 16, 2014 Share Posted January 16, 2014 The version of cake I have installed uses MyController.php naming convention. I installed cakephp-scripts for Ubuntu so that I can start using bake, but it uses my_controller.php naming conventions, and it doesn't detect my controllers or models and all that stuff because my cakephp projects all use CamelCase naming conventions for the directories and files. If I run bake in the app folder, it doesn't detect my database config file because its looking for the config folder, it doesn't check the Config folder. So it ends up creating all new lowercase folders (i.e. controllers instead of Controller, views instead of View). Is this my_controller.php naming convention from older versions of cakephp, which are now obsolete? If so, is bake suppose to use the newer camelcase convention? Quote Link to comment https://forums.phpfreaks.com/topic/285405-naming-controllers-is-it-mycontrollerphp-or-my_controllerphp/ Share on other sites More sharing options...
CrimpJiggler Posted January 16, 2014 Author Share Posted January 16, 2014 I figured it out. When I ran apt-get install cakephp-scripts, it installed a really old version of cake (1.3 or something like that). I uninstalled that, and instead used the cake app that comes with the cakephp installation, and now it says: Welcome to CakePHP v2.4.4 Console I wonder why theres that obsolete version in the repositories. Quote Link to comment https://forums.phpfreaks.com/topic/285405-naming-controllers-is-it-mycontrollerphp-or-my_controllerphp/#findComment-1465393 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.