Are you a regular stikked user? Signup so you can keep track of your pastes!

RE: CI Template Library

By Gamboge Ostrich, 1 Year ago, written in PHP. This paste is a reply to CI Template Library by Violet Hedgehog
URL http://stikked.com/view/94588996
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2.  
  3. class Basetemplate {
  4.         var $set = array();
  5.        
  6.         function set( $key, $value )
  7.         {
  8.                 $this->set[ $key ] = $value;
  9.         }
  10.        
  11.         function load( $views, $template = "")
  12.         {
  13.                 if( !is_array($views) || empty($views) )
  14.                 {
  15.                         return;
  16.                 }
  17.                 $this->set['views'] = $views;
  18.                 $ci =& get_instance();
  19.                 $ci->load->view( $template . "template", $this->set );
  20.         }
  21.  
  22. }
  23. ?>

Reply to "RE: CI Template Library"

Here you can reply to the paste above

Create a snipurl

Make Private

Feeling clever? Set some advanced options.