public function uri($action = null) { if (empty($action)) { return parent::uri(); } else { return 'pages/' . $this->id() . '/' . $action; } }