Skip to content

niterain/PhpTalView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Allows you to use PHPTAL seamlessly in Laravel

Installation

Add niterain\PhpTalView as a requirement to composer.json:

composer require niterain/php-tal-view:2.0.1.x-dev

Update your packages with composer update or install with composer install.

Once Composer has installed or updated your packages you need to register PhpTalView with Laravel. Open up app/config/app.php and find the providers key towards the bottom and add:

'Niterain\PhpTalView\PhpTalViewServiceProvider',

Configuration

Currently PhpTalView is set by default to HTML5, however, you can change this setting in its config.php file, XHTML, or XML.

Usage

You call the PhpTalView template like you would any other view:

View::make('hello', array(...))

Filters

PHPTAL also has a nice feature which you can use called filters, for example I have one that bust the cache for images, js, css, this is configurable via the config file.

'preFilters' => array(
    'bustCache',
    'minimizeJs',
    'adderJs'
)

About

This package adds PHPTAL to Laravel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages