|
|||
|
Hi!
I hope I am posting in the right place. As my problem fired up while trying to make a simple login form I'm posting here. I'm sorry if my English is a little poor, but I'm not English at all... Well, I'm new to Zend Framework and I'm using it for the first time, but after reading a good book, something on the manual and looking at several examples I think I've understood it enough to try and use it in a real project. I was trying to implement a login form. All was ok, I used also two view helpers that do some actions common to all the form I will implement. I also used Zend_Session_Namespace, to have a session to save some information in it and Zend_Layout to better manage my pages sections (the login form is showed in the left column of my layout, when the user is not logged in, obviously). The problem comes when I click on the submit button of my form. I thought the problem was a session problem, but now I think it could be a bug, even if I am a little surprised about that, it doesn't seem to be a so strange thing that I'm trying to do. I receive this error: Zend_Session::start() - Zend_Loader::include_once() [function.include]: Failed opening 'My\View\Helper\FormHelper.php' for inclusion (include_path='../application;../library') In application/views/helpers I have FormHelper.php with a class named My_View_Helper_FormHelper. Instead of looking the helper in the default path (application/views/helpers) that I also specified in my bootstrap with the setHelperPath() method of the Zend_View component, it looks for My\View\Helper\FormHelper.php I can't undestand why, this seemed to be a really easy goal to achieve, but I've been on it for a couple of days without great results. If I rename my class Zend_View_Helper_FormHelper and save it as library/Zend/View/FormHelper.php it works, as it looks for that path. But I think that the normal way is to create custom helpers in a custom (or default, at least) path. Am I wrong? I'm using ZF 1.5.2 Thanks in advance for your support. Alessandro |
![]() |
| Thread Tools | |
| Display Modes | |
|
|