Hello friends, i have problem in my module layout. I want to set column in my module. Do you have solution for my problem ?
Hello friends, i have problem in my module layout. I want to set column in my module. Do you have solution for my problem ?
You can set the layout of your module controller to the column2 layout of your application:
class MyController extends CController
{
//use the layout /protected/views/layouts/column2
public $layout='//layouts/column2' //two slashes
...
Or you copy the column2 layout into your modules view path:
/protected/modules/mymodule/views/layouts/
See Module tutorial
and set
class MyController extends CController
{
//use column2 from the modules layout path
public $layout='/layouts/column2' //only one slash
...