Yii Framework Forum: Customize error messafe - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Customize error messafe Rate Topic: -----

#1 User is offline   Jijgee 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 56
  • Joined: 16-June 12

Posted 12 August 2012 - 11:17 PM

Hello, I am newbie. I want to hide the error message "Please fix the following input errors:" and the following error messages. How do i do this ?
0

#2 User is offline   bennouna 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,180
  • Joined: 05-January 12
  • Location:Morocco

Posted 13 August 2012 - 12:17 AM

Hi. Do you want to hide that block but still have it rendered, or do you want to get rid of it at once?
0

#3 User is offline   Jijgee 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 56
  • Joined: 16-June 12

Posted 13 August 2012 - 12:28 AM

View Postbennouna, on 13 August 2012 - 12:17 AM, said:

Hi. Do you want to hide that block but still have it rendered, or do you want to get rid of it at once?

I want to get rid of these message.
Please fix the following input errors:
Username can not be blank
....
....
But please tell me both ways
0

#4 User is offline   alirz23 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,220
  • Joined: 08-August 12
  • Location:Durban, South Africa

Posted 13 August 2012 - 01:16 AM

hey get rid of this line in your _form.php partial


<?php echo $form->errorSummary($model); ?>

0

#5 User is offline   Jijgee 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 56
  • Joined: 16-June 12

Posted 13 August 2012 - 01:22 AM

View Postalirz23, on 13 August 2012 - 01:16 AM, said:

hey get rid of this line in your _form.php partial


<?php echo $form->errorSummary($model); ?>


Thank you. How do change error messages css and javascript?
0

#6 User is offline   alirz23 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,220
  • Joined: 08-August 12
  • Location:Durban, South Africa

Posted 13 August 2012 - 01:27 AM

check under app/css/form.css there are css rules like the following

div.form .errorSummary
div.form .errorSummary p
div.form .errorSummary ul


list goes on you can figure out
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users