Welcome Guest, Not a member yet? Register   Sign In
Segment/passing to method problem
#5

[eluser]bretticus[/eluser]
[quote author="rossmurphy" date="1249518730"]Say i have a reg user method called index and then a method called process. index loads the view that contain the reg form then when submitted form calls the process method....then depending on the outcome will either call the index method and pass an array of new params to merge with the exisiting array to be passed into the views (such as errors) or it will redirect the user to a confirmation/activaion page....[/quote]

Forgive my ignorance here, but shouldn't you just load the view with the form instead of calling the controller index method from another controller method? You can always pass that data to the view with the second parameter. Also, the form validation class can do this automatically.


Messages In This Thread
Segment/passing to method problem - by El Forum - 08-05-2009, 11:19 AM
Segment/passing to method problem - by El Forum - 08-05-2009, 01:03 PM
Segment/passing to method problem - by El Forum - 08-05-2009, 01:32 PM
Segment/passing to method problem - by El Forum - 08-05-2009, 01:47 PM
Segment/passing to method problem - by El Forum - 08-05-2009, 01:59 PM
Segment/passing to method problem - by El Forum - 08-05-2009, 07:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB