Welcome Guest, Not a member yet? Register   Sign In
Template Library and DX_Auth Integration
#6

[eluser]Mithun[/eluser]
As i don't want each unnecessary extra master page template features of MY_Controller as I already have a robust Template Library, I decided to write my own APP_Controller.php and put it in system folder

Code:
<?php

class APP_Controller extends Controller {
     /**
     * The APP_Controller constructor method.
     */
    function __construct(){
        parent::Controller();
        $this->load->library(array('template', 'DX_Auth'));
        $data ['user_name'] = $this->dx_auth->get_username();
        $this->template->write_view('user_area','user_area', $data);
    }
}

and
Quote:class Examples extends APP_Controller

Thes result was
Code:
Fatal error: Class 'APP_Controller' not found in C:\wamp\www\ci\system\application\controllers\examples.php on line 2


Messages In This Thread
Template Library and DX_Auth Integration - by El Forum - 01-18-2010, 12:59 AM
Template Library and DX_Auth Integration - by El Forum - 01-18-2010, 01:56 AM
Template Library and DX_Auth Integration - by El Forum - 01-18-2010, 03:10 AM
Template Library and DX_Auth Integration - by El Forum - 01-18-2010, 04:05 AM
Template Library and DX_Auth Integration - by El Forum - 01-18-2010, 04:12 AM
Template Library and DX_Auth Integration - by El Forum - 01-18-2010, 04:18 AM
Template Library and DX_Auth Integration - by El Forum - 01-18-2010, 04:25 AM
Template Library and DX_Auth Integration - by El Forum - 01-18-2010, 04:41 AM
Template Library and DX_Auth Integration - by El Forum - 01-18-2010, 05:22 AM
Template Library and DX_Auth Integration - by El Forum - 01-18-2010, 05:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB