Need two step:
1. Change deploy mode to developer :
php bin/magento deploy:mode:set developer
It not enough
2. Add to index.php
error_reporting(E_ALL);
ini_set('display_errors', 1);
Need two step:
1. Change deploy mode to developer :
php bin/magento deploy:mode:set developer
It not enough
2. Add to index.php
error_reporting(E_ALL);
ini_set('display_errors', 1);
Magento use two components of Symfony : console and EventDispatcher
http://symfony.com/projects/magento
Continue reading “Magento use two components of Symfony : console and EventDispatcher”
The Ultimate Magento 2
https://firebearstudio.com/blog/the-ultimate-magento-2-tutorial.html
Magento 2 Developer’s
https://firebearstudio.com/blog/magento-2-developers-cookbook-useful-code-snippets-tips-notes.html
Extension to refer :
https://firebearstudio.com/blog/the-best-magento-2-extensions.html
Mage_Core_Model_Email_Template line 454
print_r($mail->getBodyHtml()); die
truoc ham $mail->send();
–Update base URLs
select * from core_config_data where path like ‘web%url’;
UPDATE core_config_data SET `value`=REPLACE(`value`, “rtp12.bluecomdev.net”, “rtp13.bluecomdev.net”) WHERE path LIKE ‘web%url’;
select * from core_config_data where path like “%cookie%”;
UPDATE core_config_data SET `value`=REPLACE(`value`, “rtp12.bluecomdev.net”, “rtp13.bluecomdev.net”) WHERE path LIKE ‘%cookie%’;
–Remove store emails
select * from core_config_data where `value` like ‘%@%’ and path != ‘sales/identity/address’;
UPDATE core_config_data SET `value`=”dev.null@example.com” WHERE `value` LIKE ‘%@%’ AND path != ‘sales/identity/address’;
–Anonymize customer data
–It’s not 100% complete (I remember still seeing real customer emails / phone numbers in some places of the BO like quotes / past orders)
–Also in that script I don’t replace customer names (more convenient if you have to compare orders with the production server, but Decathlon might think it’s too sensitive information?)
–script to anonymize a Magento database dump
–NEVER RUN IT ON A PRODUCTION SERVER, it is for anonymizing a COPY of the database before using it on dev/preprod server
–customer data
UPDATE customer_entity SET email=CONCAT(‘bluecomcntest+customer.’,entity_id,’@gmail.com’);
UPDATE customer_address_entity_varchar SET value=’0102030405′ WHERE attribute_id=(SELECT a.attribute_id FROM eav_attribute a, eav_entity_type t WHERE t.entity_type_id=a.entity_type_id AND t.entity_type_code=’customer_address’ AND a.attribute_code=’telephone’);
UPDATE customer_address_entity_text SET value=’My street’ WHERE attribute_id=(SELECT a.attribute_id FROM eav_attribute a, eav_entity_type t WHERE t.entity_type_id=a.entity_type_id AND t.entity_type_code=’customer_address’ AND a.attribute_code=’street’);
–order data
UPDATE sales_flat_order SET customer_email=’bluecomcntest@gmail.com’;
UPDATE sales_flat_order_address SET email=’bluecomcntest@gmail.com’, telephone=’0102030405′, street=’My street’;
UPDATE sales_flat_quote SET customer_email=’bluecomcntest@gmail.com’;
UPDATE sales_flat_quote_address SET email=’bluecomcntest@gmail.com’, telephone=’0102030405′, street=’My street’;
–other components with personal data
UPDATE newsletter_subscriber SET subscriber_email=’bluecomcntest@gmail.com’;
UPDATE enterprise_invitation SET email=’bluecomcntest@gmail.com’;
UPDATE enterprise_giftregistry_person SET email=’bluecomcntest@gmail.com’;
–get rid of logs
Which is the right way to export Database of Magento EE?
mysqldump -u -p | sed -e “s/DEFINER=\`[^\`]\+\`@\`[^\`]\+\`/DEFINER=CURRENT_USER/g” | gzip > db_bk.sql.gz
$j(this).parent().before(‘asdf
asdf
‘);
Javascript only except 1 string, 1 line, not new line => error when excute
2 ways to fix :
$j(this).parent().before('<?php echo json_encode($this->getChildHtml('content.images'));?>');
$j(this).parent().before($j(‘.content-image’).remove());
Account Free : save info still three days, if you want more, let pay 😀
các tool monitor tự build lấy: zabbix, cacti
Dưới đây là 10 sai lầm tài chính người giàu không bao giờ mắc phải:
1. Không đầu tư vào bản thân
Triệu phú đầu tiên của Mỹ – Benjamin Franklin nổi tiếng với câu nói: “Đầu tư vào bản thân sẽ cho lãi suất tốt nhất”. Mọi người thường chờ đến khi lãnh đạo của mình mua tài liệu cho, cử đi hội thảo, đi đào tạo. Nhưng bạn có thể tự nâng cao trình độ cho bản thân nếu muốn giàu có. Hãy đầu tư cho chính mình.
2. Quá chú trọng vào giải trí
Khi tham dự một sự kiện tại nhà hàng Dave and Buster’s, tôi nhận ra hàng trăm người trẻ độ tuổi 21-35 đang lãng phí rất nhiều thời gian và tiền bạc. Hầu hết họ chi 30-50% tiền lương cho giải trí. Người giàu thì ngược lại, họ sử dụng chỗ đó để đầu tư cho ước mơ của mình.
3. Không tiết kiệm
Phần lớn mọi người chi sạch tiền cho những thứ rất lặt vặt. Khi họ nhìn thấy mình có tiền trong tài khoản, họ ngay lập tức nghĩ ra món đồ tương ứng và đi mua luôn. Những hành động bột phát như vậy cần phải hạn chế. Người giàu tiết kiệm ít nhất 10% những gì kiếm được và ít khi đi vay để mua đồ cho bản thân, thậm chí cả lúc họ nghĩ là rất cần.
4. Làm việc vì tiền
Phần lớn mọi người làm việc vì tiền. Nhưng người giàu biết cách để tiền làm việc cho mình. Họ hiểu tiền là một phụ phẩm của dịch vụ họ cung cấp cho thị trường, và của cải của họ là tổng những gì họ đã cống hiến cho xã hội. Đó là lý do họ không bao giờ làm việc vì tiền.