-
Notifications
You must be signed in to change notification settings - Fork 7
/
controller.php
35 lines (32 loc) · 1.12 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
<?php
/**
* @version $Id
* @package Joomla
* @subpackage com_api
* @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
defined('_JEXEC') or die( 'Restricted access' );
jimport( 'joomla.application.component.controller' );
class ApiController extends JController
{
/**
* Base Controller Constructor
*
* @param array $config Controller initialization configuration parameters
* @return void
* @since 0.1
*/
public function __construct( $config = array() )
{
parent::__construct( $config );
$this->set( 'option', JRequest::getCmd( 'option' ) );
JModel::addIncludePath( JPATH_SITE .DS. 'components' .DS. 'com_api' .DS. 'models' );
JTable::addIncludePath( JPATH_SITE .DS. 'components' .DS. 'com_api' .DS. 'tables' );
}
}