Пример #1
0
 public static function indexAction(Request $request)
 {
     $currencyListObj = new CurrencyList();
     $currencyListObj->setSourceDir(__DIR__ . '/../Resources/public/')->loadSource('data.xml')->loadSource('data.php')->loadSource('data.json')->sortData($request)->filterData($request);
     return \ToolsBundle\Model\Twig::getInstance()->getTwig()->render('EskyBundle/Resources/views/default.twig', array('currencyListObj' => $currencyListObj, 'request' => $request));
 }
Пример #2
0
<?php

ini_set('display_errors', 'On');
error_reporting(E_ERROR | E_ALL);
require_once '../src/Autoloader.php';
require_once '../vendor/Twig/Autoloader.php';
\Autoloader::register();
\Twig_Autoloader::register();
\ToolsBundle\Model\Twig::getInstance()->setTemplatesPath(__DIR__ . '/../src');