简体   繁体   中英

Can a model be a frontend and backend model Magento?

Just a simple question. The data is suppose to be protected but I need implement my object into the product EAV after the products load so I can have access to them.

In the config.xml of a module, the model classes of that module are defined. If the model is only accessible from backend, or frontend, or both, depends on which tag you use.

If you want them to be accessible from both frontend and backend, use global tag

<global>
        <models>
            <module_tag>
                <class>Namespace_Module_Model</class>
            </module_tag>
        <models>
<global>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM