zyphers
(Sitawit)
April 27, 2010, 8:53am
1
Hi,
I tried to display log message at the end of web page.
So I set my config like this.
'preload'=>array('log'),
'log'=>array(
'class'=>'CLogRouter',
'routes'=>array(
array(
'class'=>'CWebLogRoute', 'levels'=>'trace, info, error, warning',
),
array(
'class'=>'CProfileLogRoute', 'levels'=>'trace, info, error, warning',
),
),
),
I think this will work but it’s not. There is none message appear under my web site.
Can someone tell me how can I fix this.
Thanks in advance.
Vince
(Vadimg88)
April 27, 2010, 9:27am
2
It will only work if you use render() in your controller.
zyphers
(Sitawit)
April 27, 2010, 10:22am
3
Yes, I do this is sample of how I wrote some action in my controller.
public function actionProductList()
{
// do something to get data provider
$dataProvider = new CActiveDataProvider('product');
// in the end I called render.
$this->render('product_list',array(
'dataProvider'=>$dataProvider,
));
}
As you can see I’m trying to put dataProvider to render.
May be I screwed up with some view?
zyphers
(Sitawit)
April 30, 2010, 8:51am
4
Guys someone help me… I can’t figure out how to get the lag shows up.
mdomba
(Maurizio Domba Cerin)
April 30, 2010, 1:03pm
5
Can’t help you without looking at your code…
All you posted is OK, it should work… as you wrote… maybe it’s something in the view…
Try to create some Model/CRUD with yiic and try with that if there are some output…
zyphers
(Sitawit)
May 3, 2010, 6:47am
6
Alright guys,
It was my fault… again. lol!
Yes everything look fine. I have to do all those thing I do and I have to make sure that…
define('YII_DEBUG',true);
define('YII_TRACE_LEVEL',3);
…should be in Yii’s index.php.
I’ve already forgot about it until I tried brand new Yii 1.1.2!
Anyway thanks for all of that you done.