Exemple #1
0
 public function action()
 {
     echo '<h1><a href="' . DemoMainPageAction::getUrl() . '">Main page</a> / Magic</h1>';
     echo '<div>MAGIC NAME: ' . $this->magic_name . '</div>';
     echo '<div>Add something to url to see how the action extracts parameters.</div>';
 }
 public static function render($node_id, $action_obj)
 {
     echo '<h1><a href="' . DemoMainPageAction::getUrl() . '">Main page</a> / ' . $action_obj->getH1() . '</h1>';
     echo '<p>Node ' . $node_id . ' content.</p>';
 }