![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
yii学习
快乐的诸葛明
走自己的路让别人去说吧!
展开
-
yii中常用路径
调用YII框架中jquery:Yii::app()->clientScript->registerCoreScript('jquery'); framework/web/js/source的js,其中registerCoreScriptkey调用的文件在framework/web/js/packages.php列表中可以查看 在view中得到当前controller的ID转载 2013-06-21 11:09:51 · 997 阅读 · 0 评论 -
yii中参照QQ邮箱根据输入的事情输出相应的文字
public static function dateToText($timestamp = 0) { $group = ''; $timestamp = strtotime(date("Y-m-d",$timestamp)); $diff = ceil(($timestamp - time()) / (24 * 60 * 60));原创 2014-12-12 09:06:51 · 430 阅读 · 0 评论