function before_parse() { $this->pg = str_replace('{page}', $this->params['cnt']['page'], $this->pg); parent::before_parse(); }