Example #1
0
 public function render($args = NULL)
 {
     parent::render($args);
     $this->template->files = $this->context->createServiceFiles()->where('isImage', '1')->where('imageSizeX > 150')->where('imageSizeY > 150')->where('delete', '0')->limit(10)->order('first DESC, file.created DESC')->group(':subject_x_file.subject_id');
     //$this->template->subjects = $this->context->createServicePlaces()->fetchVisible();
     $this->template->setFile(__DIR__ . "/PhotoStream.latte");
     //		$this->template->setTranslator($this->context->translator);
     $this->template->render();
 }