View Single Post
  #3  
Old 09-06-2013, 01:28 PM
  xplorer's Avatar 
xplorer xplorer is offline
 

X-Cart team
  
Join Date: Jul 2004
Posts: 925
 

Default Re: No documentation, no debugging, no knowledge base ....

Quote:
Originally Posted by BenWeiland
1) What is the best way to check if another module is enabled?

PHP Code:
\XLite\Core\Database::getRepo('XLite\Model\Module')->findOneBy(array('author' => 'Max''name' => 'Test'))->getEnabled() 

Quote:
Originally Posted by BenWeiland
2) Can we make use of doctrine eventmanager? I would like to make an event listener for some extra logs. What would be the best way to do this?

It depends on what you are looking for. Try these links:
- http://docs.doctrine-project.org/en/latest/reference/events.html
- http://docs.doctrine-project.org/en/latest/reference/advanced-configuration.html#sql-logger-optional

Does it help?
Reply With Quote