Zend Framework View Script does not find a path

Please help me, I am new to zend framework. I installed the zend framework on an ubuntu machine, but when I go to " http: //zf.local/Users/index , it works fine, but when I go into the address bar" http: //zf.local/Users/Login " this shows me the following error:

An error occurred
Application error
Exception information:
Message: script 'users / login.phtml' not found in path (/ var / www / zf / application / views / scripts /)
Stack trace:
# 0 /var/www/zf/library/Zend/View/Abstract.php(876): Zend_View_Abstract -> _ script ('users / login.pht ...')
# 1 /var/www/zf/library/Zend/Controller/Action/Helper/ViewRenderer.php(897): Zend_View_Abstract-> render ('users / login.pht ...')
# 2 /var/www/zf/library/Zend/Controller/Action/Helper/ViewRenderer.php(918): Zend_Controller_Action_Helper_ViewRenderer-> renderScript ('users / login.pht ...', NULL)
# 3 /var/www/zf/library/Zend/Controller/Action/Helper/ViewRenderer.php(957): Zend_Controller_Action_Helper_ViewRenderer-> render ()
# 4 /var/www/zf/library/Zend/Controller/Action/HelperBroker.php(277): Zend_Controller_Action_Helper_ViewRenderer-> postDispatch ()
# 5 /var/www/zf/library/Zend/Controller/Action.php(523): Zend_Controller_Action_HelperBroker-> notifyPostDispatch ()
# 6 /var/www/zf/library/Zend/Controller/Dispatcher/Standard.php(289): Zend_Controller_Action-> dispatch ('loginAction')
# 7 /var/www/zf/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard-> dispatch (Object (Zend_Controller_Request_Http), Object (Zend_Controller_Response_Http))
# 8 /var/www/zf/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front-> dispatch ()
# 9 /var/www/zf/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap-> run ()
# 10 /var/www/zf/public/index.php(27): Zend_Application-> run ()
# 11 {main}  
Request Parameters:
array (
  'controller' => 'Users',
  'action' => 'Login',
  'module' => 'default',
)  

The view file for login.phtml is created using zf_tool. Please help me.

+3
source share
5 answers

, , ..

login.phtml.

0

, . cat /var/www/zf/application/views/scripts/users/login.phtml.

, .

0

, . , "" L, ZF "login.phtml" ( L). , Login.phtml, .

0

, .............

, , Linux- ZF , :

 Message: script 'users/login.phtml' not found in path 
(/var/www/zf/application/views/scripts/)

    Stack trace:

Request Parameters:
array (
  'controller' => 'Users',
  'action' => 'Login',
  'module' => 'default',
) 

try another example: new Zend_Form_Element_Text()

and new Zend_Form_Element_Text()you get a crazy mistake, I don’t remember her now

just correct the file name to match the case in the controller class. Like:Login.phtml

0
source

Using the IDE, verify that the files are uploaded correctly. Only twenty minutes to find it.

0
source

Source: https://habr.com/ru/post/1741069/


All Articles