Jump to:

22976 Posts in 11702 Topics by 2826 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: 720 Views
  • bebabeba
    Avatar
    Community Member
    192 Posts

    help in function in .ss Link to this post

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

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

    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
    Avatar
    Forum Moderator
    5462 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

    720 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.