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
Registered
#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?
I.e:
- 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
that:
- 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
regard,

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:

 ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.


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
Try the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB