Welcome Guest, Not a member yet? Register   Sign In
A more-useful uri_to_assoc
#17

[eluser]Benjamin Midget[/eluser]
A GET simulation is worthless in my opinion if it cannot be trusted to fetch appropriate data.

A common example:

User searches for category and tags.

If the user searches for category: "tags" (which they should be able to do--they can search for anything they want), then you have just what jazzfanatic illustrated: site.com/products/search/category/tags/tags/something.

The most common use for GET is giving a search a hard-coded URL that can be shared and revisited. Thus, I'd argue that jazzfanatic's situation is actually a fairly common problem someone would run into with a GET simulation.

An app that cannot hold up to possible user searches, I'd argue, is broken. This is the exact reason why my implementation doesn't break upon searches. Thus if CI were to include this functionality (which I believe they should because they don't allow actual GET data), they'd have to use the version that accurately mimics GET.

The later version looks great, no doubt, but realistically operates as nothing more than a hack.


Messages In This Thread
A more-useful uri_to_assoc - by El Forum - 04-24-2009, 03:34 PM
A more-useful uri_to_assoc - by El Forum - 04-24-2009, 05:18 PM
A more-useful uri_to_assoc - by El Forum - 04-24-2009, 08:59 PM
A more-useful uri_to_assoc - by El Forum - 04-24-2009, 09:28 PM
A more-useful uri_to_assoc - by El Forum - 05-17-2009, 12:19 PM
A more-useful uri_to_assoc - by El Forum - 05-17-2009, 02:56 PM
A more-useful uri_to_assoc - by El Forum - 05-17-2009, 03:09 PM
A more-useful uri_to_assoc - by El Forum - 05-17-2009, 04:18 PM
A more-useful uri_to_assoc - by El Forum - 05-17-2009, 04:46 PM
A more-useful uri_to_assoc - by El Forum - 05-17-2009, 06:37 PM
A more-useful uri_to_assoc - by El Forum - 05-21-2009, 01:14 PM
A more-useful uri_to_assoc - by El Forum - 06-04-2009, 02:52 PM
A more-useful uri_to_assoc - by El Forum - 06-04-2009, 03:23 PM
A more-useful uri_to_assoc - by El Forum - 06-04-2009, 03:38 PM
A more-useful uri_to_assoc - by El Forum - 06-04-2009, 04:21 PM
A more-useful uri_to_assoc - by El Forum - 06-04-2009, 04:31 PM
A more-useful uri_to_assoc - by El Forum - 06-04-2009, 04:46 PM
A more-useful uri_to_assoc - by El Forum - 06-05-2009, 12:50 AM
A more-useful uri_to_assoc - by El Forum - 07-10-2009, 10:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB