Search code examples
phpzend-frameworkdispatcher

Copy zend project from one pc to another


I want to copy my zend project "InspectionSys" from one pc to another. I make the proper configuration of zend framework on the other pc, when I try to open my project through this URL

http://localhost/zendapps/InspectionSys/public/visits/visit/get_visits

this error occurs

Message: Invalid controller specified (zendapps) 
Request Parameters:

array (
'controller' => 'zendapps',
'action' => 'InspectionSys',
'public' => 'visits',
'visit' => 'get_visits',
'module' => 'default',
)  

the mapping of the array options and the values are totally incorrect, what is the problem? EDIT

The mapping should be

array (
'module' => 'visits',
'controller' => 'visit',
'action' => 'get_visits',
'public' => 'public'


)  

Solution

  • Set up baseUrl in the front controller; set it to zendapps/InspectionSys/public. You'll find details in the documentation.