你以为你知道
你以为你知道,同寝室的小江是个极品,他自私小气,斤斤计较,五毛钱的电费都得每个人全摊上,要让他帮忙带一份饭一定要先给钱,他贪慕虚荣,眼睛里只有 钱,为了奖学金不惜到行政办公室去理论,为了助学金和同学闹得不可开交,他还不爱干净,好久才洗个澡才换身衣服。 直到那天你去帮老师整理档案,你才知道,小江来自农村,有个残疾的爸爸,有个没有出嫁的姐姐,有个还在念书的弟弟......
magento extentions
Lg lightBox key:http://connect20.magentocommerce.com/community/IG_LightBox url:http://www.magentocommerce.com/magento-connect/IDEALIAGroup/extension/1843/ig-lightbox 2.Magento Classic Theme Free (10 colors included) key:http://connect20.magentocommerce.com/community/magento_classic_theme_free magento-community/HM_DeveloperToolbar url:http://www.magentocommerce.com/magento-connect/TemplatesMaster/extension/928/magento-classic-theme 3.HelloWired Free Theme 1.4 &nbs......
老师,对不起,我古诗背串了...
1、少小离家老大回,安能辨我是雄雌。(苦命的人儿,这些年你都经历了什么?) 2、红酥手,黄藤酒,两个黄鹂鸣翠柳。长亭外,古道边,一行白鹭上青天。(如此意境,只有汉语做得到) 3、夜深忽梦少年事,惟梦闲人不梦君。(跟此人有仇啊?) 4、借问酒家何处是,姑苏城外寒山寺。(不许瞎说!) 5、洛阳亲友如相问,轻舟已过万重山,(欠人钱了?跑得够快的啊!) 6、爷娘闻女来,举身赴清池;阿姊闻妹来,自挂东南枝。小弟闻姊来,琵琶声停欲语迟......
Sending Email in Magento
Couple of days back I had to work with mail sending in magento e-commerce. Here I am giving a complete example of how to do that:- Magento sends mails with it’s model “core/email_template”. Here is an example code for your understanding:- 01 /** 02 * $templateId can be set to numeric or string type value. 03 * You can use Id of transacti......
Force customer login
I had a requirement like customer support will able to login as any customer. Here is the code snippet i used to force customer support to login as normal user. 1 $customerId = (int) $this->getRequest()->getParam('id'); 2 $customer = Mage::getModel('customer/customer') 3 ->load($customerId); 4 ......
Playing with Magento’s Entity Backend Model
Here I come to know about an awesome feature of Magento. When we add any eav attribute to an entity we can give a backend model name. Whenever Entity will be loaded magento initiates Mage_Eav_Model_Entity_Attribute model for each attribut. If it finds any backend model name for a eav attribut, it loads the corresponding model and based on what it is doing it will call different method from that model. Here I am giving a complete example how you can use this feature. We will add an attribue to address model as “address_verified” , use a backend model to set this value whenever th......
How long customer is inactive ?
$customer = Mage::getSingleton('customer/session')->getCustomer(); $log = Mage::getModel('log/customer')->load($customer->getId()); $inctive_time = now() - $log->getLastVisitAt(); ......
Magento model to interact with db table
In this post I will show you how to write a basic magento model to do AMD activities to a db table. Under package “Mypackage” & module “Mymod” we will create model Test so that we can do AMD with table named “test”. 1.Here we first create a table test in db. 1 CREATE TABLE `test` ( 2 `test_id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY , 3 `name` VARCHAR( 25 ) NOT NULL ......
magento datetime
Are you using date-time functions (date(), time(),now(), etc) directly inside magento ??? Think twice man !!! Even though time is set properly in you server or you set right timezone in your php.ini file, you might be surprised to see the result of the following code :- 1 //This time will not match your server time 2 $now = time(); 3 echo date('m/d/y h:i:s', time()); This is because wha......
金庸教你谈恋爱[这个写的太牛逼了,加上了天龙八部,感谢原作者]
作者:superowen88 天涯 就金大侠小说来讲,对于女性人物塑造是武侠小说里面最成功的(没有之一),甚至许多言情小说都比不上(比如琼瑶阿姨),不管是适用面还是真实性上来讲,基本可以涵盖你日常生活能接触到的人了。so,下面开讲。 第一讲 从何讲起破费周折,最终还是决定从靖蓉恋开始,一来这两个人家喻户晓,二来两人的恋情是看似最不可能的公主嫁土狗,三来其实绝大多数童鞋对于靖蓉恋的认识是错误滴! ......
- Page:39/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)