Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. class ParentController extends CI_Controller {
  2.  
  3. function __construct()
  4. {
  5. parent::__construct();
  6. //your constructor code here..
  7. }
  8. }
  9.  
  10. class ClassA extends ParentController {
  11. function __construct()
  12. {
  13. parent::__construct();
  14. }
  15. //your first controller
  16. }
  17.  
  18. class ClassB extends ParentController{
  19. function __construct()
  20. {
  21. parent::__construct();
  22. }
  23. //Your second controller
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement