Welcome Guest, Not a member yet? Register   Sign In
Building a CMS: Best Way To Handle Categories and Page Names In URL?
#10

[eluser]wiredesignz[/eluser]
So you really want to reverse the $segments array first pull off the $page_name and add a check for $cat == NULL and assign the $sub_cat value to $cat.

Also in your example a $segments array with 4 elements or more will assign the first value to $page_name.


Messages In This Thread
Building a CMS: Best Way To Handle Categories and Page Names In URL? - by El Forum - 02-28-2011, 04:49 PM



Theme © iAndrew 2016 - Forum software by © MyBB