Welcome Guest, Not a member yet? Register   Sign In
Can you suggest a better URI vs CRUD system for a forum?
#6

[eluser]CodeIgniteMe[/eluser]
Hi @PhilTem
If you want to use this route
Code:
$route['(create|edit|delete)/(category|topic|post)'] = 'CRUD/$2_$1';
you should modify the following methods
Code:
function category_edit($param_3) {}
function category_create($param_3) {}
function category_delete($param_3) {}
to accept optional parameters if your URI has no 3rd param/$param_3

@nulsys
I like how you code, setting a reusable set of validation rules is the CodeIgniter way. However, you may not need to load the form helper because the form_validation library needs it and will load it automatically.


Messages In This Thread
Can you suggest a better URI vs CRUD system for a forum? - by El Forum - 06-21-2012, 06:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB