You need to manually set the view in your register action
At the end of your action add
$this->render('../pages/welcome');On Jun 10, 9:42 am, Andrei Mita <[email protected]> wrote: > I did that but I'm having problems with data validation and form processing. > I have my forms in pages/welcome.ctp, the controller is UsersController and > data validation in UserModel. > > After submiting the form, I get redirected to /users/register but I don't > have that view. How cand I get it to send me back to pages/welcome.ctp and > display the error massages? > > On Thu, Jun 10, 2010 at 5:10 PM, Jeremy Burns | Class Outfit < > > > > [email protected]> wrote: > > You set the 'action' of each form to as appropriate: > >http://book.cakephp.org/view/1384/Creating-Forms > > > Jeremy Burns > > *Class Outfit* > > * > > * > > [email protected] <[email protected]> > >http://www.classoutfit.com > > > On 10 Jun 2010, at 14:58, Andrei Mita wrote: > > > Hello, > > > How can I set up two forms that perform two separate actions from a single > > page/view? > > > For instance, the 'welcome.ctp' page has two forms: register and login. How > > can I get them to work with actions within UsersController? > > > Thanks, > > Andrei > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others > > with their CakePHP related questions. > > > You received this message because you are subscribed to the Google Groups > > "CakePHP" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] For more options, visit this group > > athttp://groups.google.com/group/cake-php?hl=en > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help > > others with their CakePHP related questions. > > > You received this message because you are subscribed to the Google Groups > > "CakePHP" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected]<cake-php%[email protected] > > om>For more options, visit this group at > >http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
