Advertisement
freddy0512

router

Jun 27th, 2015
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. <!--view--->
  2. <a href="<?php echo base_url() ?><?php echo $row->te_slug ?>">Read More</a>
  3.  
  4.  
  5.  
  6.  
  7. <!---controller--->
  8. <?php
  9. defined('BASEPATH') OR exit('No direct script access allowed');
  10.  
  11.  
  12. class Terapi extends CI_Controller {
  13.  
  14. public function __construct()
  15. {
  16. parent::__construct();
  17. }
  18. public function index()
  19. {
  20. }
  21. public function terapi($te_slug)
  22. {
  23. //echo "$te_slug";
  24. $data['terapi']=$this->terapi_model->detail($te_slug);
  25. $data['left']=$this->terapi_model->left($te_slug);
  26. $data['slide'] = $this->slide_model->slide();
  27. $this->load->view('terapi',$data);
  28. }
  29.  
  30.  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement