Re: Helper not being found
Do not extend the FormHelper, it should extend the AppHelper. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Helper not being found
Miles, Here is my helper class state_list.php: class StateListHelper extends FormHelper { var $helpers = array('Form'); function select($fieldname, $label, $default=" ", $attributes = null) { $list = ''; $list .= $this->Form->label($label); $list .= $this->Form->select($fieldname ,array( 'AL'=>"Alabama", //removed other states 'WY'=>"Wyoming"), $default, $attributes); $list .= ''; return $this->output($list); } } I then refer to the Helper in the controller: class JobsController extends AppController { var $name = 'Jobs'; var $helpers = array('Html', 'Form', 'StateList'); // removed code from here } But I still receive this message: Missing Helper Class Error: The helper class StateListHelper can not be found or does not exist. Error: Create the class below in file: hayagroup\views\helpers \state_list.php On Apr 16, 4:33 pm, Miles J wrote: > Are you calling the class right? > > class StateListHelper extends... --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Helper not being found
Miles, Here is my helper class: class StateListHelper extends FormHelper { var $helpers = array('Form'); function select($fieldname, $label, $default=" ", $attributes = null) { $list = ''; $list .= $this->Form->label($label); $list .= $this->Form->select($fieldname ,array( 'AL'=>"Alabama", On Apr 16, 4:33 pm, Miles J wrote: > Are you calling the class right? > > class StateListHelper extends... --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Helper not being found
Are you calling the class right? class StateListHelper extends... --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Helper not being found
Hi, I am new to CakePHP and have what may be a configuration problem (Vista, xampp). I installed CakePHP in the c:\xampp\htdocs\cake directory and have several projects underneath of this directory (say one and two). I then installed my first custom helper in c:\xampp\htdocs\cake\one\views \helpers directory (state_list.php). I added StateList to the helpers array in the controller but I receive an error message indicating that the helper class was not found and that I should create the file "one \views\helpers\state_list.php". Any ideas? Thank you for your help. Ernie --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---