Skip to content

A Kohana v3 module for using the Symfony Templating component.

Notifications You must be signed in to change notification settings

rs324/sftemplating

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What?

This project is an interface between Kohana and the Symfony Components templating library.

Why?

Because I liked the syntax of the Symfony templating library!

How?

Just extend Controller_sfTemplate when creating your controller. The controller will try and guess the template file to use (it will default to <controller>/<action≥.php), but you can override it using the set_template() function in your action method.

Parameters to be sent to the template are set using set_vars(). Its just an array.

The module configuration includes the base helpers by default, but you can override them in your application configuration.

Who?

The code was pretty much a copy of John Heathco's Twig controller for Kohana.

About

A Kohana v3 module for using the Symfony Templating component.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published