/home2/medelli1/public_html/transparencia/vendor/philo/laravel-blade/src/Blade.php
*/
public $cachePath;
/**
* @var Illuminate\Container\Container
*/
protected $container;
/**
* @var Illuminate\View\Factory
*/
protected $instance;
/**
* Initialize class
* @param array $viewPaths
* @param string $cachePath
* @param Illuminate\Events\Dispatcher $events
*/
function __construct($viewPaths = array(), $cachePath, Dispatcher $events = null) {
$this->container = new Container;
$this->viewPaths = (array) $viewPaths;
$this->cachePath = $cachePath;
$this->registerFilesystem();
$this->registerEvents($events ?: new Dispatcher);
$this->registerEngineResolver();
$this->registerViewFinder();
$this->instance = $this->registerFactory();
}
public function view()
{
/home2/medelli1/public_html/transparencia/vendor/composer/ClassLoader.php
}
}
// PSR-0 include paths.
if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
return $file;
}
return false;
}
}
/**
* Scope isolated include.
*
* Prevents access to $this/self from included files.
*/
function includeFile($file)
{
include $file;
}
/home2/medelli1/public_html/transparencia/vendor/composer/ClassLoader.php
}
}
// PSR-0 include paths.
if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
return $file;
}
return false;
}
}
/**
* Scope isolated include.
*
* Prevents access to $this/self from included files.
*/
function includeFile($file)
{
include $file;
}
/home2/medelli1/public_html/transparencia/vendor/composer/ClassLoader.php
}
/**
* Unregisters this instance as an autoloader.
*/
public function unregister()
{
spl_autoload_unregister(array($this, 'loadClass'));
}
/**
* Loads the given class or interface.
*
* @param string $class The name of the class
* @return bool|null True if loaded, null otherwise
*/
public function loadClass($class)
{
if ($file = $this->findFile($class)) {
includeFile($file);
return true;
}
}
/**
* Finds the path to the file where the class is defined.
*
* @param string $class The name of the class
*
* @return string|false The path if found, false otherwise
*/
public function findFile($class)
{
// class map lookup
if (isset($this->classMap[$class])) {
return $this->classMap[$class];
}
if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
return false;
/home2/medelli1/public_html/transparencia/application/core/MY_Controller.php
use Philo\Blade\Blade;
class MY_Controller extends CI_Controller {
protected $blade;
protected $views;
protected $cache;
protected $roles;
//files
protected $fileRules = array("allowed_types" => "jpg|jpeg|JPG|JPEG|png|PNG|GIF|gif|docx|doc|xls|xlsx|ppt|pptx|pdf");
public static $post_max_size;
public function __construct() {
date_default_timezone_set("America/Mexico_City");
parent::__construct();
$this->load->library("util");
MY_Controller::$post_max_size = $this->util->getMaxPostSize() / 1024;
$this->views = APPPATH . '/views';
$this->cache = APPPATH . '/cache';
$this->blade = new Blade($this->views, $this->cache);
$this->blade->view()->composer("*", function($view) {
$view->with("session", $this->session);
$view->with("uri", $this->uri);
$view->with("control", $this);
});
$this->roles = "";
}
function ok($value = "", $contentType = httpContentType::plainHtml) {
$this->output->set_content_type($contentType);
$this->output->set_status_header('200');
echo $value;
}
function forbbiden($value = "", $contentType = httpContentType::plainHtml) {
$this->output->set_content_type($contentType);
$this->output->set_status_header('403');
echo $value;
}
/home2/medelli1/public_html/transparencia/system/core/CodeIgniter.php
{
$params = array_slice($URI->rsegments, 2);
}
/*
* ------------------------------------------------------
* Is there a "pre_controller" hook?
* ------------------------------------------------------
*/
$EXT->call_hook('pre_controller');
/*
* ------------------------------------------------------
* Instantiate the requested controller
* ------------------------------------------------------
*/
// Mark a start point so we can benchmark the controller
$BM->mark('controller_execution_time_( '.$class.' / '.$method.' )_start');
$CI = new $class();
/*
* ------------------------------------------------------
* Is there a "post_controller_constructor" hook?
* ------------------------------------------------------
*/
$EXT->call_hook('post_controller_constructor');
/*
* ------------------------------------------------------
* Call the requested method
* ------------------------------------------------------
*/
call_user_func_array(array(&$CI, $method), $params);
// Mark a benchmark end point
$BM->mark('controller_execution_time_( '.$class.' / '.$method.' )_end');
/*
* ------------------------------------------------------
/home2/medelli1/public_html/transparencia/index.php
DIRECTORY_SEPARATOR.DIRECTORY_SEPARATOR
);
}
else
{
header('HTTP/1.1 503 Service Unavailable.', TRUE, 503);
echo 'Your view folder path does not appear to be set correctly. Please open the following file and correct this: '.SELF;
exit(3); // EXIT_CONFIG
}
define('VIEWPATH', $view_folder.DIRECTORY_SEPARATOR);
/*
* --------------------------------------------------------------------
* LOAD THE BOOTSTRAP FILE
* --------------------------------------------------------------------
*
* And away we go...
*/
require_once BASEPATH.'core/CodeIgniter.php';