The following code can be used throughout your existing PHP classes. If you use a similar URI pattern, you won't have any issues with instantly plugging the methods into your existing code. Otherwise, you may have to tweak them slightly.
To generate a link, you'll call the generateLink() method from your file and pass either NULL or an associative array with key/value pairs to add onto the URI.
i.e.
Example URI: http://example.com/index.php?page=view_by_size&type=0&id=10&xxx=something
$this->_frequent->generateLink(array("type" => "2"));
Read the comments above each method to understand what's happening:
To generate a link, you'll call the generateLink() method from your file and pass either NULL or an associative array with key/value pairs to add onto the URI.
i.e.
Example URI: http://example.com/index.php?page=view_by_size&type=0&id=10&xxx=something
$this->_frequent->generateLink(array("type" => "2"));
Read the comments above each method to understand what's happening:
Comments
Post a Comment