Example #1
0
/**
 * Convenience function for {@link Router#urlAdd()}
 */
function url_add($url, $arguments = array())
{
    return Router::urlAdd($url, $arguments);
}
Example #2
0
 /**
  * Tests that {@link Rotuer::urlAdd()} can delete keys with {@code null}.
  */
 function testKeyDeleteAbsolute()
 {
     $this->assertEquals("http://openclerk.org/url", Router::urlAdd('http://openclerk.org/url', array('key' => null)));
     $this->assertEquals("http://openclerk.org/url", Router::urlAdd('http://openclerk.org/url?key=bar', array('key' => null)));
 }