htaccess

piaoling  2012-08-06 13:15:26

#RewriteBase /magento/ RewriteCond %{REQUEST_URI} ^/$ [NC] RewriteRule (.*) http://www.magento1510.com/default/$1 [R=301,L] rewrite index.php to default store index cms page......

类别 :  magento(258)  |  浏览(3381)  |  评论(1)

still display attributes in layer

piaoling  2012-07-31 16:04:43

app/code/core/Mage/Catalog/Model/Layer/Filter/Attribute.php public function apply(Zend_Controller_Request_Abstract $request, $filterBlock) { $filter = $request->getParam($this->_requestVar); if (is_array($filter)) { return $this; } $text = $this->_getOptionText($filter); if ($filter && $text) { $this->_getResource()->applyFilterToCollection($this, $filter); $this->getLayer()->getState()->addFilter($this->_createItem($text, $filter)); //注释掉下面这行 // $this......

类别 :  magento(258)  |  浏览(4111)  |  评论(0)

phpmyadmin

piaoling  2012-07-29 22:35:23

<?php /* Servers configuration */ $i = 0; /* Server: localhost [1] */ $i++; $cfg['Servers'][$i]['verbose'] = 'localhost'; $cfg['Servers'][$i]['host'] = 'localhost'; $cfg['Servers'][$i]['port'] = ''; $cfg['Servers'][$i]['socket'] = ''; $cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'......

类别 :  PHP(78)  |  浏览(4335)  |  评论(0)

草头格习字 让您练得一手好字!

piaoling  2012-07-24 09:09:23

分享到: http://demohour.com/projects/302573 草头格,一种新型练字格,摒弃传统田字格、米字格的低效甚至贻害,适合任何年龄段的人练习写字,写一手好字。 关于我        我,徐长辉,70后。同事们多是80、90后,都亲昵地称我为“老徐”。            从事书法教育培训多年,眼见上大学的越来越多了,可是能写出一手好字的越来越少了,甚急。总想着怎样让更多的人轻轻松松地写一手好字......

类别 :  默认(739)  |  浏览(10349)  |  评论(2)

magento varian form datetime,date

piaoling  2012-07-23 09:32:03

$dateFormatIso = 'yyyy-M-d HH:mm:ss';         $fieldset->addField(             'start_time', 'date', array(             'name'         =>   'start_time',             'time'         =>    true,       &nb......

类别 :  magento(258)  |  浏览(3843)  |  评论(0)

magento date

piaoling  2012-07-19 16:47:34

$date="2012-7-18 14:00:00";         $change= Mage::getModel('core/date')->gmtDate("Y-m-d H:i:s", $date);         Zend_Debug::dump($change);         Zend_Debug::dump(Mage::getModel('core/date')->date("Y-m-d H:i:s", $change));         die(); ......

类别 :  magento(258)  |  浏览(3557)  |  评论(0)

magento admin form 表单元素大全

piaoling  2012-07-18 11:26:49

开发Magento后台的时候经常用到表单(Varien_Data_Form),下面是所有表单元素的添加方法: 1.input type=”text” $fieldset->addField(‘title’, ‘text’, array( ‘label’ => Mage::helper(‘form’)->__(‘Title3′), ‘class’ => ‘required-entry’, ‘required’ => true, ‘name’ => ‘title’, ‘onclick’ => “alert(‘on click’);”, ‘onchange’ => “alert(‘on change’);”, ‘style’ => “border:10px”, ‘value’ => ‘hello !!’, ‘disabled’ => false, ‘readonly’ =&......

类别 :  magento(258)  |  浏览(3903)  |  评论(0)

Mysql_不能用ip链接_能用localhost 和 127.0.0.1链接

piaoling  2012-07-18 09:02:03

Mysql_不能用ip链接_能用localhost 和 127.0.0.1链接 OS:Ubuntu lijg@lijg-pc:~/tempdb$ mysql -h localhost -uroot -p  lijg@lijg-pc:~/tempdb$ mysql -h 127.0.0.1 -uroot -p   但是用ip就不行了   lijg@lijg-pc:~/tempdb$ mysql -h 192.168.7.247 -uroot -p t800 Enter password:  ERROR 2003 (HY000): Can't connect to MySQL server on '192.168.7.247' (111)   解决方法: 步骤1、确认已有账户权限   mysql> use mysql Reading table information for completion of table and column names You can turn off this feature ......

类别 :  sql(5)  |  浏览(4543)  |  评论(0)

How do I make Magento use two MySQL Servers

piaoling  2012-07-13 14:13:14

I setup a replicated mysql server in magento.. following this blog post: http://www.magentocommerce.com/blog/comments/performance-is-key-notes-on-magentos-performance/ I added this into my /app/etc/local.xml   <default_setup>                 <connection>                     <......

类别 :  magento(258)  |  浏览(4708)  |  评论(0)

Connect different database from Magento

piaoling  2012-07-13 14:09:12

Some of you might have worked on Magento. I am listing here points for connecting another database from Magento. 1) Suppose your database for Magento Project is named ‘magento’. 2) There is one other database named ‘wp’. 3) For using this database inside Magento, you need to setup connection in ‘config.xml’ file which resides in ‘urmagentodirectory/app/etc’ 4) In ‘config.xml’ there is a tag ‘’ inside which default connection is setup, you need to write this code under this. ? ......

类别 :  magento(258)  |  浏览(4071)  |  评论(0)
  • Page:21/144  1439 Blogs
    <<
    >>
    20088
    周日 周一 周二 周三 周四 周五 周六

    文章分类