// mengambil semua data dari model (table) 'article' dan dimasukan ke
dalam object $articles;
$articles = ORM::factory('article')->find_all();
// loop object $articles dan tampilkan datanya
foreach ($articles as $article)
{
echo '<div>';
echo 'Judul: '.$article->title;
echo 'Tanggal: '.$article->date;
echo 'Pembuat: '.$article->author;
echo $article->content;
echo '</div>';
}
Demikian contoh sederhana, dengan asumsi di dalam table articles
terdapat fields: title, date, author dan content). Semoga bisa
dipahami.
> --
> Home : http://www.kohana-id.co.cc
> You received this message because you are subscribed to the Google
> Groups "Kohana Indonesia" group.
> To post to this group, send email to koha...@googlegroups.com
> To unsubscribe from this group, send email to
> kohana-id+...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/kohana-id?hl=id