phpcs
phpcs --report-file=/var/www/cs.txt --standard=Zend /var/www/sprint-003/app/code/local/Woger/MaxCache/Test/MaxCacheTest.php phpunit --bootstrap ./tests/phpunit/BaseMagentoTest.php --coverage-html ./show/ ./app/code/local/Woger/MaxCache/Test/MaxCacheTest.php ......
PHP CodeSniffer
PHP CodeSniffer PHP CodeSniffer是一个PHP的代码风格检测器,它根据预先设定好的PHP编码风格和规则,去检查应用中的代码风格情况,内置了ZEND,PEAR 的编码风格规则,当然开发者也可以进行自定义。项目的地址在:http://pear.php.net/package/PHP_CodeSniffer /redirected,安装方法如下: sudo pear install PHP_CodeSniffer phpcs --standard=Zend c:\phpcode 其中phpcs –standard后指定了使用Zend的建议代码风格标准进行检查,最后一个参数是要检查的PHP文件所在的目录。运行后......
magento change xml
$node = Mage::getConfig()->getNode('maxcache/cache/type'); Zend_Debug::dump($node); $parentNode = Mage::getConfig()->getNode('maxcache/cache'); Zend_Debug::dump($parentNode); //change child named 'type' value to be test $parentNode->setNode('type','test',true); Zend_Debug::dump($p......
Remove category path from product URL in magento
As great as Magento is there are a number of failings it can have from an search engine optimisation point of view and one of the biggest bugbears our SEO consultants have had with it is the number of different URLs a product can be accessed on. If product a is in category 1 and two then by default magento will create links to it on the following URLs. www.mystore.com/category-1/product-a.html www.mystore.com/category-2/product-a.html www.mystore.com/product-a.html This can cause duplicate content issues from a search engine point of view. One solutio......
ubuntu 网络
1. 检验是否可以连通,就使用ping命令ping 网关开始的时候总是现实unreachable 2. 设置IP sudo ifconfig eth0 133.133.133.190 netmask 255.255.255.0这样就算设置好了网卡eth0的IP地址和子网掩码 3. 设置网关 sudo route add default gw 133.133.133.40 4. ping 网关就可以ping通了 5. 设置Ubuntu DNS 修改/etc/resolv.conf,在其中加入 nameserver DNS的地址1 nameserver DNS的地址2 把上面的地址改成你自己的试下,我的也是ubuntu,之前也出现过不能上网的情况,我这边因为能ping通路由器,所以......
Magento base url without store code
$url = Mage::getConfig()->substDistroServerVars('{{base_url}}'); //baseurl Zend_Debug::dump($url);......
- Page:20/146 1460 Blogs
周日 | 周一 | 周二 | 周三 | 周四 | 周五 | 周六 |
文章分类
- 默认(760)
- 日志(47)
- 感悟(15)
- testIT(4)
- PHP_XML(5)
- PHP(78)
- 明星(1)
- 笑话(31)
- 毕业论文(2)
- 生活(60)
- HTML(11)
- CSS(6)
- 考研(3)
- JS(21)
- 简历(6)
- svn(3)
- 音乐(1)
- 学习(7)
- jQuery(9)
- 英语口语(9)
- 书籍(2)
- magento(258)
- apache(12)
- 创意(4)
- 设计(4)
- 休闲(1)
- IT咨询(11)
- 工作(23)
- ubuntu(21)
- bysoft(1)
- zend(1)
- web(2)
- software(1)
- sql(5)
- 娱乐(5)
- photoshop(3)
- zend framework(2)
- nginx(3)
- 小说(1)
- 名言(1)
- 牛人(1)
- Mysql(6)
- vim(2)
- wordpress(8)
- drupal(1)