Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

decorated Member class - problem with forms [UPDATED]

Go to End



Community Member, 54 Posts

13 March 2009 at 3:24am

Edited: 14/03/2009 3:04am

Hi guys, im trying to make a custom section for clients in my webpage, and im facing problems with the forms in the front end, in the cms the data is saved without problems at all but i cant manage to make it work in the front.

i have attached the full files for anyone that could help

in my _config i have this rule:

Director::addRules(100, array('my-account//$Action/$Form' => 'ClientForms_Controller'));
Object::add_extension('Member', 'Client');

[UPDATE: working with the help of willr now i dont have any errors on the forms, but still dont save the content to the member decorated class]

code used:

i have a Director::addRules(100, array('my-account//$Action/$Form' => 'ClientForms_Controller'));

in my config the main idea is to use the exact code in front and cms forms to retrieve data, and separating kinds of data i have 3 forms, personal, emergency and basic info in the cms you look at the posted info this way and in the frnt pages
the urls decide wich form to load depending on the menu but sadly i cant make the front end forms to save the information yes the images are for the cms view of the info and the website version