Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //config.php
- <?php
- Director::addRules(100, array (
- PluginPage::$url_segment => 'PluginPage'
- //PluginPage.php
- <?php
- class PluginPage extends Page_Controller {
- private static $allowed_actions = array (
- 'detail'
- );
- static $url_segment = "my-route";
- /**
- * Initialize the controller and load the dependencies.
- */
- public function init() {
- parent::init();
- }
- /**
- * Controller action for the index view
- *
- * @return SSViewer
- */
- public function detail() {
- return $this->customise(array(
- ))->renderWith(array("PluginPage","Page"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement