Cake engine Outside WebRoot

<?
/**
 * This only needs to be changed if the cake installed libs are located
 * outside of the distributed directory structure.
 */
        if (!defined('CAKE_CORE_INCLUDE_PATH')) {
                define('CAKE_CORE_INCLUDE_PATH', ROOT.DS.'..'.DS.'cake1.2');
        }
?>

This file locate in (cake folder distribution) ./app/webroot/index.php, and the logic of this configuration was to find the cake engine below root of the webfolder, in other words your cake engine not visible from the outside-word / no direct testing phpscript.

Lets see on the example (I am using XAMPP).
I Install XAMPP on folder /xampp, with the root of webfolder /xamp/htdocs, so if I am using configuration above, I must install cake engine on /xampp/cake1.2

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.