[eluser]Miuuzn[/eluser]
hey, im new to CI and i have a problem... could u guys help me out?
i wanna use validation, but i usually separate form actions from the actual logic
that would be "insert" for the form and "insertAction" for the submit action for example
but if i try using this with the validation(so it can display the errors) i need to render the form(whenever it fails on validation) on insertAction and that would could break all my system...
is it possible to pass the validation errors to the redirected page?
if not... i would have to use a single action both for form and for submit, and that would require something like:
Code:
if ($request->isPost()) {
// submit logic here
}
(example from cake)
so, do i need to change all my work to use the validation or can i pass it to the redirect?