okge001 2011-08-25 23:20:26 2640次浏览 1条回复 0 0 0
'import'=>array(
  'application.models.*',
  'application.components.*',
  'application.front.components.*',
  'application.front.models.*',
),
'modules'=>array(
  'front'
),

'urlManager'=>array(
  'urlFormat'=>'path',
  'showScriptName'=>false,
  'rules'=>array(
    '' => 'front/site/index',
  ),
),

配置文件如上 希望输入的url www.abc.com/ 直接定向到 front模块下的sitecontroller里面的actionIndex方法 结果输出的是 Alias "front.FrontModule" is invalid. Make sure it points to an existing PHP file.

然后更改

'modules'=>array(
  'front'=>'ront.FrontModule'
),

页面半天打不开,最后报

Fatal error: Maximum execution time of 30 seconds exceeded in  framework\YiiBase.php on line 464

求救中。。。。。

您需要登录后才可以回复。登录 | 立即注册