[symfony-users] functional testing
hi i m going through functional testing and trying to implement it. can sombody help me out of understanding the following in functional testing:- $b-checkResponseElement('ul#list li a[href]', 'click me'); $b-checkResponseElement('ul li', 'click me'); $b-checkResponseElement('ul + li', 'click me'); $b-checkResponseElement('h1, h2', 'click me'); $b-checkResponseElement('a[class$=foo][href*=bar.html]', 'my link'); $b-checkResponseElement('p:last ul:nth-child(2) li:contains(Some text)'); please somebody explain me the above mentioned as there is no example given in symfony document. thanks vikaash --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Task generate-admin is not defined.
hai I m trying to run this command php symfony propel:generate-admin backend RoomBooking -- module=home for my backend application for admin generator where RoomBooking is my propel object. when i run this command i get the Error Task generate-admin is not defined. i dont know whats the problem .pls somebody help me out of it. thanks vikaash --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] writing validation.yml file for dropdown list
hai I m trying to write a validation.yml file for dropdownlist.The criteria is that when i donot select a given option and post the form there should be error throw asking for selecting a option from dropdown list.please help me in writing file for it. also somebody please tell me how to check that the input taken from js calender (input_date_tag helper)should not be less than current date through writing validation.yml file. please help me as there is not enough documentation for writing validate.yml file. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] custom validator message is not displayed.
hi all, I m following askeet tutorial for my form validation. I am using a custom validator myLoginvalidator as in askeet tutorial and defined in /frontend/lib/myLoginvalidator.class.php. now the problem is that the message i declared in custom validator donot get displayed in form login.although the two arrows get displayed.also the message of sfNumbervalidator donot get displayed although the default message is displayed here is code i m using login.yml file:- methods: post:[loginid,password] names: loginid: required: true required_msg: The name field cannot be left blank validators: [loginidValidator,userValidator] password: required: true required_msg: your password is required loginidValidator: class:sfNumberValidator param: min: 6 min_error:The value must be at least zero userValidator: class:myLoginValidator param: login_error: This account donot exit fillin: enabled: off in myLoginValidator.class.php:- ?php class myLoginValidator extends sfValidator { public function initialize($context, $parameters = null) { // initialize parent parent::initialize($context); // set defaults $this-setParameter('login_error', 'Invalid input'); $this-getParameterHolder()-add($parameters); return true; } public function execute($value, $error) { $password_param = $this-getParameter('password'); $password = $this-getContext()-getRequest()-getParameter ($password_param); if($values['password']) { $error = $this-getParameter('login_error'); return false; } } } so please any one of u please guide me or sort out my problem.i am new to symfony and its my first hand experience. waiting for someones reply. thanks vikash kumar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: problem in displaying js calender
hey dude thanks it worked. On Mar 26, 6:39 pm, Gareth McCumskey gmccums...@gmail.com wrote: In your link_to_remote do you have the parameter script=true set? Example: ?php echo link_to_remote (Link name, array( url=module/action, update=div_to_update, script=true )) ? This will allow any javascript (like the calendar) to run in the return action. Its a security precaution to help prevent any unauthorised javascript from running. Gareth On Thu, Mar 26, 2009 at 2:30 PM, Vikaash vikaash...@gmail.com wrote: hai i m just using js calender on my page. in my project when i directly browse the templates the calender appears there. but when i browse the same page throug ajax function (link_to_remote) it doesnot appear. i dont know whats the problem please help me out.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] using calender
hai i just want to use the current ,previous and the next month calender on my web page .is there any way in symfony,if then sombody pls tell me. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] jobeet tutorial
hai I m rightnow going through symfony jobeet tutorial. At the end of 3rd day after putting all the code when i run the module job in the browser i get what i wrote in index.php file as per the tutorial. I m new to the symfony .pls help me. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] symfony form in action
Hi, i m going through the the definite guide to symfony form posted in symfony documentation.In the chapter 4 the propel integration,i m facing a small problem. Implementing the __toString() method for the Author class class Author extends BaseAuthor { public function __toString() { return $this-getFirstName().' '.$this-getLastName(); } } I m not getting where is this author class.If i do the above changes in AuthorForm class i get the error in application running.pls help me out of this. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: symfony form in action
hai dear first of all thanks for helping me in finding Author class as u told ,but when i made the changes in author class in the lib/model.as stated and then i create a new article it shows the following error. [RuntimeException] Class Author must implement a __toString method to be rendered in a sfWidgetFormPropelSelect widget. please help me out. On Feb 25, 8:21 pm, Martino Piccinato m...@yoolab.com wrote: Author is a MODEL class, it represent objects of your domain problem (the authors of the book), it should be in lib/model AuthorForm is a class representing a form to insert/modify authors in in db. It should be in lib/form __toString should be implemented in Author class just to give a default name to Author(s) when doing code generated scaffolding. hope this clears up things :-) Martino On Wed, Feb 25, 2009 at 1:29 PM, Vikaash vikaash...@gmail.com wrote: Hi, i m going through the the definite guide to symfony form posted in symfony documentation.In the chapter 4 the propel integration,i m facing a small problem. Implementing the __toString() method for the Author class class Author extends BaseAuthor { public function __toString() { return $this-getFirstName().' '.$this-getLastName(); } } I m not getting where is this author class.If i do the above changes in AuthorForm class i get the error in application running.pls help me out of this.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---