2009年1月29日星期四

Re: [fw-mvc] Getting problem with Zend_Dojo_Data

Hi All,
To the given issue here I am adding the error message, which may help you
to figure out the problem.
Fatal error: Uncaught exception 'Zend_View_Exception' with message 'script
'error/error.phtml' not found in path (../application/views/scripts/)' in
/home/shop/library/Zend/View/Abstract.php:875 Stack trace: #0
/home/shop/library/Zend/View/Abstract.php(783):
Zend_View_Abstract->_script('error/error.pht...') #1
/home/shop/library/Zend/Controller/Action/Helper/ViewRenderer.php(902):
Zend_View_Abstract->render('error/error.pht...') #2
/home/shop/library/Zend/Controller/Action/Helper/ViewRenderer.php(923):
Zend_Controller_Action_Helper_ViewRenderer->renderScript('error/error.pht...',
NULL) #3
/home/shop/library/Zend/Controller/Action/Helper/ViewRenderer.php(962):
Zend_Controller_Action_Helper_ViewRenderer->render() #4
/home/shop/library/Zend/Controller/Action/HelperBroker.php(276):
Zend_Controller_Action_Helper_ViewRenderer->postDispatch() #5
/home/shop/library/Zend/Controller/Action.php(513):
Zend_Controller_Action_HelperBroker->notifyPostDispatch() #6
/home/shop/library/Zend/C in /home/shop/library/Zend/View/Abstract.php on
line 875

Please help me to resolve the issue..

Thanks


Asish Tripathy wrote:
>
> Hi All,
>
> I am new to dojo. I am trying to create a image slide show in an
> application (by zend framework).
> For image gallery it require the data in json format. so I created an
> action in a controller, where I tried to echo the data in phtml file as
> json format. For this I used the Zend_Dojo_Data. But it is showing error.
> Please help me to get a way on this. Below I am writing the action and
> view script.
>
> public function imagesAction()
> {
> $companyID = Zend_Filter::get($this->getRequest()->get('cid'),
> 'StripTags');
> $galImage=Companyinfo::getdefaultgallery($companyID);
>
>
> $items = array(
> array('name' => 'foo', 'title' => 'Foo'),
> array('name' => 'bar', 'title' => 'Bar'),
> array('name' => 'baz', 'title' => 'Baz'),
> );
>
> $data = new Zend_Dojo_Data('id', $items);
> $this->view->images=$data->toJson();
> }
>
> images.phtml
> <?
> $this->layout()->disableLayout();
> echo $this->images;
> ?>
>
> The above code is generating error when I call
> 'http://url/controllername/images/cid/12'
> Please suggest me as soon as possible.
>

--
View this message in context: http://www.nabble.com/Getting-problem-with-Zend_Dojo_Data-tp21724024p21724534.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: