I am just starting with the Cakephp shell and run into problems. My pie core library is located in the path d: / libs / cake. My application is configured under d: / servers / htdocs / myapp
I wrote a test shell under d: / servers / htdocs / myapp / vendor / shells
class ReportShell extends Shell {
var $uses = array('Appt');
function main() {
echo $this->Appt->find('first');
}
}
When I try to run this code from d: / servers / htdocs / myapp, it gives me an error
Warning: include_once (d: /servers/htdocs/myapp/config/database.php): could not open the stream: there is no such file or directory in d: / libs / cake \ libs \ mode l \ connection_manager.php on line 23
Warning: include_once (): Failed to open 'd: /servers/htdocs/myapp/config/database.php' to include (include_path = '; D: \ work \ xampp \ php \ PEAR') in d: / libs / cake \ libs \ model \ connection_manager.php on line 23
: ConnectionManager:: getDataSource - d:/libs/cake\libs\model\connection_manager.php 102
, database.php "d:/servers/htdocs/myapp/config/", - d:/servers/htdocs/myapp/app/config/database.php '
?