fuel / parser

Fuel PHP Framework - v1.x template parser package adapters
http://fuelphp.com
64 stars 45 forks source link

Changed View forge to allow setting filename later #55

Closed dmyers closed 11 years ago

dmyers commented 12 years ago

So you can do (new functionality):

$view = View_Twig::forge();
$view->set_filename('filename');

Or do (existing functionality):

$view = View_Twig::forge('filename');
$view2 = View::forge('filename.twig');

Doesn't conflict with default fuel core either:

$view = View::forge('errors/production');

This matches the core fuel View class more.