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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

UserForms & Foundation


Go to End


2 Posts   891 Views

Avatar
Daswede

Community Member, 2 Posts

28 February 2014 at 4:25am

Hi all,
Brand new to Silverstripe (and new-ish to PHP). I've got a Silverstripe 3.1 instance set up and working properly with a single exception.

I use the Foundation theme, the Foundation Forms module and the UserForms module, but my simple UserForms page is messed up. When viewing the source and trying to get to any themed CSS or JS file, I get the following error (The paths to the JS and CSS files are correct, but they don't seem to be accessible):

Action 'themes' isn't available on class UserDefinedForm_Controller.

Looking at a different thread (http://www.silverstripe.org/general-questions/show/25965), I modified the UserDefinedForm_Controller to add:

private static $allowed_actions = array(
	'index',
	'ping',
	'Form',
	'finished',
	'themes'
);

Then I did a /dev/build and then /flush=all, but that doesn't change anything. Any ideas?

Avatar
Daswede

Community Member, 2 Posts

28 February 2014 at 7:21am

Nevermind, I fixed it.