Ver Mensaje Individual
  #5 (permalink)  
Antiguo 09/12/2012, 06:32
Avatar de masterpuppet
masterpuppet
Software Craftsman
 
Fecha de Ingreso: enero-2008
Ubicación: Montevideo, Uruguay
Mensajes: 3.550
Antigüedad: 16 años, 3 meses
Puntos: 845
Respuesta: Zend cargar vistas

Cuesta dejarlo mas claro que la doc,

Código PHP:
Ver original
  1. class MyController extends Zend_Controller_Action
  2. {
  3.     public function fooAction()
  4.     {
  5.         // Renders my/foo.phtml
  6.         $this->render();
  7.  
  8.         // Renders my/bar.phtml
  9.         $this->render('bar');
  10.  
  11.         // Renders baz.phtml
  12.         $this->render('baz', null, true);
  13.  
  14.         // Renders my/login.phtml to the 'form' segment of the
  15.         // response object
  16.         $this->render('login', 'form');
  17.  
  18.         // Renders site.phtml to the 'page' segment of the response
  19.         // object; does not use the 'my/' subirectory
  20.         $this->render('site', 'page', true);
  21.     }
  22.  
  23. }


Código PHP:
Ver original
  1. class FooController extends Zend_Controller_Action
  2.     {
  3.         public function barAction()
  4.         {
  5.             // disable autorendering for this action only:
  6.             $this->_helper->viewRenderer->setNoRender();
  7.         }
  8.     }

que parte no te queda clara ?, para lo que comentas de json y xml se utilizan los contextos http://framework.zend.com/manual/1.1....contextswitch
__________________
http://es.phptherightway.com/
thats us riders :)