摘要: 插件:https://github.com/overtrue/pinyin 目录结构 src:所用的php 方法 data:相当于拼音的数据库 在他们的同级目录下创建一个test.php <?php require 'src/DictLoaderInterface.php';require 'src 阅读全文
posted @ 2016-11-25 17:03 你的左耳耳钉 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 下载地址:https://twitter.github.io/typeahead.js/ 文档:https://github.com/twitter/typeahead.js/blob/master/doc/jquery_typeahead.md 使用时需要先引入jquery.js然后是typeah 阅读全文
posted @ 2016-11-25 16:49 你的左耳耳钉 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 平常的model重写方式 阅读全文
posted @ 2016-11-18 17:29 你的左耳耳钉 阅读(361) 评论(0) 推荐(0) 编辑
摘要: From: /admin/cms_wysiwyg/directive/___directive/e3ttZWRpYSB1cmw9Ind5c2l3eWcvd2lkZ2V0cy9iYW5uZXIvaG9tZXBhZ2UvZm9yZWdyb3VuZC9maXNoLXRhbmsucG5nIn19/key/e 阅读全文
posted @ 2016-09-14 09:52 你的左耳耳钉 阅读(1150) 评论(0) 推荐(0) 编辑
摘要: 增 $write = Mage::getSingleton("core/resource")->getConnection('core_write'); $table = Mage::getSingleton('core/resource')->getTableName('abc'); $write 阅读全文
posted @ 2016-09-08 11:32 你的左耳耳钉 阅读(728) 评论(0) 推荐(0) 编辑
摘要: Go to System -> Configuration, find General section on left hand side, click on Content Management and set 'Enable WYSIWYG Edito'r to 'Disable by defa 阅读全文
posted @ 2016-09-06 17:08 你的左耳耳钉 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 参考文章:http://stackoverflow.com/questions/5077755/images-in-magento-widgets 在创建widget时如果上传文件会发现文件无法上传,因为本页面默认的form不带 enctype= "multipart/form-data"; 我的解 阅读全文
posted @ 2016-09-02 15:43 你的左耳耳钉 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 我们在浏览ubuntu文件的过程中经常遇见的一个问题 文件无权限访问 这就需要我们手动的去修改文件的读写权限 sudo chmod 600 文件路径 (只有所有者有读和写的权限)sudo chmod 644 文件路径 (所有者有读和写的权限,组用户只有读的权限)sudo chmod 700 文件路径 阅读全文
posted @ 2016-08-17 14:41 你的左耳耳钉 阅读(381) 评论(0) 推荐(0) 编辑
摘要: 1、首先查看mysql默认的时区 2、修改时区以北京时间为例 3、查看目前的默认时区 4、通过 select now()来查看当前的时间和自己的时间做对比 阅读全文
posted @ 2016-08-15 14:11 你的左耳耳钉 阅读(1930) 评论(0) 推荐(0) 编辑
摘要: 1、首先创建一个布局 app/design/frontend/base/default/layout/local.xml 注解:布局缩放路径base表示当前所用的前端主题, local.xml中local代表package 注解:布局缩放路径base表示当前所用的前端主题, type里面所填的是文件 阅读全文
posted @ 2016-07-19 17:27 你的左耳耳钉 阅读(539) 评论(0) 推荐(0) 编辑