function __construct() { $this->mcrypt = new MCrypt(); JModelLegacy::addIncludePath(JPATH_COMPONENT_ADMINISTRATOR . '/models'); $this->keyModel = JModelLegacy::getInstance('Key', 'ImcModel', array('ignore_request' => true)); parent::__construct(); }