Ver Mensaje Individual
  #15 (permalink)  
Antiguo 03/03/2011, 17:19
RALlave
 
Fecha de Ingreso: noviembre-2008
Mensajes: 62
Antigüedad: 15 años, 5 meses
Puntos: 2
Respuesta: Renderizar un script de otro modulo

hola masterpuppet

coloque en usaurio.phtml

<?php $this->partial("/admin/views/scripts/usuarios/crear.phtml"); ?>

y me da el error, al parecer al igual que renderScript no cuentra a usuarios.phtml

Fatal error: Uncaught exception 'Zend_View_Exception' with message 'script '/admin/views/scripts/usuarios.phtml' not found in path (C:\xampp\htdocs\mega\application\modules\gestor\v iews\scripts\;.\views\scripts\)' in C:\xampp\php\PEAR\Zend\View\Abstract.php:924 Stack trace: #0 C:\xampp\php\PEAR\Zend\View\Abstract.php(827): Zend_View_Abstract->_script('/admin/views/sc...') #1 C:\xampp\php\PEAR\Zend\View\Helper\Partial.php(103 ): Zend_View_Abstract->render('/admin/views/sc...') #2 [internal function]: Zend_View_Helper_Partial->partial('/admin/views/sc...') #3 C:\xampp\php\PEAR\Zend\View\Abstract.php(340): call_user_func_array(Array, Array) #4 [internal function]: Zend_View_Abstract->__call('partial', Array) #5 C:\xampp\htdocs\mega\application\modules\gestor\vi ews\scripts\index\usuario.phtml(1): Zend_View->partial('/admin/views/sc...') #6 C:\xampp\php\PEAR\Zend\View.php(108): include('C:\xampp\htdocs...') #7 C:\xampp\php\PEAR\Zend\View\Abstract.php(831): Zend_View->_run('C:\xampp\htdocs...') #8 C:\xampp\php\PEAR\Zend\Controll in C:\xampp\php\PEAR\Zend\View\Abstract.php on line 924

En cuanto lo que me dijiste anteriormente, tampoco me resulta, no se que hacer. La idea es reultilizar el view usuarios.phtml que se encuentra en otro module, en el cual hay un form de registro de usuarios

Fatal error: Uncaught exception 'Zend_View_Exception' with message 'script 'usuarios/crear.phtml' not found in path (C:\xampp\htdocs\mega\application\modules\gestor\v iews\scripts\;.\views\scripts\)' in C:\xampp\php\PEAR\Zend\View\Abstract.php:924 Stack trace: #0 C:\xampp\php\PEAR\Zend\View\Abstract.php(827): Zend_View_Abstract->_script('usuarios/crear....') #1 C:\xampp\php\PEAR\Zend\Controller\Action\Helper\Vi ewRenderer.php(903): Zend_View_Abstract->render('usuarios/crear....') #2 C:\xampp\htdocs\mega\library\my\controller\action\ helper\RenderPropio.php(19): Zend_Controller_Action_Helper_ViewRenderer->renderScript('usuarios/crear....') #3 [internal function]: My_Controller_Action_Helper_RenderPropio->direct('admin', 'usuarios', 'crear') #4 C:\xampp\php\PEAR\Zend\Controller\Action\HelperBro ker.php(328): call_user_func_array(Array, Array) #5 [internal function]: Zend_Controller_Action_HelperBroker->__call('RenderPropio', Array) #6 C:\xampp\htdocs\mega\application\modules\gestor\co ntrollers\IndexController.php(17): Zend_Cont in C:\xampp\php\PEAR\Zend\View\Abstract.php on line 924

Saludos...