过客!
class Controller extends CController { public $layout = '//layouts/main'; ... }
class SiteController extends Controller { public $pageTitle = ''; public $cssFiles = array('index.css'); public $jsFiles = array('index.js'); public $message = ''; public function actionIndex() { $this->pageTitle = '首页'; $this->render('index'); } ... }
没有额,关键是这代码在别的机器没问题 就我的机器有这问题。
舰长啊。。求加好友~~