上一页 1 ··· 8 9 10 11 12 13 14 下一页
摘要: 写在前面的话:1.前提是需要使用blade模板引擎2.css js image 文件夹建在laravel 的 public 目录下面3.生成的路径默认都是相对路径A: 加载css文件 (用下面的格式把正常的link替换掉){{ HTML::style('css/custom.css') }}在页面里生成的样子如下B: 加载js文件(用下面的格式把正常的script替换掉){{ HTML::script('js/custom.js') }}在页面里生成的样子如下C: 页面里加图片(同样去掉img标签){{HTML::image('images/hot_1. 阅读全文
posted @ 2014-01-01 10:47 Debm.Zhang 阅读(5947) 评论(0) 推荐(0) 编辑
摘要: 具体错误如下:Warning: require(../vendor/autoload.php) [function.require]: failed to open stream: No such file or directory in /bootstrap/autoload.php on line 17Fatal error: require() [function.require]: Failed opening required '/bootstrap/../vendor/autoload.php' (include_path='.:/php:/Applicat 阅读全文
posted @ 2013-12-31 09:26 Debm.Zhang 阅读(5999) 评论(0) 推荐(0) 编辑
摘要: 在solr中 添加新的索引词语时,报如标题所示错误,指定是插入的字段没有在solr索引字段里可以修改 solr安装目录/solr/conf 目录下的schema.xml在此xml文件内加入所需字段即可,格式如下注: name, type, indexed, stored 可根据实际情况进行填写! 阅读全文
posted @ 2013-12-13 16:15 Debm.Zhang 阅读(4211) 评论(1) 推荐(0) 编辑
摘要: alsamixer输入上面的命令 回车即可看到图形界面,界面如下┌──────────────────────────── AlsaMixer v1.0.27.1 ─────────────────────────────┐│ Card: HDA Intel PCH F1: Help ││ Chip: Intel CougarPoint HDMI F2: System information ││ View: F3:[Playback] F4: Ca... 阅读全文
posted @ 2013-11-19 10:34 Debm.Zhang 阅读(2955) 评论(0) 推荐(0) 编辑
摘要: 转自http://fanqiang.chinaunix.net/system/linux/2005-06-13/3306.shtmlcron是一个linux下的定时执行工具,可以在无需人工干预的情况下运行作业。由于Cron 是Linux的内置服务,但它不自动起来,可以用以下的方法启动、关闭这个服务: /sbin/service crond start //启动服务 /sbin/service crond stop //关闭服务 /sbin/service crond restart //重启服务 /sbin/service crond reload //重新载入配置 你也可以将这个服... 阅读全文
posted @ 2013-11-18 14:02 Debm.Zhang 阅读(314) 评论(0) 推荐(0) 编辑
摘要: MySql中添加用户,新建数据库,用户授权,删除用户,修改密码1.新建用户。//登录MYSQL@>mysql -u root -p@>密码//创建用户mysql> mysql> insert into mysql.user(Host,User,Password,ssl_cipher,x509_issuer,x509_subject) values("localhost","pppadmin",password("passwd"),'','','');这样就创建了一 阅读全文
posted @ 2013-11-14 10:32 Debm.Zhang 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 环境 : 后台有新闻分类和新闻的文章,在分类下有文章存在的时候,不想用户删除分类代码controller public function actionDelete($id) { $data = Category::model()->findByPk($id); if(count($data->fk_news) > 0){//统计此分类下是否有文章,如果有,则不允许删除此分类 if(isset($_POST)){ // echo json_encode(1); echo getClient... 阅读全文
posted @ 2013-11-11 20:11 Debm.Zhang 阅读(392) 评论(0) 推荐(0) 编辑
摘要: git config core.filemode false 阅读全文
posted @ 2013-11-07 15:56 Debm.Zhang 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 默认显示的内容是没有链接的,现在想加链接,效果图如下代码位置就在columns数组里,直接上代码说明$this->widget('zii.widgets.grid.CGridView', array( 'id'=>'news-grid', 'dataProvider' => $data, 'filter' => $model, 'columns' => array( 'nid', // 'n_title', array( 'nam 阅读全文
posted @ 2013-11-04 20:20 Debm.Zhang 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 这个其实最简单在对应的model里找Search方法找到后,参见如下代码 public function search() { // @todo Please modify the following code to remove attributes that should not be searched. $criteria=new CDbCriteria; $criteria->compare('nid',$this->nid); $criteria->compare('cid',$this->cid); $criteria-> 阅读全文
posted @ 2013-11-03 17:31 Debm.Zhang 阅读(244) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 下一页