Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-12-2008, 10:14 AM
Junior Member
 
Join Date: May 2008
Posts: 1
Default Zend_View Action helper

Hello,

my controller content is:

PHP Code:
class Main_ComponentController extends Zend_Controller_Action{
  
  public function 
fooAction(){
      
$this->view->testArray = array(1,2,3,4,5);
  }
  

and use Action Helper in view layer (index.phtml), in this way:
HTML Code:
<?php echo $this->action('foo', 'component', 'main'); ?>
the foo.phtml content is:
HTML Code:
<?php var_dump($this->testArray); ?>
the result of this action is:
Code:
null
Note: When I remove line 128 from file Zend/View/Helper/Action.php,
this line is:

PHP Code:
// $viewRenderer->view = $this->cloneView(); 
everything goes well, and the result is correct.


I don't know, what I am doing wrong...

any suggestions?

Yours
Cezar708
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:56 PM.