Skip to content
This repository has been archived by the owner on May 30, 2020. It is now read-only.

ariven/simple-template-for-codeigniter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

simple-template-for-codeigniter

2012-05-05

Added the ability to have a library or model call to automatically fill a section with data. look in config for the template_section_autodata variable.

Simple template for codeigniter 2.x

use the config file to define sections, templates, etc.

function select_template($which)

selects which template to render with

function add_menu_item($which_menu, $link, $text)

adds a menu item to the specified menu

function content($section, $text)

adds content to $section

function add_meta($which, $what)

adds a head tag item like title, description, etc (see sample template)

function add_script($name)

adds a javascript file link

function add_stylesheet($name)

adds a stylesheet file link

function add_readyscript($text)

adds scripting that is placed in a jQuery $(document).ready() function

function render($content = '')

renders the page. if you don't add content with the content() function, you need to specify it here

About

Simple template for codeigniter 2.x

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages