Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

help in control block


Reply


845 Views

Avatar
bebabeba

Community Member, 193 Posts

28 November 2008 at 11:46pm

Hi!
can tou hel me with control block? I have a function doData that take value form my form and do a query in silverstripe table.
I have this cycle where $rec is the result of my query.
while ($rec=$records->nextRecord()) {
   if($rec['nome'] != null)
$array_data[$x]['nome'] = $rec['nome'];
$x++;
}
I'm not able to print $array data in my template Result_ss

return $this->customise($array_data[$x]['nome']))->renderWith(array('SearchPage_results', 'Page'));

because if I call <% control NameFunction %> I have error.. Can you explai me how correct this?