For simplicity, I would really like my URLs for adding and listing of items to look like:
inventory/list
inventory/new
Of course, list and new are reserved in PHP so I can't use them as CodeIgniter function names.
My workaround was to give my functions different names and then use routes in CI to redirect to the correct function.
My first thought was to add underscores so that list_
and add_
were the function names. Is there a better answer, or is this unsafe in some way that I am failing to see?