01 2014 档案
摘要:后台:(有点问题 page应该从1开始 而不是从0开始) public function actionExperts() { $top=5; $page=empty($_GET['page']) ? 0 : $_GET['page']; $offset = $top*$page; $result = AboutUs::getExpertsList($top, $offset); if(!$result || count($result) request->isAjaxRequest) { // $this->ajaxRender(array('
阅读全文
摘要:http://www.cnblogs.com/youmeng/p/3376353.htmlhttp://www.cnblogs.com/irelands/archive/2012/04/16/2451262.htmlhttp://blog.163.com/penglie_520/blog/static/19440505020127255319862/
阅读全文
摘要:yii index.phpini_set("display_errors", 1);iconv这个函数不能直接用 需要检测!!!function gb2312_utf8($str = ""){ if(function_exists("iconv")){ return iconv("gb2312", "utf-8//IGNORE", $str); }else if(function_exists("mb_convert_encoding")){ return mb_conver
阅读全文
摘要:fl_img):?>fl_img;?>">
阅读全文
摘要:$(function() { $('#login').on('click', function() { var username = $('#username').val(); var password = $('#password').val(); if (username == '' || password == '') { alert('账号或密码不能为空'); return ; } var params = {'username'...
阅读全文
摘要:1 application\components\controller.php2 3 protected function afterRender($view, &$output) 4 { 5 if(Yii::app()->params['compress_on']){ 6 Yii::import('ext.Compress', true); 7 $output = Compress::minify($output, array('xhtml' => true)); 8 } 9 }extension\Compress.php
阅读全文
摘要:http://www.planeart.cn/demo/artDialog/_doc/API.html#API
阅读全文