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

[eluser]Kemik[/eluser]
Hello,

Is there anyway to extend a controller in two different ways?

E.g. Have one called User_Controller and one called Admin_Controller?

Both will have different code so I cannot really extend User_Controller to create Admin_Controller.

If not then I'll just extend User_Controller
#2

[eluser]Michael Wales[/eluser]
You can extend a controller in as many ways as you'd like.

MY_Controller.php
Code:
class User_Controller extends Controller {
  function User_Controller() {
  }
}

class Admin_Controller extends Controller {
  function Admin_Controller() {
  }
}
#3

[eluser]Jeffrey04[/eluser]
* Sorry... wrong post *
#4

[eluser]xwero[/eluser]
What is your code?
#5

[eluser]Jeffrey04[/eluser]
[quote author="xwero" date="1210340933"]What is your code?[/quote]

i missed the line

Quote:application/libraries/MY_Input.php
in the documentation Sad




Theme © iAndrew 2016 - Forum software by © MyBB