摘要: YII中的CComponent,CEvent与Behavior及CActiveRecordBehavior个人理解 这一块教程少,今天个人理解了下,写了个小例子,有助于理解 完成如下功能,一个JTool类,继承CComponent,当其长度改变时,调用事件,输出"change me". JTool.php在protected/components 下 <?php class JTool extends CComponent{ private $_width; public function getWidth(){ return $this->_width ? $ 阅读全文
posted @ 2012-03-21 13:23 mr.coke 阅读(462) 评论(1) 推荐(0)