I am soooo over it. We are developing in PHP, so is there reason to invent the wheel new. There is absolutly no benefit to use a pseudo language. It might help when u have simple structures. It is just pain in the ass to create douple efford to do extremly easy things like a counter. I know there is a pattern which says separate code from design. But when u think of it even this templating language creates logic. Today I just wasted an hour or more to provide template functions to provide me with a counter number. These number is not only a counter is goes over 2 record sets because the template shows me a list seamless for more then one records sets.
ul
control Bla1
li
end_control
control Bla2
li
end_control
what i have to do now is i need to double the efford cause i need to create functions which do exactly the same (loop) again just for counting.
double the db queries and so on. Pls explain me any good reason in respect of usability, usage, performance and more.
Just by the way, this is not an anti silverstripe thread, I love silverstripe, dont get me wrong but sometimes its just pain to do a simple thing on the hard way.