17688 Posts in 4607 Topics by 2180 members
General Questions
SilverStripe Forums » General Questions » How can I test the value of $ within a controller?
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba
|
Page:
1
|
Go to End | |
| Author | Topic: | 394 Views |
-
How can I test the value of $ within a controller?

4 July 2009 at 3:10am
How can I test the value of $Heading within a controller?
From Special.ss
<h1>$Heading</h1>
From Special.php
class Special_Controller extends Page_Controller {
function special () {
if ($Heading=='Hello')
}
} -
Re: How can I test the value of $ within a controller?

8 July 2009 at 2:25am
this should work:
function special () {
if ($this->Heading=='Hello')
}
| 394 Views | ||
|
Page:
1
|
Go to Top |


