Radio button error message not showing up
I am building a form with a set of radio buttons and am failing to get any kind of error message when they don't pass the validation. Here is the model code I have for validation.. var $validate = array( 'name' => array( 'rule' => 'notEmpty', 'message' => 'Name is required' ), 'email' => array( 'rule' => 'email', 'message' => 'A valid email address is required' ), 'services' => array( 'rule' => 'notEmpty', 'allowEmpty' => false, 'message' => 'Select a service' ) ); The 'Services' are the radio buttons I am validating. Here is the code for the view for the 'Services' radio buttons. These were taken from an example and not changed. Trying to get them to work first.. $options = array('M'=>'Male','F'=>'Female'); $attributes = array('legend'=>true); echo $form->radio('Contest.services',$options,$attributes); The form seems to be validating the radio buttons, but it will not give me an error message on the page. Any ideas? Thanks! Brian 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 cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en To unsubscribe from this group, send email to cake-php+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
Route a /pages url to a controller
I am having trouble writing a route to direct an old /pages url to a newer controller url. The old pages url looks like this.. www.url.com/pages/tech_tips The url I want to route this to looks like this.. www.url.com/techtips I have tried different ways of writing the route and one of my attempts is.. $Route->connect('/pages/tech_tips', array('controller' => 'techtips', 'action' => 'display', 'index')); $Route->connect('/pages/*', array('controller' => 'pages', 'action' => 'display')); Not sure what I am doing wrong here. Do I need to alter the pages controller directly to get this to work? I am using CakePHP 1.1. Thanks! Brian --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Accessing Cake elements in the webroot directory?
I have installed a Wordpress blog alongside a Cake app. I have the Wordpress files in the webroot (app/webroot/articles/) directory of the Cake app. I have taken my elements code and built templates inside the Wordpress directory. I would rather render the elements like with the Cake layout files. Is there a way to access and render my Cake elements in the Wordpress templates? All help is appreciated! Brian --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---