Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration with twig template engine #43

Open
reidsneo opened this issue Feb 12, 2016 · 0 comments
Open

Integration with twig template engine #43

reidsneo opened this issue Feb 12, 2016 · 0 comments

Comments

@reidsneo
Copy link

How do I integrated PIP with twig?
I want to replace current render() view with twig render
just by calling $template = $this->loadTemplate('index.html');

instead calling
$loader = new Twig_Loader_Filesystem(ROOT_DIR .'application/views/');
$twig = new Twig_Environment($loader);
$template = $twig->loadTemplate('index.html');

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant