Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » help in control block

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

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

Page: 1
Go to End
Author Topic: 809 Views
  • bebabeba
    Avatar
    Community Member
    192 Posts

    help in control block Link to this post

    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?

    809 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.