how to extend flash directory and write out own flash messages

WHat exactly are you wanting to change about flash messages? CSS? HTML? More information is needed on your posts please think before posting them.



17.4k
edited Aug '14

i mean to say how to add flah messages in my form

On 8/8/14, Rewt0r [email protected] wrote:

WHat exactly are you wanting to change about flash messages? CSS? HTML? More information is

Are you using the form builder? Are you using Volt or phtml?



17.4k

No sir I am not using Volt i am using phtml simple form. / I want to print error flash message over here/ <div id = 'message'></div> <html> <form action='signup/validate'> UserName:<input type='text' name='username'> Password:<inpu type='password' name='password'> <input type='submit' value='login'/> </form>

Controller Code validateAction(){ //setflash from here }

On Sat, Aug 9, 2014 at 12:56 PM, Rewt0r [email protected] wrote:

Are you using the form builder? Are you using Volt or phtml?

— Reply to this email directly or view the complete thread on Phosphorum http://forum.phalconphp.com/discussion/3060/how-to-extend-flash-directory-and-write-out-own-flash-messages#C10183. Change your e-mail preferences here http://forum.phalconphp.com/settings

--

Thanks and Regards, Rakesh Bitling [email protected] 7276165575

You will need to use the form builder to attach flash messages to form elements otherwise you can just use $this->flash->error('message'); assuming there's an error.