Created
November 9, 2012 15:36
-
-
Save mariuskubilius/4046351 to your computer and use it in GitHub Desktop.
Lithium media class to serve layouts from app
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 characters
use lithium\net\http\Media; | |
Media::type('default', null, array( | |
'view' => 'lithium\template\View', | |
'paths' => array( | |
'layout' => array( | |
'{:library}/views/layouts/{:layout}.{:type}.php', | |
LITHIUM_APP_PATH.'/views/layouts/{:layout}.{:type}.php' | |
), | |
'template' => '{:library}/views/{:controller}/{:template}.{:type}.php', | |
'element' => array( | |
'{:library}/views/elements/{:template}.{:type}.php' | |
) | |
) | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment