문제

I'm having some trouble getting the Bake feature of CakePHP 2.0 working.. I think it is down to the way I've got my folder structure set-up, i.e:

file structure

htdocs is the site's root, which contains everything normally found in the 'app' folder. The htdocs/webroot/index.php file has had its CAKE_CORE_INCLUDE_PATH set as the following:

define('CAKE_CORE_INCLUDE_PATH', '..' . DS . '..' . DS . 'cakephp' . DS . 'lib');

I then navigate into the htdocs folder (via putty, it is hosted on a Debian 6 server), and run the following command:

php ../cakephp/lib/Cake/Console/cake.php bake

but based on the fact that the app path listed is "/srv/www/cakeauth.tld.blue/cakephp/app/" rather than what it should be: "/srv/www/cakeauth.tld.blue/htdocs/", means that it doesn't recognise htdocs as an app.

Can anyone help me set this up to run Bake in the correct place? Thank you :)

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top