Created
November 6, 2014 02:27
-
-
Save owldesign/28a1101191971aa18987 to your computer and use it in GitHub Desktop.
FormBuilderPlugin.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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