3214 Posts in 848 Topics by 810 members
| Go to End | ||
| Author | Topic: | 1641 Views |
-
Re: Syntax problem in IF control

20 October 2010 at 11:41pm
I see your point. However, it still does not work with the quotes excluded.
The workaround is fine for now.
Thanks all for you help!
Paul
-
Re: Syntax problem in IF control

21 October 2010 at 12:12am
In my templates the quotes do work, but i see the SS documentation tells not to use them.
Interesting issue for the Silverstripe devs?
-
Re: Syntax problem in IF control

21 October 2010 at 12:17am
Maybe best practice is to use a method in your controller always when things are getting 'more complicated' and you don't want this logic inside your view.
-
Re: Syntax problem in IF control

21 October 2010 at 12:20am
I think you are correct. My understanding is that templates should be keep as simple as possible with as much logic as possible in the controller.
I am sure this is what they would say if they joined this thread. Be good if this could be confirmed, elborated on ....SS guys?
| 1641 Views | ||
| Go to Top |

