April 27, 2010, 8:53am
I tried to display log message at the end of web page.
So I set my config like this.
'class'=>'CWebLogRoute', 'levels'=>'trace, info, error, warning',
'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.
April 27, 2010, 9:27am
It will only work if you use render() in your controller.
April 27, 2010, 10:22am
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.
As you can see I’m trying to put dataProvider to render.
May be I screwed up with some view?
April 30, 2010, 8:51am
Guys someone help me… I can’t figure out how to get the lag shows up.
(Maurizio Domba Cerin)
April 30, 2010, 1:03pm
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…
May 3, 2010, 6:47am
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…
…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.