17452 Posts in 4473 Topics by 1971 members
|Go to End|
14 July 2007 at 8:26am
How can you script in the *.ss files?
What scripting language does silverstripe use.
I thought it was php but I can't get php to
work in the *.ss files.
<% ... %>
<?php ?> works only for /* */ comments
// comments don't work
echo "hello"; doesn't work
I'd like to change the banner depending on what page is
displayed and putting the banner directly in the page
would limit it to the content section.
Core Development Team
14 July 2007 at 1:03pm Last edited: 14 July 2007 1:04pm
The SilverStripe template system isn't designed to support embed PHP. Our approach has been to force a clear separation between the storage, logic and presentation layers. Embedding PHP inside the templates blurs the lines between the logic and presentation layers which, architecturally, isn't desirable.
Looking at some of your previous questions, I would suggest you run through the Tutorials this should help answer this and other questions your having.
|Go to Top|