LemonStand Forum: Helpers - How do we create them - LemonStand Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Helpers - How do we create them How should we extend the view with helpers?

#1 User is offline   asecondwill 

  • Member
  • Group: Members
  • Posts: 10
  • Joined: 06-December 11

Posted 29 January 2012 - 11:09 PM

Hi,

I want to add a helper to the view so i can truncate text to a character limit to the nearest word. (at least i can't find where LS can do this already)

How do i do that? in other MVC apps there would be a Views directory and a Helpers dir. I would add a helper. Does LS have this concept? If not how else should i add functions to use in my views / templates?

Thanks

will
0

#2 User is offline   Aleksey 

  • Co-Founder
  • Group: +Administrators
  • Posts: 3,633
  • Joined: 31-October 09

Posted 31 January 2012 - 03:37 PM

Hi,

You can define helper functions in custom modules: http://forum.lemonst...dule-functions/

Thank you

#3 User is offline   asecondwill 

  • Member
  • Group: Members
  • Posts: 10
  • Joined: 06-December 11

Posted 01 February 2012 - 10:07 PM

great. Thanks
0

Share this topic:


Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users