Certificated magento

2.11) Describe the effect of module dependencies

Module dependencies is a definition which illustrates the action dependencies of a module on another module. A simple example is as below:

 
<?xml version="1.0>
<config>
<modules>
<Magestore_Bundle>
<active>true</active>
<codePool>core</codePool>
<depends>
<Mage_Catalog/>
<Magestore_Bundle>
<modules>
</config> 
If the module Mage_Bundle is active and Mage_Catalog does not exist or be inactive, the system will report the issue and stop the execution.
 
Besides, the module dependency is inserted in code when the system checks the exection or in configuration, for example: configure in the following file adminhtml.xml (Menu CMS in admin will be hidden if the module  Magestore_Test does not exist or be inactive).
 
<?xml version="1.0>
<config>
<menu>
<cms>
<depends>
<module>Magestore_Test</module>
<depends>
<cms>
<menu>
</config> 

 

0 Bình luận

Trở về
  • 1.12) Set up a cron job
  • 1.12) Set up a cron job

    Let’s start with server setup.   As any complex system, Magento has a lot of tasks that need to be executed...