15 years on The Web
miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Suggestions miniBB Support Forums / Suggestions /   

why we don't use many file php for each action

Author tkx211
#1 | Posted: 10 Aug 2011 22:12 
This is my opinion.
Now we use index.php for all action.
why we don't use many .php file for each action?
- index.php?action=vtopic?forum=1 -> vtopic.php?forum=1
- index.php?action=vthread?forum=1&topic=2 -> vthread.php?forum=1&topic=2
=> don't run index.php if not index page
- remove action in URL -> shorter
- faster, because size file down
I think miniBB doesn't mean minimum amount of file, but minimum time to execute

Author Paul
Lead Developer
#2 | Posted: 11 Aug 2011 08:15 | Edited by: Paul 
I think you may achieve shorter URLs with a special add-on we have, "Keyword-Rich URLs".

It will not critically affect the file size. All such URLs are specified just in few places, and later they are build dynamically.

Also, it's not really secure to use multiple files instead of one. Now security routine passes through the index.php and it then includes the proper module. In your suggestion, routine should pass through many modules, and if it's updated, it may be also updated in many modules. It's not productive in terms of development.

Thanks for suggestion, but after running miniBB for years with the present URLs, I think, I will not consider it :)

Suggestions miniBB Support Forums / Suggestions / why we don't use many file php for each action Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.

Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Proceed with the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB