Skip to content

Instantly share code, notes, and snippets.

@uno-de-piera
Created May 23, 2018 14:14
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save uno-de-piera/8963a21eb3ba3d6e05d096a3da29550d to your computer and use it in GitHub Desktop.
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Post_model extends CI_Model
{
public function all()
{
$resultados = $this->db->get('posts');
return $resultados->result();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment