Jump to content

cakePHP xampp


Recommended Posts

Hello,

I have a problem and basic php knownledge smile.gif

To make a log story short: I received a cakePHP page with a SQL database over an email. cakePHP version  1.3.13

I uploaded to xampp (localhost) but of course the site didnt work. I configured the database.php with the root user and password.

 

 

my index.php

<?php

    define('APP_DIR', 'app');
    define('DS', DIRECTORY_SEPARATOR);
    define('ROOT', dirname(__FILE__));
    define('WEBROOT_DIR', 'webroot');
    define('WWW_ROOT', ROOT . DS . APP_DIR . DS . WEBROOT_DIR . DS);

    if (!defined('CAKE_CORE_INCLUDE_PATH')) {
        define('CAKE_CORE_INCLUDE_PATH', ROOT);
    }


    if (function_exists('ini_set')) {
        ini_set('include_path',
            ini_get('include_path') . PATH_SEPARATOR . CAKE_CORE_INCLUDE_PATH
            . PATH_SEPARATOR . ROOT . DS . APP_DIR . DS
        );
        define('APP_PATH', null);
        define('CORE_PATH', null);
    } else {
        define('APP_PATH', ROOT . DS . APP_DIR . DS);
        define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
    }
    require APP_DIR . DS . WEBROOT_DIR . DS . 'index.php';
    ?>

error code :

 

Warning: include(cake\bootstrap.php): failed to open stream: No such file or directory in C:\xampp\htdocs\prj_financeiro\app\webroot\index.php on line 79

Warning: include(): Failed opening 'cake\bootstrap.php' for inclusion (include_path='E:\Arquivos de programas\EasyPHP5.3.0\www\cakephp\prj_financeiro;C:\xampp\htdocs\prj_financeiro\app\;.;C:\xampp\php\PEAR') in C:\xampp\htdocs\prj_financeiro\app\webroot\index.php on line 79

Fatal error: CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your \cake core directory and your \vendors root directory. in C:\xampp\htdocs\prj_financeiro\app\webroot\index.php on line 80

 

Any idea how to fix it? 

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/279865-cakephp-xampp/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.