17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1220 Views |
-
Scripting in the .ss files

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.I tried
<% ... %>
and
<?php ?> works only for /* */ comments
// comments don't work
echo "hello"; doesn't workI'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. -
Re: Scripting in the .ss files

14 July 2007 at 1:03pm Last edited: 14 July 2007 1:04pm
Hi Tkop
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.
| 1220 Views | ||
|
Page:
1
|
Go to Top |


