06 2014 档案

摘要:render()内容;public function render($view,$data=null,$return=false){ if($this->beforeRender($view)) { $output=$this->renderPartial($view,$d... 阅读全文
posted @ 2014-06-26 15:31 w7391108 阅读(501) 评论(0) 推荐(0)
摘要:Warning: Cannot modify header information - headers already sent by出错的原因我在php程序的头部加了,header("cache-control:no-cache,must-revalidate");之后页面就出现上面的错误,看了N... 阅读全文
posted @ 2014-06-25 17:30 w7391108 阅读(709) 评论(0) 推荐(0)
摘要:在Yii中经常要生成URL,不管是为了自动跳转还是仅仅是一个链接。下面对Yii中的URL生成做了一个总结。提示:以下controllerX代表控制器X,actionX代表方法X。在Controller::action中,我们要输出一个链接,可以这样做:$this->createUrl(‘action... 阅读全文
posted @ 2014-06-25 17:02 w7391108 阅读(2444) 评论(0) 推荐(0)