此前的
我现在收到以下错误信息: I ve试图使我的导航、Xml档案与Zend Documentation 。 然而,我似乎无法工作。 我的XML文件就是这样: 我将这一xml装入boot锁如下: 现在,我承认,我完全怀着这一 stick子的错误结束,但迅速摆脱了思想,并且是一个漫长的星期。 感谢 赠款<b>Fatal error</b>: Uncaught exception Zend_Navigation_Exception with message Invalid argument: Unable to determine class to instantiate in C:wwwmysitedevelopmentwebsitelibraryendNavigationPage.php:223
<?xml version="1.0" encoding="UTF-8"?>
<configdata>
<navigation>
<default>
<label>Home</label>
<controller>index</controller>
<action>index</action>
<module>default</module>
<pages>
<tour>
<label>Tour</label>
<controller>tour</controller>
<action>index</action>
<module>default</module>
</tour>
<blog>
<label></label>
<uri>http://blog.mysite.com</uri>
</blog>
<support>
<label>Support</label>
<controller>support</controller>
<action>index</action>
<module>default</module>
</support>
</pages>
</default>
<users>
<label>Home</label>
<controller>index</controller>
<action>index</action>
<module>users</module>
<role>guser</role>
<resource>owner</resource>
<pages>
<jobmanger>
<label>Job Manager</label>
<controller>jobmanager</controller>
<action>index</action>
<module>users</module>
<role>guser</role>
<resource>owner</resource>
</jobmanger>
<myaccount>
<label>My Account</label>
<controller>profile</controller>
<action>index</action>
<role>guser</role>
<resource>owner</resource>
<module>users</module>
<pages>
<detail>
<label>Account Details</label>
<controller>profile</controller>
<action>detail</action>
<module>users</module>
<role>guser</role>
<resource>owner</resource>
<pages>
<history>
<label>Account History</label>
<controller>profile</controller>
<action>history</action>
<module>users</module>
<role>guser</role>
<resource>owner</resource>
</history>
<password>
<label>Change Password</label>
<controller>profile</controller>
<action>changepwd</action>
<module>users</module>
<role>employer</role>
<resource>employers</resource>
</password>
</pages>
</detail>
...
</navigation>
</configdata>
$configNav = new Zend_Config_Xml( ../application/config/navigation.xml , navigation );
$navigation = new Zend_Navigation($configNav);
$navView->navigation($navigation);
I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...