@github Joomla Component Builder @copyright Copyright (C) 2015. All Rights Reserved @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html Builds Complex Joomla Components /-----------------------------------------------------------------------------------------------------------------------------*/ // No direct access to this file defined('_JEXEC') or die('Restricted access'); // import Joomla controlleradmin library jimport('joomla.application.component.controlleradmin'); /** * Get_snippets Controller */ class ComponentbuilderControllerGet_snippets extends JControllerAdmin { protected $text_prefix = 'COM_COMPONENTBUILDER_GET_SNIPPETS'; /** * Proxy for getModel. * @since 2.5 */ public function getModel($name = 'Get_snippets', $prefix = 'ComponentbuilderModel', $config = array()) { $model = parent::getModel($name, $prefix, array('ignore_request' => true)); return $model; } public function dashboard() { $this->setRedirect(JRoute::_('index.php?option=com_componentbuilder', false)); return; } public function openSnippets() { // Check for request forgeries JSession::checkToken() or die(JText::_('JINVALID_TOKEN')); // redirect to the snippets admin view $this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=snippets', false)); return; } }