tonydspaniard / yiinitializr-basic

Yii Framework project structure boilerplate for basic requirements
26 stars 16 forks source link

Yiniitializr not aliased #3

Closed P1xt closed 11 years ago

P1xt commented 11 years ago

www/index.php throws an error on first startup because Yiinitializr isn't aliased.

Adding the line:

Yii::setPathOfAlias('Yiinitializr', './../../common/lib/Yiinitializr');

prior to the Initializer call fixes this

tonydspaniard commented 11 years ago

Thanks @roamingblue but is not the right solution... pushing the fix

asyazwan commented 11 years ago

Are we supposed to find autoload.php by ourselves? Because the file does not exist in the repository...

tonydspaniard commented 11 years ago

@asyazwan autoload.php is created automatically by composer. Do not worry about it, the template already points to it and will be there after you do the composer install command.

References http://getcomposer.org/doc/01-basic-usage.md#autoloading