• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Template Library and DX_Auth Integration

#8
[eluser]Mithun[/eluser]
I just got that My APP_Controller is not loading ;-)

I Tried the code

Code:
class MY_Controller extends Controller {

   function MY_Controller()
   {
      parent::Controller();
      $data['user_name'] = $this->dx_auth->get_username();
      $this->template->write_view('user_area','user_area', $data);
   }

}

and

Code:
<?php
class Opportunities extends MY_Controller
{
    function Opportunities()
    {
        parent::Controller();
        $this->load->helper(array('url', 'form'));
        $this->load->library(array('Form_validation','template', 'DX_Auth'));
    }
does not fire the code inside MY_Controller's constructor


But the below combination, code without MY_Controller works
Code:
<?php
class Opportunities extends Controller
{
    function Opportunities()
    {
        parent::Controller();
        $this->load->helper(array('url', 'form'));
        $this->load->library(array('Form_validation','template', 'DX_Auth'));
        $data ['user_name'] = $this->dx_auth->get_username();
        $this->template->write_view('user_area','user_area', $data);
    }


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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.