Posts tagged with 'frontal'

Zend Framework bindings for Frontal

Having thought further about Frontal, Carl's JS library, I wrote a quick View Helper to make it easier to use it in Zend Framework projects.

It's available to download on Dropbox, it's available under the MIT licence. I'll bung it up on somewhere like GitHub once I work out how Git works.

Basic usage

Before you do anything you'll need to register the helpers in your application.ini:

Frontal - a new approach to triggering Javascript behaviour

My friend Carl has just released a really interesting Javascript library called Frontal. I've had a night to sleep on it and thought I'd share my thoughts.

The key problem Frontal addresses is 'some Javascript needs to be run only on some pages'. There are a few different approaches to this:

Per-page scripts

The first approach is to have lots of Javascripts that only apply for the current page, and insert them in the HEAD of the document: