Re: Problems with helper class
> My next step was to use some of the code snippets on the bakery... > I then start adding some components like captcha, which use a helper, > here is were it starts going wrong. Are you following this article in the Bakery? Improved Captcha Component: http://bakery.cakephp.org/articles/view/improved-captcha-component. Note that it installs to your "vendors" directory as well as "controllers/components" – but not "views/helpers". The first thing that comes to mind is that the Captcha implementation uses a controller component and not a view helper. So take a look at the Captcha code that you are trying to install, and make sure you are putting it in the right place and using it correctly. Other than that, the garbled output might be a result of bad character encoding when you created and saved a file in your text editor or IDE, or maybe an errant whitespace or extra line endings. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Problems with helper class
Hi, I have setup cake 1.2 on my server, everything is running fine. I created a database and used the scaffolding to create new models, controllers and views, everything works great and I have no problems. My next step was to use some of the code snippets on the bakery, I added code for an authorization using Acl and Auth and it worked fine. I then start adding some components like captcha, which use a helper, here is were it starts going wrong. I can not get the helper to work, I tried many different helpers but with same results. Missing Helper Class Error: The helper class CaptchaHelper can not be found or does not exist. Error: Create the class below in file: app\views\helpers\captcha.php I checked the directory and the helpers are in the correct place, when I access the page which uses a helper, the top part of the browser shows the helper file in the following way: = start = ��<�?�p�h�p� � �c�l�a�s�s� �C�a�p�t�c�h�a�H�e�l�p�e�r� �e�x�t�e�n�d�s� �A�p�p�H�e�l�p�e�r� �{� � � � � � �v�a�r� �$�h�e�l�p�e�r�s� �=� �a�r�r�a�y�(�'�h�t�m�l�'�,� �'�f�o�r�m�'�)�;� � � � � � � � � �f�u�n�c�t�i�o�n� �i�n�p�u�t�(�$�c�o�n�t�r�o�l�l�e�r� �=� �n�u�l�l�)� �{� � � � � � � � � � == end In between the � character the code of my helper is shown, it looks like the helper file is no rendered correctly and displays it as garbled data. I have tried many different things, but has not figured this one out, is it file permission, file extension, or a configuration issues. I hope someone can point me in the right direction. TZ --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Problems with Helper
Hi, I am new to CakePHP and love it. I am trying to use a Navigation Helper from http://www.nolimit-studio.com/baking/2006/08/02/navigation-helper/. I add it to $helpers in my controller and have the navigation.php in the right location in views/helpers. I use it in my default.thtml, in the following format: link('Home',"/",array('activeAction'=>'login'))?> render(null,array('id'=>'main_nav'))?> cakePHP does not generate the expected output. My generated HTML looks like: link('Home',"/",array('activeAction'=>'login'))?> Any help will be much appreciated. Thanks, Ben --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [EMAIL PROTECTED] 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 -~--~~~~--~~--~--~---