Welcome Guest, Not a member yet? Register   Sign In
Codeigniter url creation for newly added product in database
#2

(This post was last modified: 12-13-2015, 02:11 PM by PaulD. Edit Reason: small typo )

There are lots of approaches. One is to ask your user to give a unique HTML name for the product when they are creating it. Another is to url_encode the product name, say, so spaces become underscores etc. Another is to encode the product name with the model number combined, removing any non URL permitted characters. You can do all this with php functions, or CI helpers, or generate your own method.

http://www.codeigniter.com/user_guide/he...#url_title

Hope that helps,

Paul.
Reply


Messages In This Thread
RE: Codeigniter url creation for newly added product in database - by PaulD - 12-13-2015, 02:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB