原创 kindeditor 注意

//根目錄路徑,可以指定絕對路徑,比如 /var/www/attached///圖片空間地址$root_path = $php_path.'../../../../ckad/';//根目錄URL,可以指定絕對路徑,比如 http://www

原创 Yii截取字符串(UTF-8)方法

  http://www.yiichina.org/forum.php?mod=viewthread&tid=645&pid=7594&page=1&extra=page%3D1#pid7594 艦長給我們寫好了一個文件: Help

原创 custom 404 page in Yii

  just put your 404 file in this path.  protected/views/system/error404.php OR  themes/XXX/views/system/error404.php

原创 yii框架站點展示收集

根據http://www.isyii.com/sites#comment-35 添加了,自己也不斷收集更新,大家可以評論提交。 門戶諮詢類 創意人http://www.ccihr.com/ 企業網站 yiiframework官方網站

原创 "cannot modify header information - headers already sent by"的錯誤怎麼解決

一個上傳文件的功能,上傳成功 返回信息的時候經常提示:cannot modify header information - headers already sent by (......)。其實已經實現需要的效果了,就是這個錯誤信息看

原创 Yii中使用MySQL存儲Session信息

在配置文件protected/config/main.php中,在components裏面加入以下      'session' => array(        'class' => 'system.web.CDbHttpSessi

原创 yii cmenu

CMenu,無非是爲了規範化,讓前段和後端完全的分離,不多廢話: 關於active屬性: 最基本的就是通過判斷$this->id或者$this->action->id來判斷是否激活; 還有一種就是特殊的urlManager生效的時候,可能

原创 centos 安裝 ruby

安裝ruby,gem後出現如下錯誤: /usr/local/ruby/lib/ruby/1.9.3/yaml.rb:56:in `': It seems your ruby installation is missing psych

原创 Warning: date() [function.date]: It is not safe to rely on the system's timezone settings.

解決方法: 方法1.在適當位置加入(一般推薦在最前面)一句: <?php date_default_timezone_set('UTC'); ?> 協調世界時(UTC): 一種稱爲協調世界時的折衷時標於1972年面世。爲了確保協調世

原创 Linux RAR

# wget http://www.rarsoft.com/rar_CN/rarlinux-3.9.3.tar.gz # tar -xzvf rarlinux-3.9.3.tar.gz ---------------------------