Answer the question
In order to leave comments, you need to log in
How to render in layouts (yii)?
public function actionIndex()
{
// renders the view file 'protected/views/site/index.php'
// using the default layout 'protected/views/layouts/main.php'
$this->render('/layouts/main', array (
'catProvider' => Cat::model() -> loadCat(),
//'News' => News::model() -> loadLastNews(),
));
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question