Guest User

Untitled

a guest
Feb 27th, 2016
575
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. controller_1 file
  2.  
  3. class controller_1 extends user_controller
  4. {
  5. public function view($id)
  6. {
  7. $job_id = $this->uri->segment(3);
  8.  
  9. // http://localhost/sample/controller_1/view/
  10. $this->template->set_layout($this->layout)->build('view', $this->data);
  11. }
  12. }
  13.  
  14. controller_2 file
  15.  
  16. class controller_2 extends user_controller
  17. {
  18.  
  19. public function sample()
  20. {
  21. // I need to get the job_id from controller_1
  22.  
  23. // no view for this controller
  24. }
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment