Hi,
Im a user of Yii but i have a small problem that i dont know if it is a bug or a configuration problem.
On my actions of default controllers, i use:
$this->render(‘index’);
But i create an admin module, called ‘admin’, and i create some controller to it, like ‘login’, ‘contents’, …
But on all controllers the $this->render is OK, only in the ‘contents’ controller in ‘admin’ module it render the same page under first if i use $this->render(‘index’), but if i remove this run OK without problem, but when i use $this->render(‘index’) on actions it render the pages 2 times on same screen.
What can be wrong?
CODE WITHOUT PROBLEM:
<?php
class ConteudosController extends AdminController
{
protected $tituloModulo = 'Conteúdos';
public function actionIndex()
{
}
}
CODE WITH PROBLEM - RENDERING THE PAGE TWO TIMES:
<?php
class ConteudosController extends AdminController
{
protected $tituloModulo = 'Conteúdos';
public function actionIndex()
{
$this->render('index');
}
}