17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 692 Views |
-
help in control block

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_ssreturn $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?
| 692 Views | ||
|
Page:
1
|
Go to Top |

