# css-javascript-toolbox/8.0.2/views/packages/raw-file/view.php

CSS &amp; JavaScript Toolbox, version 8.0.2. 38 lines.

- Page: https://pluginprobe.com/plugins/css-javascript-toolbox/8.0.2/code/views/packages/raw-file/view.php
- Raw: https://pluginprobe.com/plugins/css-javascript-toolbox/8.0.2/raw/views/packages/raw-file/view.php
- Modified: 2014-05-06T16:47:26+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/8.0.2/code/views/packages/raw-file/view.php#L10-L20`.

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

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

/**
* 
*/
class CJTPackagesRawFileView extends CJTView {
	
	/**
	* put your comment there...
	* 
	* @var mixed
	*/
	protected $rawContent;
	
	/**
	* put your comment there...
	* 
	* @param mixed $tpl
	*/
	public function display($tpl = null) {
		// Get model.
		$model =& $this->model;
		// Get raw content for the requested file.
		$this->rawContent = nl2br(htmlentities($model->getFileContent()));
		// Display!
		echo $this->getTemplate($tpl);
	}
	
} // End class.

// Hookable!!
CJTPackagesRawFileView::define('CJTPackagesRawFileView', array('hookType' => CJTWordpressEvents::HOOK_FILTER));
```
