/** * Extend or include a layout by giving the * layout folder name as first parameter. * * @param $template * @param $params * @return string **/ function extend($template, $params = []) { return View::extend($template, $params); }
<?php View::extend('base'); ?> <div class="row"> <?php View::start_block('content'); ?> <?php foreach ($sections as $section => $modules) { ?> <div class="col-md-2"> <h4> <?php echo text('section.' . $section); ?> </h4> <?php foreach ($modules as $module => $settings) { ?> <div class="panel panel-default"> <div class="panel-heading"> <a href="<?php echo URL::to($module); ?> "> <h3 class="panel-title"> <?php if (isset($settings['icon'])) {
<?php View::extend('manager/base'); ?> <?php View::start_block('content'); ?> <h1>Create a module</h1> <div class="yf" data-use="manager.Module"> <?php echo View::factory('manager/form', array('form' => $form))->render(); ?> </div> <?php View::end_block();