Created
May 2, 2012 00:55
-
-
Save victorferraz/2572738 to your computer and use it in GitHub Desktop.
Sidebar Tutorial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* @package Noticias | |
* @version 1.0 | |
* @author Victor Ferraz | |
* @copyright Copyright (c) 2011, Victor Ferraz | |
* @license http://www.gnu.org/licenses/gpl-3.0.txt | |
*/ | |
class Noticias_model extends My_Model { | |
/** | |
* @todo DocBlock | |
* @return coleção de objetos | |
*/ | |
function ultimas_noticias() | |
{ | |
$query = $this->db->get("noticias"); | |
$data = $query->result(); | |
return $data; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment