摘要:
yii CComponent组件 实例说明yii中的module,controller都是CComponent的子类,可以说yii的架构基石就是依托在CCompnent基础上的,这里研究下CComponent。另外写一个简单的组件应用示例。希望可以帮助到大家。component有三个基础特性,属性(... 阅读全文
posted @ 2014-08-28 23:23
午火39
阅读(486)
评论(0)
推荐(0)
摘要:
YII第三步,日志开启index.php入口文件配置;defined('YII_DEBUG') or define('YII_DEBUG',true);cofig/main.php'preload'=>array('log'), 'log'=>array( 'class'=>'... 阅读全文
posted @ 2014-08-28 22:13
午火39
阅读(345)
评论(0)
推荐(0)
摘要:
yii第二步:main.php'urlManager'=>array('urlFormat'=>'path','rules'=>array('game/guess/'=>'game/guess','gou/games/'=>'gou/game',//index.php/gou/d(实际地址) => ... 阅读全文
posted @ 2014-08-28 22:10
午火39
阅读(256)
评论(0)
推荐(0)
摘要:
第一步:index.php// include Yii bootstrap filerequire_once(dirname(__FILE__).'/../../framework/yii.php');defined('YII_DEBUG') or define('YII_DEBUG',true);... 阅读全文
posted @ 2014-08-28 22:05
午火39
阅读(166)
评论(0)
推荐(0)