Пример #1
0
 function albums()
 {
     $rep = $this->getResponse('xml');
     $rep->contentTpl = 'albums';
     $picasaService = new jPicasa();
     $rep->content->assign('albums', $picasaService->albums());
     return $rep;
 }
 function albums()
 {
     $rep = $this->getResponse('html');
     $tpl = new Jtpl();
     $picasaService = new jPicasa();
     $tpl->assign('albums', $picasaService->albums());
     $rep->body->assign('MAIN', $tpl->fetch('albums_html'));
     return $rep;
 }