class Model_Article extends Model {}4. Just call it like you would normally - everything is autoloaded in Fuel:
class Controller_Home extends Controller { public function action_index() { $articles = Model_Article::find('all'); } }
public function action_index() { $articles = Model_Article::find('all'); $data = array(); $this->template->content = View::factory('admin/test', $data); }
Mitchell Steinberg wrote on Sunday 8th of May 2011:I thought they were formatting buttons too, but they're not. I believe they just indicate the html tags that can be used. So put the code between <code> and </code> tags.
It looks like you're new here. If you want to get involved, click one of these buttons!