Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- defined('BASEPATH') OR exit('No direct script access allowed');
- class Welcome extends CI_Controller {
- public function index()
- {
- $this->load->view('welcome_message',$data);
- }
- public function trend()
- {
- //for calling paginantion in function trendview
- $this->trendview();
- }
- public function trendview($offset=0)
- {
- $jml= $this->db->get_where('articles',array('art_jenis'=>'TREND'));
- $config['base_url'] = $this->config->item('base_url').'trend'; //tren is caming from router
- //$config['base_url'] = base_url().'welcome/trendview'; <--when i change this it working by default url
- }
- }
- //Router
- /*router for front end artikel*/
- $route['trend'] = 'welcome/trend';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement