PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
classes
README.md

README.md

Template inheritance module

For Developer

Developer API is the same as for Kohana_View. Please refer to public methods of Kohana_View library

Methods:

  • set
  • set_global
  • bind
  • bind_global
  • set_filename
  • render

If anything goes wrong please refer to source code, I've tried to document it out.

Controller_Template

Also I've created a basic Controller_Template that uses Template library to generate a page.

For Designer

  • Indicate the block

    if (!Template::output($title)):
        echo "default content here if you didn't redefined the block in descendant template";
    endif;
    
  • Set the parent of the template

    Template::extend('layout');
    
  • Redefine the block

    Template::begin($title);
        echo "redefined content here";
    Template::end();