Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @@ -41,10 +41,20 @@ class ContentController extends Controller {
- $this->dataRecord = $dataRecord;
- $this->failover = $this->dataRecord;
- parent::__construct();
- }
- + /**
- + * Return the link to this controller, but force the expanded link to be returned so that form methods and
- + * similar will function properly.
- + *
- + * @return string
- + */
- + public function Link($action = null) {
- + return $this->data()->Link(($action ? $action : true));
- + }
- +
- //----------------------------------------------------------------------------------//
- // These flexible data methods remove the need for custom code to do simple stuff
- /**
- * Return the children of a given page. The parent reference can either be a page link or an ID.
Add Comment
Please, Sign In to add comment