Recommend this page to a friend! |
Download .zip |
Info | View files (6) | Download .zip | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
66% | Total: 2,456 | All time: 1,567 This week: 328 |
Version | License | Categories | ||||
gonxurls 1.0 | Free for non-comm... | Text processing, Code Generation |
Description | Author | ||||||||||||||
This class is meant to generate URLs for accessing application dynamically generated pages based on parameters passed in the URL. |
|
Gonx Urls, By Hatem Preface *********************************** This class is meant to create dynamic urls for your application. Then with a parameter that you define in init.php you can choose beteween default style (http://www.mycompany.com/index?go=home&page=1) or the url optimised for search engine style (http://www.mycompany.com/index/home/1/) Usage : *********************************** Configure your init.php script. Gonx Urls use only two variables : $GonxAdmin["starturifrom"] = 2; // This value is the first argument position in url $GonxAdmin["urls"] = "0"; // 0 for the 1st style, 1 for the 2nd $GonxAdmin["siteurl"] = "http://localhost/phpclasses/gonxurls/"; // This is full site path to index with trailing slash in the end. 1 - Gonx Urls style : <?php require_once("libs/gonxurls.class.php"); // Gonx Urls Manager echo urls::create(array("go"=>"accueil","page"=>"1"),$GonxAdmin["urls"]); ?> 2 - Gonx Urls developers : After creating your modules or script using Gonx Urls you can scan all of them to generate your index.php file. <?php require_once("libs/gonxurls.class.php"); // Gonx Urls Manager urls::scan("modules/"); ?> Copy and save your source code then continue your index script TODO : *********************************** Support complex urls for example OnChange="location.href='?go=home&tabs='+ChgTheme.options[selectedIndex].value" GonxTabs class support Author : *********************************** Ben Yacoub Hatem www.dynamix-tn.com |
Files |
File | Role | Description | ||
---|---|---|---|---|
libs (1 file) | ||||
modules (1 file) | ||||
index.php | Example | index and sample usage of the class | ||
init.php | Aux. | Initialization script | ||
Readme.txt | Doc. | Readme file | ||
sample2.php | Example | Sample usage of the class |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
User Ratings | ||||||||||||||||||||||||||||||
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.