ORM::factory

fredhowe

Joined: 2012-05-28
Posts: 12
Posted: Fri, 2012-07-27 09:09

$query = ORM::factory("categorie")
$view->content->cats = $query->order_by("name", "ASC")->find_all();

I have a extended DB Table like "categories"

How do i catch the content of the Table with
ORM::factory
as objekt/class for further use like >

<? foreach ($cats as $i => $cat): ?>
$name = $cat->name;
<? endforeach ?>

or other function

thanks in advance
Fred