2016年4月14日
摘要: yii2中使用顶部导航的具体方法: 1.视图中调用两个类: use yii\bootstrap\Nav;use yii\bootstrap\NavBar; 2. <?php NavBar::begin([ 'brandLabel' => 'My Company', 'brandUrl' => Yii 阅读全文
posted @ 2016-04-14 20:54 久违的绽放 阅读(2597) 评论(0) 推荐(0) 编辑
摘要: $cache=Yii::$app->cache;$cache->set("key","123", 45);echo $cache->get("key"); 阅读全文
posted @ 2016-04-14 14:52 久违的绽放 阅读(167) 评论(0) 推荐(0) 编辑
摘要: $_SERVER["REMOTE_ADDR"] 阅读全文
posted @ 2016-04-14 10:22 久违的绽放 阅读(205) 评论(0) 推荐(0) 编辑
摘要: <link rel="stylesheet" href="http://cdn.staticfile.org/twitter-bootstrap/3.2.0/css/bootstrap.min.css" type="text/css"> 阅读全文
posted @ 2016-04-14 08:14 久违的绽放 阅读(236) 评论(0) 推荐(0) 编辑