28 lines
425 B
PHP
28 lines
425 B
PHP
|
|
<?php
|
||
|
|
#
|
||
|
|
# Limonade
|
||
|
|
# --
|
||
|
|
# Example 05: using content_for() for capturing content in a view and injecting
|
||
|
|
# it in the layout
|
||
|
|
#
|
||
|
|
#
|
||
|
|
#
|
||
|
|
|
||
|
|
|
||
|
|
require_once dirname(dirname(dirname(__FILE__))).'/lib/limonade.php';
|
||
|
|
|
||
|
|
function configure()
|
||
|
|
{
|
||
|
|
option('env', ENV_DEVELOPMENT);
|
||
|
|
}
|
||
|
|
|
||
|
|
dispatch('/', 'index');
|
||
|
|
function index()
|
||
|
|
{
|
||
|
|
set('page_title', "using content_for()");
|
||
|
|
return html('index.html.php', 'layout.html.php');
|
||
|
|
}
|
||
|
|
|
||
|
|
run();
|
||
|
|
|