Login | Forgot password | Register
What is OpenID?
OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.
With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.
For more information visit the official OpenID site.
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.
|
Page:
1
|
Go to End | |
| Author | Topic: How can I test the value of $ within a controller? | 135 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')
}
| 135 Views | ||
|
Page:
1
|
Go to Top |
Currently Online: There is nobody online.
Welcome to our latest member: Newclear


