View Single Post
  #2 (permalink)  
Old 08-06-2007, 10:23 PM
matias.quaglia's Avatar
matias.quaglia matias.quaglia is offline
Junior Member
 
Join Date: Aug 2007
Posts: 18
Default

Hi Elemental, i didn't tried ro reproduce exactly your error, but i did this:

in the bootstrap directly (no in a fuction, but directly in the bootstrap) I setted an array:

PHP Code:
$testArray = array(
    
'1' => 0,
    
'2' => 2,
    
'3' => 4,
);
$registry->set('testArray'$testArray); 
And then in an Action over controller I called that array on registry:

PHP Code:
$this->view->array Zend_Registry::get('testArray'); 
And in the view of that action:

PHP Code:
print_r($this->array); 
And that worked lovely, here is the output:

Code:
Array ( [1] => 0 [2] => 2 [3] => 4 )
Where do you use the setAction? where the getAction?

Cheers!
__________________
Matías Quaglia
==========
http://www.matiasquaglia.com.ar
Credo est Creo
Reply With Quote