Welcome Guest, Not a member yet? Register   Sign In
How to make paging from the basics
#3

Hi and thank you for your help, unfortunately I found some mistakes in adapting my code.

Is there some way to adapt it to my controller public function index() ?

PHP Code:
class Post extends CI_Controller {
 
   
    public 
function __construct() {
 
       parent::__construct();
 
       $this->load->model('post_model');
 
       $this->load->helper('url_helper');
 
       $this->load->helper('text');
 
   }
 
   
    public 
function index() {
 
       $data['title'] = 'Title';
 
       $data['desc'] = 'Enter the description of this page index';
 
       $data['post'] = $this->post_model->get_post();    
        $this
->load->view('templates/header'$data);
 
       $this->load->view('index'$data);
 
     
Reply


Messages In This Thread
RE: How to make paging from the basics - by Marcolino92 - 08-10-2017, 02:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB