Advertisement
freddy0512

router

Jun 27th, 2015
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1.  
  2.  
  3. /*urlnya*/
  4. http://localhost/terapi26/terapi/terapi/chiropractic
  5.  
  6. /*mau hilangklan terapi nya*/
  7. http://localhost/terapi26/terapi/chiropractic
  8.  
  9. /*view buat panggil readmore*/
  10. <a href="<?php echo base_url() ?>/terapi/<?php echo $row->te_slug ?>">Read More</a>
  11.  
  12.  
  13. /*routernya*/
  14. $route['terapi/(any)'] = 'terapi/terapi/$1';
  15.  
  16.  
  17.  
  18. /*controller*/
  19. <?php
  20. defined('BASEPATH') OR exit('No direct script access allowed');
  21. class Terapi extends CI_Controller {
  22. public function __construct()
  23. {
  24. parent::__construct();
  25. }
  26. public function index()
  27. {
  28. }
  29. public function terapi($te_slug)
  30. {
  31.  
  32. $data['terapi']=$this->terapi_model->detail($te_slug);
  33. $data['left']=$this->terapi_model->left($te_slug);
  34. $data['slide'] = $this->slide_model->slide();
  35. $this->load->view('terapi',$data);
  36. }
  37. }
  38.  
  39.  
  40.  
  41.  
  42. /*yang di dapat not found !*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement