Getting Started with CodeIgniter

Auto load the following libraries and helpers by putting the following code lines in application/config/autoload.php:

$autoload['libraries'] = array('database');
$autoload['helper'] = array('url', 'file');

Creating a new model as application/models/post_model.php:

db->select('post_title, post_content, post_date'); 
        $query = $this->db->get('wizey_posts');
        
        if ($query->num_rows() > 0)
        {
          return 
Read the rest