Django import

Django import
This commit is contained in:
Alex Lewis
2012-09-28 21:05:33 +10:00
parent 0cd92dfa9f
commit b0eb5ba9e1
118 changed files with 12494 additions and 11290 deletions

View File

@@ -0,0 +1,33 @@
<?php
namespace BodyRep\Twig\Extension;
use Symfony\Component\HttpKernel\KernelInterface;
use Symfony\Bundle\TwigBundle\Loader\FilesystemLoader;
use CG\Core\ClassUtils;
class TemplateExtension extends \Twig_Extension
{
protected $loader;
protected $controller;
public function __construct(FilesystemLoader $loader)
{
$this->loader = $loader;
}
public function setController($controller)
{
$this->controller = $controller;
}
/**
* Returns the name of the extension.
*
* @return string The extension name
*/
public function getName()
{
return 'demo';
}
}