Let's take an empty folder, hereafter as... <folder> (!) and extract a
fresh cake 2.0 download.
That leaves you with files in <folder>\app, <folder>\lib etc.
Run "cake bake project" inside <folder>. Cake understands your app
name as <folder> and path as <path_to_folder>.
Then strangely it offers <path_to_folder>\myapp as the path to the
project while it should be just \app according to the doc suggestions:
<quote>
First, realize that there are three main parts to a Cake application:
The core CakePHP libraries, in /lib/Cake.
Your application code, in /app.
The application’s webroot, usually in /app/webroot.
</quote>
You decide to follow the docs and change it to <path_to_folder>\app
and accept the copy of the skeleton, but not much is copied. You get
only the homepage and core.php and a message saying
Unable to set console path for app/Console.
CakePHP is not on your `include_path`, CAKE_CORE_INCLUDE_PATH will be
hard coded
.
You can fix this by adding CakePHP to your `include_path`.
Unable to set CAKE_CORE_INCLUDE_PATH, you should change it in
<path_to_folder>\app\webroot\index.php
Project baked but with some issues..
All other folders have an "empty." file inside just like after the
extract.
Instead if you keep the /myapp suggestion, the skeleton is copied
perfectly even though the message for "include_path" is displayed
again.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php