Hey guys!!
So, I've come pretty far in setting up my site. I'm now working on a staging version and making some changes that I feel will give it a more professional atmosphere. Here's one of the questions I have that I keep going back and forth on...
I'm implementing a strong mix of AJAX and PHP in my pages. What's a more efficient way of doing this? Should I set up a new page for every single view or should I populate each page differently with a series of $_GETS?
Here's an example to explain what i'm asking...
Would it be more "PC" to set up email like this
/email_inbox.php
/email_sent.php
/email_drafts.php
/email_deleted.php
OR would it look more professional and be a more accepted way of doing it like this
/email.php?inbox
/email.php?sent
/email.php?drafts
/email.php?deleted
I don't really know if this even makes a difference but I'm trying to figure out the best practices with web dev and sound like I might know what I'm talking about....
As always, thanks in advance!!!!
Good practices when setting up pages in my site
Page 1 of 11 Replies - 233 Views - Last Post: 05 September 2011 - 01:03 AM
#1
Good practices when setting up pages in my site
Posted 04 September 2011 - 10:09 AM
Replies To: Good practices when setting up pages in my site
#2
Re: Good practices when setting up pages in my site
Posted 05 September 2011 - 01:03 AM
if you use AJAX to create your websites, then the URL doesn’t change …
anyways, it would probably look best if you used URL rewriting (e.g. mod_rewrite on Apache) to make the pages more generic (i.e. no-one would know, if you changed the files behind it).
something like
example.org/email/inbox
example.org/email/sent
example.org/email/drafts
etc.
anyways, it would probably look best if you used URL rewriting (e.g. mod_rewrite on Apache) to make the pages more generic (i.e. no-one would know, if you changed the files behind it).
something like
example.org/email/inbox
example.org/email/sent
example.org/email/drafts
etc.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote



|