Skip to content

Instantly share code, notes, and snippets.

@mariuskubilius
Created November 9, 2012 15:36
Show Gist options
  • Save mariuskubilius/4046351 to your computer and use it in GitHub Desktop.
Save mariuskubilius/4046351 to your computer and use it in GitHub Desktop.
Lithium media class to serve layouts from app
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