iscariel
(Jouan Laurent89)
1
Hi,
I begin with Yii, I tried to add Yiistrap extension following the configuration on yiistrap site.
I have an error using the widget bootstrap.widgets.TbGridView
PHP warning
include(TbDataColumn.php): failed to open stream: No such file or directory
/var/www/framework/YiiBase.php(427)
....
In the config/main.php I have add TbArray and TbWidget:
// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
'bootstrap.helpers.TbHtml',
'bootstrap.helpers.TbArray',
'bootstrap.behaviors.TbWidget',
),
I use other yiistrap widgets like TbListView, TbNavbar or TbNav without any problem.
Apache can read this file (TbDataColumn.php) so it isn’t a permission’s issue.
I searched with google for people with the same problem but I found nothing.
Any idea what the problem can be?
(sorry for my poor english, it isn’t my native language)
lgastmans
(Lgastmans)
2
I have just run into the same problem and I believe this is a bug with Yii 1.1.14 and Yiistrap. It worked fine with 1.1.12.
I will let you know in case I find a solution, or anybody else here in the forums…
lgastmans
(Lgastmans)
3
solution is:
add
'bootstrap.widgets.*'
in the ‘import’ array in config/main.php
iscariel
(Jouan Laurent89)
4
Hi,
Thank for the answer.
It’s weird the other day I tried to add in the import array:
'bootstrap.widgets.TbGridView'
That doesn’t work, but using your syntax this work.
Thanks a lot.