Re: Serving pages based on user input
| From: | Jochem Maas | Date: | Sun, 24 Aug 2008 19:53:44 +0000 |
| Subject: | Re: Serving pages based on user input | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-278599@lists.php.net to get a copy of this message | ||
Robert Cummings schreef:
On Sun, 2008-08-24 at 13:35 +0100, Ashley Sheridan wrote:you wouldn't have to frakkin' redirect if the links used by said front controller were generated correctly to start with ... it's the whole using a select box to choose a page (unless it's to set window.location to the value of the selected option in the select box) ... that sucks. there is no need to use redirection in this case, it's just f'ing lazy. (to be clear ... I'm lazy now and again ;-) but at least I know it) redirection should be used sparingly, and fudging SE friendly urls back into your own application IS NOT such as case. no idea wtf you meant with the login page reference - way too obtuse an argument for me to follow.On Sat, 2008-08-23 at 22:17 -0400, Robert Cummings wrote:You're confusing using a front page loader with redirection. The distinction being that I would suggest that you redirect to the URL that your front loader would use to load a given page rather than just presenting said page within another page's context to save a redirect.On Sun, 2008-08-24 at 01:32 +0200, Jochem Maas wrote:I thought the arguments were very valid, but can be take to the point of extreme. Keep similar pages grouped into one PHP file. After all, this is what PHP is for. Don't try to replicate your HTML pages as PHP pages, thats a silly idea and takes more time to manage.Ólafur Waage schreef:Oh dear, not this BS again. If the content is different then perform a redirect. Do you really want your login page to be indexed as your homepage? Lynch's arguments on this were weak. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHPYou can read about the header function. http://is2.php.net/manual/en/function.header.phphi Ólafur, his situation doesn't require a redirect (he only thinks it does), and redirects suck when used unecessarily. (plenty of info on the web about why this is so ... hunt for a 'rant' by the formidable Richard Lynch in the archives of this list for instance)
Cheers, Rob.yeah mine an ice cold one thanks.