Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions code/site/controller.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php
/**
* @version CVS: 1.0.0
* @package Com_Api
* @author Parth Lawate <contact@techjoomla.com>
* @copyright Copyright (C) 2014. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access
defined('_JEXEC') or die;

jimport('joomla.application.component.controller');

/**
* Class ApiController
*
* @since 1.6
*/
class ApiFrontendController extends JControllerLegacy
{
/**
* Method to display a view.
*
* @param boolean $cachable If true, the view output will be cached
* @param mixed $urlparams An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.
*
* @return JController This object to support chaining.
*
* @since 1.5
*/
public function display($cachable = false, $urlparams = false)
{
$app = JFactory::getApplication();
$view = $app->input->getCmd('view', 'keys');
$app->input->set('view', $view);

parent::display($cachable, $urlparams);

return $this;
}
}