17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 733 Views |
-
problem with select

17 October 2008 at 2:35am
HI!
I have a problem in creation of select. I follow documentation http://doc.silverstripe.com/doku.php?id=dropdownfield.I put in Page.php
class MyObject extends DataObject {
static $db = array(
'Country' => "Enum('New Zealand,United States,Germany','New Zealand')"
);
}under
class Page extend SiteTree{ ..... }
and in the controller of my page
class Page_Controller extend ContentController{
$field = new DropdownField(
'Country',
'Country',
singleton('MyObject')->dbObject('Country')->enumValues()
);
}but something is wrong, can you help me?
-
Re: problem with select

17 October 2008 at 3:16am
Are you trying to use this in the CMS area or on the front end of the site?
You'll just have to adjust where you're putting the actual info.
-
Re: problem with select

17 October 2008 at 3:31am
I want use select from front end of my site,not from CMS..
| 733 Views | ||
|
Page:
1
|
Go to Top |


