Skip to content

Instantly share code, notes, and snippets.

@owldesign
Created November 6, 2014 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save owldesign/28a1101191971aa18987 to your computer and use it in GitHub Desktop.
Save owldesign/28a1101191971aa18987 to your computer and use it in GitHub Desktop.
FormBuilderPlugin.php
<?php
namespace Craft;
class FormBuilderPlugin extends BasePlugin
{
...
public function hasCpSection()
{
return true;
}
public function registerCpRoutes()
{
return array(
'formbuilder/fields' => array('action' => 'formBuilder/fields/index'),
'formbuilder/fields/new' => array('action' => 'formBuilder/fields/newField'),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment