Bài đăng

Đang hiển thị bài đăng từ tháng 3 23, 2014

Chỉnh sửa file config - "main.php" trong yii

Muốn thiết lập hoặc thay đổi set default controller in config folder 'defaultController' => 'site', set default action & layout for controller public $layout='main'; public $defaultAction = 'index'; lưu ý: Layout for the Module If you want to set the layout for the module, you should care about the number of slashes. //layouts/layout loads the "protected/views/layouts" if you want to loads the "protected/modules/module/views/layouts" /layouts/layout