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


class Author extends Base_Controller
{
	/** @var  Demo_author_model */
	public $demo_author_model;

	/** @var  Demo_author_model */
	public $author_model;

	/**
	 * Constructor
	 *
	 */
	public function __construct()
	{
		parent::__construct();

		// Models
		$this->load->model(
			'demo_author_model',
			'author_model',
			TRUE
		);
	}

	public function index()
	{
		echo 'Author Controller > Index()';
	}

	public function get_list()
	{
		$authors = $this->author_model->get_lang_list();

		$this->template['authors'] = $authors;

		$this->output('author_list');
	}
}

