function test_encoded_url_to_string($sURL = null, $aData = array()) { $o = new weeURL($sURL); $o->setEncoder(new weeXHTMLEncoder()); $o->addData($aData); return $o->toString(); }
/** Output a correctly encoded URL. Use this from the inside of the template instead of creating the object directly. @param $sBaseURL The base of the resulting URL. @param $aData The data to be appended. @see weeURL */ protected function url($sBaseURL = null, $aData = array()) { $oURL = new weeURL($sBaseURL); $oURL->setEncoder($this->getEncoder()); $oURL->addData($aData); echo $oURL->toString(); }