Hi people,
Making my first steps with Yii.
I am trying to setup an application that will make use of YiiBoilerplate. (*)
So far so good: after the install (and moving directories, simplifying the environment switching code, etcetera) I do get the expected output from "index.php" of the frontend.
Next step I am trying: get the Bootstrap extension loaded. I am following the instructions from the link above below.(*) But I am afraid these are not complete.
Here is what I added in main.php:
Yii::setPathOfAlias('ext', $root . DIRECTORY_SEPARATOR . 'common' . DIRECTORY_SEPARATOR . 'extensions');
...
'preload' => array('log', 'bootstrap'),
...
'components' => array(
...,
'bootstrap' => array(
'class' => 'ext.bootstrap.components.Bootstrap',
'responsiveCss' => false,
),
The site no longer works, but returns an error:
Alias "ext.bootstrap.components.Bootstrap" is invalid. Make sure it points to an existing PHP file and the file is readable.
(Error 500)
Yet, the following prints "1", so the file does exist and is readable, no ?
echo "<pre>" . is_file(Yii::getPathOfAlias('ext.bootstrap.components.Bootstrap') . ".php") . "</pre>";
Any ideas where to look ?
Even better: is anybody willing to share a minimalistic YiiBoilerplate application that actually loads the Bootstrap component and displays some widgets ? It would definitely help me climb the learning curve!
Cheers & thanks,
Tom
(*) I am not allowed to post links yet, so here it is spelled out: yii-booster.clevertech.biz/getting-started.html