Welcome Guest, Not a member yet? Register   Sign In
Extending Controller from a Master Controller
#1

[eluser]Mavrick[/eluser]
Hi every one,

I have created a Master Controller. And I want my other controller's to extend my Master controller. I did tried that but no luck. Is there a way of doing it???

Let me put my Master Controller here:

Code:
<?php
    class Master extends CI_Controller {
        function __construct() {
            parent::__construct();
            $this->load->helper('url');
            $this->load->view('header');
        }
    }
?>

Now What I tried was :
Code:
class My_controller extends Master {....}
But it didn't worked... Can some one tell me a way to this kind of a thing? If its possible Smile

Thanks in advance,


Messages In This Thread
Extending Controller from a Master Controller - by El Forum - 08-18-2011, 04:53 AM
Extending Controller from a Master Controller - by El Forum - 08-18-2011, 05:29 AM
Extending Controller from a Master Controller - by El Forum - 08-18-2011, 05:37 AM
Extending Controller from a Master Controller - by El Forum - 08-18-2011, 05:39 AM
Extending Controller from a Master Controller - by El Forum - 08-18-2011, 05:53 AM
Extending Controller from a Master Controller - by El Forum - 08-18-2011, 06:20 AM
Extending Controller from a Master Controller - by El Forum - 08-18-2011, 09:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB