Hi,
Lets say i have an array called fruit in my Page controller class. How would i render it in a .ss template. Eg:
class FruitPage_Controller extends Page_Controller {
public function init() {
parent::init();
}
public function myfruit() {
$fruit = array( '0'=>'apple', '1'=>'pear', '2'=>'grape', '3'=>'peach' )
return $fruit;
}
}
And then in the .ss template
<% loop $myfruit %>
I like $fruit <br/>
<% end_loop %>