2011-04-02 13:02:51 0 评论 Yii 1.0 Boy.Lee

Yii 1.0 导入类

{Function}

Yii::import();

{Code}

Yii::import('application.controllers.yiilibController');

{Route in Yii}

format like this : application.models.*

 

{Boy Say}

application = <path> protected/

application.controllers = <path> protected/controllers/

application.controllers.yiilibController = <path> protected/controllers/yiilibController.php

 

 一个路由机制找到文件,导入,就可以使用了。在Yii中先导入,后使用。