Monday, March 25, 2013

Using the latest version of CakePHP console

Hi all,
I'm a newbie to cakephp. I've installed my LAMP server on Ubuntu 12.04. Also, created my application in this directory /var/www/myapp. I'm using Netbeans IDE 7.3 and cakePHP 2.3.1. This is what i do when attempting to bake models, controllers and views, in the terminal window:

1) go to this directory:  /var/www/myApp/lib/Cake 
2) grant read/write permission to lib directory
3) write: Console/cake bake and I get "bash: Console/cake: Permission denied"

If i just run the command "cake bake" from  /var/www/myApp directory and I get 
"Welcome to CakePHP v1.3.7 Console" and I can continue with the baking process.

My questions are: 
   1) is this correct? Models, controllers and views are created within "models", "controllers" and "views" folders, under /var/www/myApp directory.
My guess is the code is created under version 1.3, when running the cake bake command from my application directory, but i've got installed cakephp 2.3
   2) how can i bake using CakePHP v2.3 Console?

Thank you very much in advance!
Daniela

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments: