-
-
Save rapzo/2124746 to your computer and use it in GitHub Desktop.
Revisions
-
nateabele revised this gist
Feb 17, 2012 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,7 @@ <?php use lithium\net\http\Media; /** * This re-maps your template paths so you can have stuff like `pages/users_{username}.php` * instead of the Lithium default. @@ -17,3 +21,4 @@ ) )); ?> -
nateabele created this gist
Feb 17, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ /** * This re-maps your template paths so you can have stuff like `pages/users_{username}.php` * instead of the Lithium default. */ Media::type('html', 'text/html', array( 'view' => 'lithium\template\View', 'processes' => array( 'all' => array('template'), 'fragment' => array('fragment') ), 'steps' => array( 'fragment' => array('path' => 'fragment') ), 'paths' => array( 'template' => LITHIUM_APP_PATH . '/views/pages/{:page}.php', 'fragment' => LITHIUM_APP_PATH . '/views/fragments/{:template}.inc' ) ));