I am new in yii, and trying to import a existing PHP site into this framework, so i want to remove default layout style of yii, just wanna show my view page. Is there any way to do so?
like, when i load a view
$this->render('myview');
then only myview.php should be render. I didn't found any help anywhere.
Just put $this->layout = false;
in your action or a property public $layout = false;
in your controller if you want it disabled controller wide.
Use the renderPartial function.
$this->renderPartial('myview', array('model'=>$model));
You can do other things, like assign the markup to a variable and do things like echo, manipulate and save it.
The renderPartial will not load the page layout.