|
|||
|
Greetings,
I am getting some unexpected results from my controller(s). I have a controller called 'LenderController'. It contains the indexAction and a loginAction. If I go to http://myserver/lender, I get the expected rendering of the indexAction. However, if I go to http://myserver/lender/login, I get the following message: Fatal error: Uncaught exception 'Zend_View_Exception' with message 'script 'lender/login.phtml' not found in path (/usr/local/lib/php/application/views/scripts/)' in /usr/local/lib/php/Zend/View/Abstract.php:856 Clearly it is expecting a login.phtml file. What am I doing wrong? Here's the controller in question, but this applies to all my controllers, even the IndexController: PHP Code:
-sh |
|
|||
|
Hi,
try this: go to the directory "/application/views/scripts/lender/" (if the directory lender does not exists, create it) and create here the file called "login.phtml": login.phtml HTML Code:
this is login page PHP Code:
|
|
||||
|
__________________
Zym Framework - A Zend Framework extension library w/ demo app SpotSec Blog: http://spotsec.com/blog |
![]() |
| Thread Tools | |
| Display Modes | |
|
|