Hi Stefanski, > I come to the point where I thought about having common notification > texts in a more central position in my application. Right now its > pretty mixed like: > - validation messages in the models > - notifications in the session-flash, which are set in the controller > - and a whole lot of other common texts in my textHelper in several > arrays > > I thought, having them all in the View layer makes more sense, how do > you guys do that? > > Use text keys for validation texts and write my own helper to display > them? But how to solve the session flash issue?
For validation messages you can use something like: echo $form->input('username', array('error' => array( 'required' => 'Username is required', 'unique' => 'The username is already taken'))); Hope that helps! -- Daniel Hofstetter http://cakebaker.42dh.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---