Home | Example 1 | Example 2 | Example 3 | Example 4

This is example 2

Here we have rendered a theme with name "simple" without any external files like css,images,js... e.t.c.

Code Behind this page

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Example extends CI_Controller {

	function __construct()
	{
		parent::__construct();

		$this->load->helper('url');

		$this->_init();
	}

	...

	public function example_2()
	{
		$this->output->set_template('simple');
		$this->load->view('ci_simplicity/example_2');
	}
	...
}