Slim Framework for PHP 5
Welcome to Slim!
Congratulations! Your Slim application is running. If this is
your first time using Slim, start with this "Hello World" Tutorial.
Slim Framework Community
Support Forum and Knowledge Base
Visit the Slim support forum and knowledge base
to read announcements, chat with fellow Slim users, ask questions, help others, or show off your cool
Slim Framework apps.
Twitter
Follow @slimphp on Twitter to receive the very latest news
and updates about the framework.
Slim Framework Extras
Custom View classes for Smarty, Twig, Mustache, and other template
frameworks are available online in a separate repository.
Browse the Extras Repository
EOT;
echo $template;
}
);
// POST route
$app->post(
'/post',
function () {
echo 'This is a POST route';
}
);
// PUT route
$app->put(
'/put',
function () {
echo 'This is a PUT route';
}
);
// PATCH route
$app->patch('/patch', function () {
echo 'This is a PATCH route';
});
// DELETE route
$app->delete(
'/delete',
function () {
echo 'This is a DELETE route';
}
);
/**
* Step 4: Run the Slim application
*
* This method should be called last. This executes the Slim application
* and returns the HTTP response to the HTTP client.
*/
$app->run();
slim/.htaccess 0000644 00000000535 14716422432 0007316 0 ustar 00 RewriteEngine On
# Some hosts may require you to use the `RewriteBase` directive.
# If you need to use the `RewriteBase` directive, it should be the
# absolute physical path to the directory that contains this htaccess file.
#
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
views/composer.json 0000644 00000001616 14716422432 0010434 0 ustar 00 {
"name": "slim/views",
"type": "library",
"description": "Smarty and Twig View Parser package for the Slim Framework",
"keywords": ["templating", "extensions", "slimphp"],
"homepage": "http://github.com/codeguy/Slim-Views",
"license": "MIT",
"authors": [
{
"name": "Josh Lockhart",
"email": "info@joshlockhart.com",
"homepage": "http://www.joshlockhart.com/"
},
{
"name": "Andrew Smith",
"email": "a.smith@silentworks.co.uk",
"homepage": "http://thoughts.silentworks.co.uk/"
}
],
"require": {
"slim/slim": ">=2.4.0",
"php": ">=5.3.0"
},
"suggest": {
"smarty/smarty": "Smarty templating system",
"twig/twig": "Twig templating system"
},
"autoload": {
"psr-4": {
"Slim\\Views\\": "./"
}
}
}
views/TwigExtension.php 0000644 00000005454 14716422432 0011236 0 ustar 00 urlFor($name, $params);
}
public function site($url, $withUri = true, $appName = 'default')
{
return $this->base($withUri, $appName) . '/' . ltrim($url, '/');
}
public function base($withUri = true, $appName = 'default')
{
$req = Slim::getInstance($appName)->request();
$uri = $req->getUrl();
if ($withUri) {
$uri .= $req->getRootUri();
}
return $uri;
}
public function currentUrl($withQueryString = true, $appName = 'default')
{
$app = Slim::getInstance($appName);
$req = $app->request();
$uri = $req->getUrl() . $req->getPath();
if ($withQueryString) {
$env = $app->environment();
if ($env['QUERY_STRING']) {
$uri .= '?' . $env['QUERY_STRING'];
}
}
return $uri;
}
}
views/Twig.php 0000644 00000011164 14716422432 0007334 0 ustar 00 getInstance();
$parser = $env->loadTemplate($template);
$data = array_merge($this->all(), (array) $data);
return $parser->render($data);
}
/**
* DEPRECATION WARNING! This method will be removed in the next major point release
*
* Use getInstance method instead
*/
public function getEnvironment()
{
return $this->getInstance();
}
/**
* Creates new TwigEnvironment if it doesn't already exist, and returns it.
*
* @return \Twig_Environment
*/
public function getInstance()
{
if (!$this->parserInstance) {
/**
* Check if Twig_Autoloader class exists
* otherwise include it.
*/
if (!class_exists('\Twig_Autoloader')) {
require_once $this->parserDirectory . '/Autoloader.php';
}
\Twig_Autoloader::register();
$loader = new \Twig_Loader_Filesystem($this->getTemplateDirs());
$this->parserInstance = new \Twig_Environment(
$loader,
$this->parserOptions
);
foreach ($this->parserExtensions as $ext) {
$extension = is_object($ext) ? $ext : new $ext;
$this->parserInstance->addExtension($extension);
}
}
return $this->parserInstance;
}
/**
* DEPRECATION WARNING! This method will be removed in the next major point release
*
* Get a list of template directories
*
* Returns an array of templates defined by self::$twigTemplateDirs, falls
* back to Slim\View's built-in getTemplatesDirectory method.
*
* @return array
**/
private function getTemplateDirs()
{
if (empty($this->twigTemplateDirs)) {
return array($this->getTemplatesDirectory());
}
return $this->twigTemplateDirs;
}
}
views/SmartyPlugins/function.baseUrl.php 0000644 00000001314 14716422432 0014460 0 ustar 00 request();
$uri = $req->getUrl();
if ($withUri) {
$uri .= $req->getRootUri();
}
return $uri;
}
views/SmartyPlugins/function.urlFor.php 0000644 00000002426 14716422432 0014341 0 ustar 00 urlFor($name);
if (isset($params['options'])) {
switch (gettype($params['options'])) {
case 'array':
$opts = $params['options'];
break;
case 'string':
$options = explode('|', $params['options']);
foreach ($options as $option) {
list($key, $value) = explode('.', $option);
$opts[$key] = $value;
}
break;
default:
throw new \Exception('Options parameter is of unknown type, provide either string or array');
}
$url = \Slim\Slim::getInstance($appName)->urlFor($name, $opts);
}
return $url;
}
views/SmartyPlugins/function.currentUrl.php 0000644 00000001557 14716422432 0015241 0 ustar 00 request();
$uri = $req->getUrl() . $req->getPath();
if ($withQueryString) {
$env = $app->environment();
if ($env['QUERY_STRING']) {
$uri .= '?' . $env['QUERY_STRING'];
}
}
return $uri;
}
views/SmartyPlugins/function.siteUrl.php 0000644 00000001435 14716422432 0014516 0 ustar 00 request();
$uri = $req->getUrl();
if ($withUri) {
$uri .= $req->getRootUri();
}
return $uri . '/' . ltrim($url, '/');
}
views/error_log; 0000644 00000076210 14716422432 0007724 0 ustar 00 [16-Sep-2023 09:27:27 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[17-Sep-2023 09:58:25 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[27-Sep-2023 18:13:57 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[27-Sep-2023 18:13:59 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[27-Sep-2023 18:14:01 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[27-Sep-2023 19:57:18 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[27-Sep-2023 19:57:21 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[27-Sep-2023 19:57:23 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[28-Sep-2023 14:09:03 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[28-Sep-2023 14:09:04 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[28-Sep-2023 14:09:05 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[28-Sep-2023 14:51:53 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[28-Sep-2023 14:51:54 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[28-Sep-2023 14:52:00 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[14-Oct-2023 19:28:14 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[16-Nov-2023 07:54:40 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[16-Nov-2023 07:54:43 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[16-Nov-2023 07:54:57 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[18-Nov-2023 21:39:43 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[18-Nov-2023 21:39:50 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[18-Nov-2023 21:39:55 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[19-Nov-2023 02:40:38 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[19-Nov-2023 02:40:40 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[19-Nov-2023 02:40:44 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[20-Nov-2023 03:29:40 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[20-Nov-2023 03:29:42 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[20-Nov-2023 03:29:49 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[22-Nov-2023 21:17:40 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[26-Nov-2023 10:17:46 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[27-Nov-2023 12:26:00 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[28-Nov-2023 10:59:03 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[03-Jan-2024 15:09:38 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[03-Jan-2024 16:24:06 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[05-Jan-2024 09:36:52 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[25-Jan-2024 17:07:49 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[13-Feb-2024 23:01:28 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[14-Feb-2024 02:41:34 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[14-Feb-2024 07:14:25 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[14-Feb-2024 19:52:57 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[14-Feb-2024 20:56:04 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[27-Feb-2024 14:55:08 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[11-Mar-2024 16:47:46 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[07-Apr-2024 14:24:04 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[08-Apr-2024 01:49:07 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[11-Apr-2024 18:59:25 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[12-Apr-2024 18:16:42 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[13-Apr-2024 11:00:07 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[14-Apr-2024 01:27:42 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[14-Apr-2024 20:48:04 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[16-Apr-2024 10:09:31 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[18-Apr-2024 12:18:21 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[23-Apr-2024 13:07:42 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[24-Apr-2024 06:26:43 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[29-Apr-2024 02:52:53 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[29-Apr-2024 03:57:32 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[30-Apr-2024 02:53:30 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[04-May-2024 22:24:31 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[04-May-2024 22:24:40 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[04-May-2024 22:24:43 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[05-May-2024 08:20:40 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[05-May-2024 08:20:48 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[05-May-2024 08:20:52 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[14-May-2024 01:44:54 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[14-May-2024 18:48:28 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[14-May-2024 18:48:36 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[14-May-2024 18:48:40 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[15-May-2024 11:04:48 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[17-May-2024 10:51:03 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[17-May-2024 11:54:53 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[17-May-2024 22:05:35 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[18-May-2024 08:08:44 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[19-May-2024 06:43:51 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[20-May-2024 11:09:37 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[20-May-2024 16:42:54 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[22-May-2024 14:59:47 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[22-May-2024 23:35:49 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[27-May-2024 02:15:42 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[27-May-2024 02:15:51 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[27-May-2024 02:15:54 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[27-May-2024 02:18:55 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[31-May-2024 05:39:35 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[01-Jun-2024 00:20:28 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[06-Jun-2024 15:05:19 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[06-Jun-2024 18:42:38 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[19-Jun-2024 21:19:13 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[20-Jun-2024 03:16:17 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[20-Jun-2024 04:03:53 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[20-Jun-2024 04:04:01 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[20-Jun-2024 04:04:05 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[20-Jun-2024 04:27:49 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[20-Jun-2024 04:27:57 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[20-Jun-2024 04:28:01 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[26-Jun-2024 07:57:03 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[26-Jun-2024 17:36:05 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[26-Jun-2024 18:37:48 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[01-Jul-2024 00:58:44 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[01-Jul-2024 02:02:27 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[01-Jul-2024 20:00:07 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[05-Jul-2024 10:11:06 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[05-Jul-2024 10:11:18 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[05-Jul-2024 10:11:28 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[07-Jul-2024 06:05:59 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[07-Jul-2024 23:27:14 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[11-Jul-2024 02:56:12 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[13-Jul-2024 00:43:33 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[17-Jul-2024 07:23:10 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[18-Jul-2024 22:54:22 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[19-Jul-2024 21:37:40 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[22-Jul-2024 17:00:20 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[22-Jul-2024 17:00:28 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[22-Jul-2024 17:00:32 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[22-Jul-2024 18:06:14 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[22-Jul-2024 21:17:15 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[23-Jul-2024 14:01:28 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[23-Jul-2024 15:43:33 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[26-Jul-2024 04:07:12 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[26-Jul-2024 21:44:24 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[28-Jul-2024 14:30:29 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[28-Jul-2024 19:21:31 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[28-Jul-2024 20:25:10 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[29-Jul-2024 00:45:36 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[30-Jul-2024 22:56:17 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[02-Aug-2024 06:38:40 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[02-Aug-2024 18:04:43 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[03-Aug-2024 21:51:17 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[07-Aug-2024 16:49:31 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[08-Aug-2024 23:03:18 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[10-Aug-2024 02:41:54 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[12-Aug-2024 20:01:49 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[13-Aug-2024 21:32:54 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[18-Aug-2024 20:30:10 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[20-Aug-2024 16:44:59 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[28-Aug-2024 02:49:57 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[29-Aug-2024 12:19:03 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[29-Aug-2024 17:56:56 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[29-Aug-2024 20:35:47 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[01-Sep-2024 19:33:22 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[01-Sep-2024 20:35:21 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[01-Sep-2024 20:35:29 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[01-Sep-2024 20:35:33 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[03-Sep-2024 02:37:57 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[03-Sep-2024 10:25:47 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[04-Sep-2024 04:25:45 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[04-Sep-2024 05:25:50 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[04-Sep-2024 07:59:36 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[07-Sep-2024 08:43:46 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[07-Sep-2024 08:43:53 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[07-Sep-2024 08:43:57 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[07-Sep-2024 08:50:42 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[07-Sep-2024 08:50:50 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[07-Sep-2024 08:50:54 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[07-Sep-2024 21:49:57 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[08-Sep-2024 23:43:15 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[11-Sep-2024 20:35:00 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[11-Sep-2024 20:35:09 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[11-Sep-2024 20:35:13 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[12-Sep-2024 00:51:45 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[14-Sep-2024 01:15:28 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[18-Sep-2024 08:59:01 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[20-Sep-2024 21:07:19 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[22-Sep-2024 06:38:08 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[24-Sep-2024 01:30:09 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[25-Sep-2024 03:21:17 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[27-Sep-2024 20:45:49 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[01-Oct-2024 06:42:10 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[01-Oct-2024 07:16:46 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[02-Oct-2024 00:15:18 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[05-Oct-2024 11:08:10 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[06-Oct-2024 12:31:36 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[07-Oct-2024 04:03:15 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[07-Oct-2024 13:28:50 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[07-Oct-2024 14:54:58 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[18-Oct-2024 10:16:21 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[18-Oct-2024 10:23:13 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[18-Oct-2024 10:26:21 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[23-Oct-2024 11:26:00 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[31-Oct-2024 11:50:30 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[31-Oct-2024 11:50:37 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[31-Oct-2024 11:50:42 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[04-Nov-2024 02:02:04 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[04-Nov-2024 13:31:27 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[10-Nov-2024 09:40:29 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[10-Nov-2024 16:06:51 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[10-Nov-2024 20:17:40 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
[11-Nov-2024 04:35:13 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[11-Nov-2024 08:54:07 America/Fortaleza] PHP Fatal error: Class 'Twig_Extension' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/TwigExtension.php on line 37
[11-Nov-2024 08:54:51 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Smarty.php on line 49
[11-Nov-2024 08:55:35 America/Fortaleza] PHP Fatal error: Class 'Slim\View' not found in /home/mgatv524/public_html/edurocha/vendor/slim/views/Twig.php on line 45
views/Smarty.php 0000644 00000010136 14716422432 0007677 0 ustar 00
*/
class Smarty extends \Slim\View
{
/**
* @var string The path to the Smarty code directory WITHOUT the trailing slash
*/
public $parserDirectory = null;
/**
* @var string The path to the Smarty compiled templates folder WITHOUT the trailing slash
*/
public $parserCompileDirectory = null;
/**
* @var string The path to the Smarty cache folder WITHOUT the trailing slash
*/
public $parserCacheDirectory = null;
/**
* @var SmartyExtensions The Smarty extensions directory you want to load plugins from
*/
public $parserExtensions = array();
/**
* @var parserInstance persistent instance of the Parser object.
*/
private $parserInstance = null;
/**
* Render Template
*
* This method will output the rendered template content
*
* @param string $template The path to the template, relative to the templates directory.
* @param null $data
* @return string
*/
public function render($template, $data = null)
{
$parser = $this->getInstance();
$parser->assign($this->all());
return $parser->fetch($template, $data);
}
/**
* Creates new Smarty object instance if it doesn't already exist, and returns it.
*
* @throws \RuntimeException If Smarty lib directory does not exist
* @return \Smarty Instance
*/
public function getInstance()
{
if (!($this->parserInstance instanceof \Smarty)) {
if (!class_exists('\Smarty')) {
if (!is_dir($this->parserDirectory)) {
throw new \RuntimeException('Cannot set the Smarty lib directory : ' . $this->parserDirectory . '. Directory does not exist.');
}
require_once $this->parserDirectory . '/Smarty.class.php';
}
$this->parserInstance = new \Smarty();
$this->parserInstance->template_dir = $this->getTemplatesDirectory();
if ($this->parserExtensions) {
$this->parserInstance->addPluginsDir($this->parserExtensions);
}
if ($this->parserCompileDirectory) {
$this->parserInstance->compile_dir = $this->parserCompileDirectory;
}
if ($this->parserCacheDirectory) {
$this->parserInstance->cache_dir = $this->parserCacheDirectory;
}
}
return $this->parserInstance;
}
}