Graham Weldon (aka Predominant) recently cloned my TwigView repository on GitHub and changed it to be fully 2.x compliant. One important note on his work is that the changes break 1.x support on purpose. So if you are on CakePHP 2.x looking for a Twig plugin, feel free to head over to his repository for now / from now on. It has all the goodies of mine, but is designed for 2.x.
I plan to keep my repo compatible to 1.x for now so don’t worry. I will keep an eye on Grahams port and try to incorporate any additions he may add in the future. I really liked the way he reuses debug values to adjust the core settings for example. Good stuff! When i have the time to work on the plugin again i will merge the two somehow (as a branch or something).
Enjoy!
TL;DR
In this post i am going to explain how to use the Environment library from Rafael Bandeira to automatically configure your Database connection based on the environment your app is running.
Read More
New features have been added to TwigView just recently. New filters, Better readme, Access to view object and experimental CakePHP 2.0-dev support.
Read More
It’s me again :)
Due to a chain of unfortunate events the entire blog went down and i had to find a new host, dns and all that stuff. Also lost all my old posts in the process. :/
But i’m gonna try to restore them asap and start posting again.
The TwigView got it’s own repository shortly after the initial gist. I am using the same TwigView for a few days now and i am not missing anything so far. Everything runs smoothly and i really enjoy working with Twig.
Read More
Having fun with Twig right now. Here’s a draft View implementation with i18n support. Just a gist, but works very well for me.
For those who don’t know what Twig is:
- Twig is a template language.
- http://www.twig-project.org Read More
I’ve written a access control plugin for CakePHP dubbed Jailson. It is completly transparent and auto integrates with Auth if present.
Read More
How to save you alot of code on image links while still being able to use the full power of the cakephp router.
Read More
In some cases you find it desirable to overwrite the tag templates used by the HtmlHelper. For example if you put all your assets onto a CDN and don’t want to put the hostname in front of all paths (messy..).
Read More
As promised i’ve created a repo for the event system i was working on.
It’s currently under heavy development, yet ready to use. I don’t think the interface will change much from here on out. The installation is similar to the DebugKit.
Read More