Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You are right on the money with:</p> <pre><code>define('CAKE_CORE_INCLUDE_PATH', DS.'Users'.DS.'cameron'.DS.'Sites'.DS.'cake-1.3'); </code></pre> <p>Just make sure that Users sits in root. In other words, when you go to terminal you can get to this directory by typing: <code>cd /Users/cameron/Sites/cake-1.3</code></p> <p>It looks like you may be on a MAC. If so, your linking is correct. Most of the time what I find is you have done a copy paste of the app directory and it does not get the .htaccess files. I would check those first. But here is a comprehensive list of what you should verify:</p> <ol> <li>Make sure the host is pointing to the correct directory (<code>/Users/cameron/Sites/sample-site/</code>)</li> <li>Verify mod_rewrite is in fact on.</li> <li>Verify you have copied the <code>.htaccess</code> file in both the <code>/Users/cameron/Sites/sample-site/</code> and the <code>/Users/cameron/Sites/sample-site/webroot</code> directories.</li> <li>Confirm that the <code>/Users/cameron/Sites/cake-1.3/</code> directory has a directory called cake in it that contains the core.</li> </ol> <p>Once all of this is confirmed, you will be good as gold!</p> <p>Happy Coding!</p> <p><strong>UPDATE:</strong> When the index.php file looks for the cake core, it will look for a directory inside the location you are pointing to for another directory called cake. So in your case:</p> <pre><code>define('CAKE_CORE_INCLUDE_PATH', DS.'Users'.DS.'cameron'.DS.'Sites'.DS.'cake-1.3'); </code></pre> <p>You must have the cake directory inside <code>/Users/cameron/Sites/cake-1.3</code>. Your directory structure will look like:</p> <pre><code>/Users/cameron/Sites/cake-1.3/cake /Users/cameron/Sites/cake-1.3/cake/libs /Users/cameron/Sites/cake-1.3/cake/config /Users/cameron/Sites/cake-1.3/cake/console etc. </code></pre> <p><strong>CakePHP 3.0+</strong> In CakePHP 3.0+ this configuration is moved out of webroot/index.php to App/Config/paths.php</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload