2amigos / yiinitializr

Library that will help boost your application installation with ease and also to run Yii applications from its bootstrap files on a much cleaner way that the framework currently proposes.
Other
44 stars 17 forks source link

Cronjob #24

Open DrMabuse23 opened 10 years ago

DrMabuse23 commented 10 years ago

Hi, Thx for this usefull Tool. All works in application. Iam usin a basic app and now i need to implement a cronjob. Anyone can plz show me a standard example for this ?

i build a command.php like the same index.php

example : https://gist.github.com/brewing/71a0ff513cac3e0dad6c

error : Fatal error: Class 'Yiinitializr\Helpers\Exception' not found in /Users/brewing/webserver/facebook/app/lib/Yiinitializr/Helpers/Initializer.php on line 37

console.php my config file

https://gist.github.com/brewing/7a4050b38bdae1e6cffd

Sorry what i'am doing wrong ? i dismissed something ? It would nice you can answer quickly because i need it fast.

Thx

DrMabuse23 commented 10 years ago

if (($root = realpath($root)) === false) throw new Exception('could not initialize framework.');

To

if (($root = realpath($root)) === false) throw new \Exception('could not initialize framework.');