CodeIgniter Simple and Secure Twig |
Kenjis thank you guy, your pack is amazing and made twig and codeigniter work naturaly. I looking for something like this for a long time. Again, thank you so much.
Kenjis, how can I get the output without display the content? I want take a template to send email? Sorry if I was clear.
No problem. But there is no method. I'll add it.
Sorry, guys. I'm going to change method name from `render()` to `display()`.
This is BC break.
I have changed API.
See https://github.com/kenjis/codeigniter-ss-twig#usage Replace `$this->twig->render` with `$this->twig->display` for existing code.
Kenjis you are the most awesome developer in the world (maybe in the codeigniter twig world), thank you so much. I'll keep the project as it is, but I'll use this method on future project of course.
(05-24-2015, 07:06 PM)kenjis Wrote: Hi, I built A Simple and Secure Twig integration for CodeIgniter 3.0.How can I use CI session in Twig template? (10-22-2015, 04:19 PM)mukitti Wrote: How can I use CI session in Twig template? Session variables are variables. So it can be used in the same way as other variables. In controller: PHP Code: $this->load->library('session'); In twig file: PHP Code: {{ session.test }}
According to some feedbacks, I added a few APIs:
https://github.com/kenjis/codeigniter-ss-twig#usage
I've just released v0.1.0: https://github.com/kenjis/codeigniter-ss-twig/releases
Usage: https://github.com/kenjis/codeigniter-ss-twig#usage Thank you for your guys feedback until now. |
Welcome Guest, Not a member yet? Register Sign In |