Procedural File: url.php
Source Location: Program_Root/classes/general/url.php
Page Details:
Class that abstracts URL; It can easily make URL's for dynamic scripts and also protects ur URL from "junk".
With the word 'junk' i mean the situation when u add same variables with different values on the different parts of the scripts. Example of use: $action = new URL(); $action->addVal("form_submitted","1"); echo $action->Build(); This will print ur current URL with new variable called form_submitted and equal to 1. If u want link to the URL u can i.e. do this: $newspage = new URL(); $newspage->setXhtml(true); //outputs xhtml urls (disabled by default) $newspage->addVal("module","news"); echo $newspage->A();
Tags:
|