protected function _subscribe() { $cid = Utils::pg("cid", 0); $category = new Category($cid); $category->addSubscription($this->_session->_uid); header("Location: {$this->_ref}"); exit; }
function action_subscribe() { global $ref; $session = Session::singletone(); $cid = Utils::pg("cid", 0); $category = new Category($cid); $category->addSubscription($session->_uid); header("Location: {$ref}"); exit; }