bin.shen
2016-12-05 a4c9331bbfe3e8765ccdc1c54cc6931bac49cc82
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
 
class Index extends MY_Controller {
    
    public function __construct()
    {
        parent::__construct();
//        $this->load->model('newsdetail_model');
        
    }
    
    function _remap($method,$params = array())
    {
        if(!$this->session->userdata('openid') )
        {
            redirect(site_url('login'));
        }
        else
        {
            return call_user_func_array(array($this, $method), $params);
        }
    }
    
    
    /**
     * 
     * 
     */
    public function index()
    {
        $data['news']= $this->newsdetail_model->getremlim();
        $this->load->view('index.php',$data);
    }
    
    
}