• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to extend a selfmade controller?

#1
[eluser]kevinh21[/eluser]
Hi everyone
I made a main controller that is used to build the website and handling errors and some things...it's called wsite Controller.

Now, i would like to "link" all my new controllers to this controller instead of CI's default Controller.

How can i do this?

wsite.php
Code:
<?php
class Wsite extends Controller
{
....
}
?>

blog.php
Code:
<?php
class Blog extends Wsite
{
....
}
?>

Where/how do i have to declare the wsite controller so that the blog controller can extend wsite?


Messages In This Thread
How to extend a selfmade controller? - by El Forum - 06-30-2008, 05:21 AM
How to extend a selfmade controller? - by El Forum - 06-30-2008, 05:24 AM
How to extend a selfmade controller? - by El Forum - 06-30-2008, 05:50 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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