Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Template Questions /

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

Cointroller function inside control loop in template


Go to End


9 Posts   8362 Views

Avatar
spankmaster79

Community Member, 46 Posts

17 January 2011 at 1:29am

Ok, so just putting the function in the right class and then checking properties over $this should do the trick.

I need to parse a string and see if it contains something with preg_match. So by putting the function in the right place and then checking from PHP side will work I guess.

Go to Top