我想讓Yiistrap(Yii Framework的Bootstrap)在Cent OS 6.5上工作。我解開了yiistrap主成擴展/引導和增加了以下受保護/配置/ main.php:Yiistrap配置問題
// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');
// CWebApplication properties can be configured here.
return array(
'aliases'=>array(
'bootstrap'=>'/var/www/html/happytails/protected/extensions/bootstrap'
),
'import'=>array (
'bootstrap.helpers.TbHtml',
'components'=>array(
'bootstrap'=>array(
'class'=>'bootstrap.components.TbApi'
),
我還添加了寄存器功能到保護/視圖/佈局/ main.php
<?php /* @var $this Controller */ ?>
<?php Yii::app()->bootstrap->register(); ?>
這應該工作,但我一直運行到錯誤:
Alias "bootstrap.components.TbApi" is invalid. Make sure it points to an existing PHP file and the file is readable.
文件是存在的,可讀的。我不確定可能是什麼問題。
[[email protected] extensions]# ls -l
total 4
drwxrwxrwx. 10 nobody nobody 4096 Feb 5 01:50 bootstrap
`[[email protected] bootstrap]# ls -l
total 112
drwxrwxrwx. 6 nobody nobody 4096 Feb 5 01:50 assets
drwxrwxrwx. 2 nobody nobody 4096 Feb 5 01:50 behaviors
-rwxrwxrwx. 1 nobody nobody 296 Jan 29 14:40 codeception.yml
drwxrwxrwx. 2 nobody nobody 4096 Feb 6 20:29 components
-rwxrwxrwx. 1 nobody nobody 1075 Jan 29 14:40 composer.json
-rwxrwxrwx. 1 nobody nobody 54859 Jan 29 14:40 composer.lock
drwxrwxrwx. 2 nobody nobody 4096 Feb 5 01:50 form
drwxrwxrwx. 3 nobody nobody 4096 Feb 5 01:50 gii
-rwxrwxrwx. 1 nobody nobody 555 Jan 29 14:40 Gruntfile.js
drwxrwxrwx. 2 nobody nobody 4096 Feb 5 01:50 helpers
-rwxrwxrwx. 1 nobody nobody 1521 Jan 29 14:40 LICENSE.txt
-rwxrwxrwx. 1 nobody nobody 604 Jan 29 14:40 package.json
-rwxrwxrwx. 1 nobody nobody 370 Jan 29 14:40 README.md
drwxrwxrwx. 6 nobody nobody 4096 Feb 5 01:50 tests
drwxrwxrwx. 2 nobody nobody 4096 Feb 5 01:50 widgets`
非常感謝你的幫助,你可以在這個問題上提供。