php - yii bootstrap (v2.0.3) extension invalid path alias -



php - yii bootstrap (v2.0.3) extension invalid path alias -

i followed yii-bootstrap installation instructions on http://www.cniska.net/yii-bootstrap/setup.html path alias set in config/main.php doesn't work me:

<?php // path alias bootstrap yii::setpathofalias('bootstrap',yii::getpathofalias(dirname(__file__).'/../extensions/bootstrap')); // main web application configuration. writable // cwebapplication properties can configured here. homecoming array( ...

protected/extensions/bootstrap/... bootstrap directory.

if want utilize in layouts/main.php

yii::app()->bootstrap->register();

it says "alias "bootstrap.components.bootstrap" invalid. create sure points existing directory or file. "

i tried lots of stuff can't work. ideas?

have tried load bootstrap automatically on config file? add together 'bootstrap' preload array. here mine:

'preload'=>array('log', 'bootstrap'),

php twitter-bootstrap path yii alias

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -