Hi everybody
I would like to cleanup generating of URLs (these like $url_query, $err_url, etc. and also hidden inputas for forms). I know that now isn't probably time for some major change in code so I will wait till 2.3.1 gets released. But I want to hear some opinions about it from you. What I want to do:
- generate strings containing url and string containing hidden inputs - do all this in one place (probably common.lib) - in other places just use these variables - do not include unnecessary parts in those (now is everywhere added convcharset, but it is probably not used by majority of users - used only when charset recoding activated)
Any comments?
Regards Michal Cihar nijel at users dot sourceforge dot net http://cihar.liten.cz
-----Original Message----- From: Michal Cihar
I would like to cleanup generating of URLs (these like $url_query, $err_url, etc. and also hidden inputas for forms).
Good idea.
- generate strings containing url and string containing hidden
inputs
- do all this in one place (probably common.lib)
The URLs should be generated by a central function, that is called each time when we need a $url_query, imho because we have GET variables that stay the same throughout the code (like "lang", "convcharset", etc.) on the on hand and those that we want to be modified by clicking on a specific link (like "db", "table", etc.)
Regards,
Alexander