# css-javascript-toolbox/12/controllers/installer.php

CSS &amp; JavaScript Toolbox, version 12. 57 lines.

- Page: https://pluginprobe.com/plugins/css-javascript-toolbox/12/code/controllers/installer.php
- Raw: https://pluginprobe.com/plugins/css-javascript-toolbox/12/raw/controllers/installer.php
- Modified: 2024-08-07T14:30:52+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/css-javascript-toolbox/12/code/controllers/installer.php#L10-L20`.

```php
<?php
/**
* 
*/

// Disallow direct access.
defined('ABSPATH') or die("Access denied");

// import dependencies.
cssJSToolbox::import('framework:mvc:controller-ajax.inc.php');

/**
* 
*/
class CJTInstallerController extends CJTAjaxController {
	
	/**
	* put your comment there...
	* 
	* @var mixed
	*/
	protected $controllerInfo = array('model' => 'installer');
	
	/**
	* put your comment there...
	* 
	*/
	public function __construct() {
		parent::__construct();
		// Register actions!
		$this->registryAction('install');
		$this->registryAction('dismissNotice');
	}
	
	/**
	* put your comment there...
	* 
	*/
	public function dismissNoticeAction() {
		$this->model->dismissNotice(true);
		$this->response = true;
	}
	
	/**
	* put your comment there...
	* 
	*/
	protected function installAction() {
		// Get model object!
		$model =& $this->model;
		// Installa requested operation.
		$input['operation'] = $_REQUEST['operation'];
		$this->response = $model->setInput($input)->install();
	}
	
} // End class.

```
