views:

83

answers:

1

Hey everyone,

I am trying to validate a form submission in Kohana 3. I have the form::open point to my action_create in my controller which successfully validates the data posted to it from the form in my view. If the data passes validation, a new item is created as intended, and the user is redirected to the item that was just created. This works correctly. If the data fails validation, however, I would like the user to be directed back to the originating view/page while retaining a variable containing the data that was posted so that I can repopulate the form and display errors.

In short, how can I pass data from a view -> controller -> original view?

Thank you, everyone!

A: 

The user also posed this question on the Kohana forums. Those seeking an answer to this should have look over there.

Lethargy
Thank you, Lethargy!
PaleAilment