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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Template Questions /

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

Cointroller function inside control loop in template

Go to End

9 Posts   6644 Views


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