- 博客(8)
- 收藏
- 关注
转载 扩展MarkDown表格
一直不知道表格中的:是什么意思,看了GcsSloop的这篇文章后恍然大悟,做下记录。原文链接第二行分割线部分可以使用 : 来控制内容状态MarkDown : | 默认 | 靠右 | 居中 | 靠左 | | ------ | ----- | :-----: | :------ | | 内容 | 内容 | 内容 ...
2016-12-15 11:46:00
178
转载 Eclipse 读取config目录下文件
最近在一个项目,在项目下新建了一个config配置文件夹,添加一个配置文件config.properties.使用classpath:config.properties方式加载配置文件,具体实现代码String classpathKey = "classpath:";Properties pt = new Properties();String configPath = "cl...
2016-12-12 16:43:00
523
转载 cakephp 中Console / Shell 有什么优点?
Which is the advantage of using CakePHP Console / Shell for programmed tasks ?查看原文最近用到了cakephp中的shell,但是不知道为什么要用shell,所以到google了一下,找到了一份比较满意的答案,在这里记录下。Here are a few reasons that come to min...
2016-11-23 16:51:00
193
转载 cakephp中使用 find('count')方法
对于find('count',array('group'=>'user_id'));Model.php中这样描述: 1 /** 2 * Handles the before/after filter logic for find('count') operations. Only called by Model::find(). 3 * 4 * @pa...
2016-09-23 10:03:00
171
转载 [转]using components in Cakephp 2+ Shell
1 <?php 2 App::uses('AppShell', 'Console/Command'); 3 App::uses('ComponentCollection', 'Controller'); 4 App::uses('Controller', 'Controller'); 5 App::uses('MTurkComponent', 'Contr...
2016-08-24 10:45:00
148
转载 [转]Git for windows 下vim解决中文乱码的有关问题
Git for windows 下vim解决中文乱码的问题原文链接:Git for windows 下vim解决中文乱码的有关问题1、右键打开Git bash;2、cd ~3、vim .vimrc4、内容如下:"这个档案的双引号 (") 是批注set nu "可以在每一行的最前面显示行号啦!set fencs=utf-...
2016-06-12 12:01:00
120
转载 在Foxmail中添加阿里云企业邮箱账号
1.安装完成Foxmail之后,新建账号输入阿里云邮箱地址和密码,点击创建接受服务器类型你可以选择POP3或者IMAP,在这里我选择的是POP3点击创建,大功告成。为什么要写这篇文章呢?因为我用的是企业邮箱,在创建账号的时候不知道POP服务器地址和SMTP服务器地址是多少?网上什么都有,经过一番查找,终于找到了首先登陆阿里云企业邮箱->...
2016-06-08 11:48:00
1186
转载 Cakephp在Controller中显示sql语句
Cakephp在Controller中查询语句一般是: $this->Model->find();那么这条语句对应的sql语句是什么呢?可以通过下面方法显示:1.$dbo = ConnectionManager::getDataSource('default'); $logs = $dbo->getLog(); $las...
2016-05-19 18:22:00
212
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人