Jump to:

23455 Posts in 18904 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » help in function in .ss

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

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

    help in function in .ss Link to this post

    show in my .ss file resul data of my query in this way.

    <div class="nome_query">$Nome</div>

    Near name I need a link that take an id. Thi id must go a new function in my Page.php..help..How can call function in my .ss file?

  • Willr
    Forum Moderator
    5497 Posts

    Re: help in function in .ss Link to this post

    Calling functions from Page.php is easy. You just make a function say function MyTest { return "Hi"; } and then you can call it in your template like $MyTest

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.