/** * View an individual photo. * * @return void * @author Will Robertson */ public function action_index() { $this->template->content = View::factory('photos/index'); $this->template->content->set(array('user' => $this->user, 'recently_added' => Reel_More::factory(ORM::factory('photo')->order_by('created', 'desc')), 'popular' => Reel_More::factory(Helper_Photos::get_popular()), 'top_rated' => Reel_More::factory(Helper_Photos::get_top_rated()))); $this->template->sidebar = Widget::factory()->add(Helper_Default::sidebar()); }