harkor

Joomla get module

Nov 26th, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. // allow direct access
  2. define('_JEXEC', 1);    
  3.  
  4. // this script is in /modules
  5. define('JPATH_BASE', realpath(dirname(__FILE__) . '/../../..'));
  6.  
  7. // bootstrap joomla
  8. require_once JPATH_BASE . '/includes/defines.php';
  9. require_once JPATH_BASE . '/includes/framework.php';
  10.  
  11. // instantiate application.
  12. $app = JFactory::getApplication('site');
  13. $app->initialise();
  14.  
  15. jimport('joomla.application.module.helper');
  16.  
  17. $module = JModuleHelper::getModule('mod_blanco_box',  'Rendez-vous');
  18.  
  19. echo '<pre>';
  20. print_r($module);
  21. echo '</pre>';
Advertisement
Add Comment
Please, Sign In to add comment