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.
Archive
SilverStripe Forums » Archive » ModelAdmin in the trunk?
Our old forums are still available as a read-only archive.
|
Page:
1
|
Go to End | |
| Author | Topic: ModelAdmin in the trunk? | 871 Views |
-
ModelAdmin in the trunk?

18 September 2008 at 6:38pm Last edited: 18 September 2008 8:14pm
Hi all,
I want to use the new ModelAdmin functionality. Are you sure it works in the trunk as sminnee describes in http://doc.silverstripe.com/doku.php?id=modeladmin ? Using the code on that page I end up with an empty screen on the url admin/catalog.
Should I use the sapphire branch?
Cheers,
Andy
-
Re: ModelAdmin in the trunk?

19 September 2008 at 2:22pm
ModelAdmin is all on trunk. To make it work you need cms/ sapphire/ and jsparty/ all in the latest trunk releases. If you have a blank screen check your PHP error log on your server and see what the problem is
-
Re: ModelAdmin in the trunk?

19 September 2008 at 7:47pm
Ok, I had a very stupid error in my code but there is also a very small error in the documentation, it should be:
class MyCatalogAdmin extends ModelAdmin {
protected static $managed_models = array(
'Product'
);}
Without the "protected" it didn't work.
-
Re: ModelAdmin in the trunk?

19 September 2008 at 7:55pm
you might like to update the documentation. Thanks for pointing this out!
| 871 Views | ||
|
Page:
1
|
Go to Top |
Currently Online: Punch Rockgroin
Welcome to our latest member: Bud


