forked from techjoomla/com_tjfields
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontroller.php
executable file
·41 lines (36 loc) · 1.01 KB
/
controller.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* @version SVN: <svn_id>
* @package TJField
* @author Techjoomla <[email protected]>
* @copyright Copyright (c) 2014-2016 TechJoomla. All rights reserved.
* @license GNU General Public License version 2 or later.
*/
// No direct access
defined('_JEXEC') or die;
/**
* TJ Fields Controller
*
* @since 2.5
*/
class TjfieldsController extends JControllerLegacy
{
/**
* Method to display a view.
*
* @param Boolean $cachable If true, the view output will be cached
* @param Array $urlparams An array of safe url parameters and their variable types, for valid values see
*
* @return JController This object to support chaining.
*
* @since 1.5
*/
public function display($cachable = false, $urlparams = false)
{
require_once JPATH_COMPONENT . '/helpers/tjfields.php';
$view = JFactory::getApplication()->input->getCmd('view', 'fields');
JFactory::getApplication()->input->set('view', $view);
parent::display($cachable, $urlparams);
return $this;
}
}