Câu hỏi được gắn thẻ «registry»


5
Mage registry key _singleton / Midie / observer đã tồn tại
Khi tôi cố gắng thêm hoặc chỉnh sửa một sản phẩm, tôi nhận được lỗi sau: Mage registry key "_singleton/weee/observer" already exists Trace: #0 app/Mage.php(222): Mage::throwException('Mage registry k...') #1 app/Mage.php(476): Mage::register('_singleton/weee...', false) #2 app/code/core/Mage/Core/Model/App.php(1316): Mage::getSingleton('weee/observer') #3 app/Mage.php(447): Mage_Core_Model_App->dispatchEvent('adminhtml_catal...', Array) #4 app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Attributes.php(143): Mage::dispatchEvent('adminhtml_catal...', Array) #5 app/code/core/Mage/Adminhtml/Block/Widget/Form.php(144): Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Attributes->_prepareForm() #6 app/code/core/Mage/Core/Block/Abstract.php(862): Mage_Adminhtml_Block_Widget_Form->_beforeToHtml() #7 …

3
Hiểu về Magento Registry
Tôi đã luôn tự hỏi, tất cả các dữ liệu đăng ký được lưu trữ trong Magento ở đâu? Tôi biết rằng ngay cả các đối tượng singleton được lưu trữ trong sổ đăng ký. Và registry chỉ là một biến mảng tĩnh của lớp Mage . Tôi có một …

1
\ Magento \ Framework \ Registry không dùng nữa trong magento 2.3, Làm thế nào để tạo cá thể với Registry?
/** * Registry model. Used to manage values in registry * * Registry usage as a shared service introduces temporal, hard to detect coupling into system. * It's usage should be avoid. Use service classes or data providers instead. * * @api * @deprecated * @since 100.0.2 */ https://www.mageplaza.com/devdocs/magento-2-regology-register.html Ai …

Khi sử dụng trang web của chúng tôi, bạn xác nhận rằng bạn đã đọc và hiểu Chính sách cookie và Chính sách bảo mật của chúng tôi.
Licensed under cc by-sa 3.0 with attribution required.