I will try to answer your questions and give some thoughts on subject.
If we look at error message, then there is some truth. In error msg there is
said "File LoggedInUser.php was loaded but class named
Rn_View_Helper_LoggedInUser was not found within it." Thats right! File
"LoggedInUser.php" exists and was loaded. And yes - there are no classes
called "Rn_View_helper_LoggedInUser".
Code from "LoggedInUser.php":
class Zend_View_Helper_LoggedInUser extends Rn_View_Helper
{
// content removed
}
In ZF 1.5 everything is OK - and helper is loaded and 100% functional. But
ZF 1.6 RC1 for some reason wants to load Rn_View_Helper_LoggedInUser instead
of Zend_View_Helper_LoggedInUser.
I setup my Views in Controller plugin (part from code):
class Rn_Controller_Plugin_ViewSetup extends Zend_Controller_Plugin_Abstract
{
protected $_view;
public function dispatchLoopStartup(Zend_Controller_Request_Abstract
$request)
{
// content removed
$prefix = 'Rn_View_Helper';
$dir = dirname(__FILE__) . '/../../View/Helper';
$this->_view->addHelperPath($dir, $prefix);
// content removed
}
}
"Rn" is library namespace:
- /library/
---/Rn/
------/Controller/
---/Zend/
-----/Controller
I hope that helps.
Endijs Lisovskis
Matthew Weier O'Phinney-3 wrote:
>
> -- Endijs Lisovskis <[EMAIL PROTECTED]> wrote
> (on Wednesday, 23 July 2008, 03:25 PM -0700):
>>
>> If I just switch Zend Framework 1.5 library files to Zend Framework 1.6
>> RC1
>> library files I receive error:
>>
>> Fatal error: Uncaught exception 'Zend_Loader_PluginLoader_Exception' with
>> message 'File LoggedInUser.php was loaded but class named
>> Rn_View_Helper_LoggedInUser was not found within it.' in
>> [full_path_removed]/library/Zend/Loader/PluginLoader.php:351 Stack trace:
>> #0
>> [full_path_removed]/library/Zend/View/Abstract.php(1114):
>> Zend_Loader_PluginLoader->load('LoggedInUser') #1
>> [full_path_removed]/library/Zend/View/Abstract.php(545):
>> Zend_View_Abstract->_getPlugin('helper', 'loggedInUser') #2
>> [full_path_removed]/library/Zend/View/Abstract.php(312):
>> Zend_View_Abstract->getHelper('loggedInUser') #3 [internal function]:
>> Zend_View_Abstract->__call('loggedInUser', Array) #4
>> [full_path_removed]/application/views/layouts/index.phtml(33):
>> Zend_View->loggedInUser() #5 [full_path_removed]/library/Zend/V in
>> [full_path_removed]/library/Zend/Loader/PluginLoader.php on line 351
>>
>> If I use ZF 1.5 everything is OK.
>>
>> Any ideas?
>
> First off, in 1.6, we refactored the code in Zend_View to utilize the
> PluginLoader -- no reason to have code duplication. :)
>
> Most likely, what's happening is that you've got an invalid helper
> prefix registered; why it was not throwing an error before is the new
> question.
>
> Several qustions:
>
> * How are you setting up your views?
> * How are you adding the Rn_View_Helper prefix to the view object?
> * Is 'Rn' a module? or a private library namespace?
> * Can you confirm that the file LoggedInuser.php exists on the helper
> path? If so, what class is in it?
>
> Answer those questions, and I may have a better idea of how to fix the
> issue.
>
> --
> Matthew Weier O'Phinney
> Software Architect | [EMAIL PROTECTED]
> Zend Framework | http://framework.zend.com/
>
>
--
View this message in context:
http://www.nabble.com/Error-in-Zend-Framework-1.6-RC1---tp18621418p18693579.html
Sent from the Zend Framework mailing list archive at Nabble.com.