NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Running/debugging ZF Applications within PhpED


Joined: 03 Aug 2010
Posts: 4
Location: Germany
Reply with quote
I'm a newbie to Zend Framework development and encountering some problems. I try to run the application on a remote Apache Linux host. As long as I run "normal" (non-ZF) applications, everything is fine. The problems arise, when I run a ZF application within the IDE.

When I start the ZF-App from a browser, it works. But when I hit run in the IDE (the green triangle), I get a message 'Invalid controller specified (htdocs)', the same is when I run the debugger.

Can somebody please point me into the right direction to solve this? What am I doing wrong?

Tanks in advance!
View user's profileFind all posts by CoviSend private message


Joined: 11 Apr 2010
Posts: 90
Location: Prague, Czech Republic
Reply with quote
This is a problem with project's path mapping. Verify, that you have properly setup project's mapping - right-click on project in Workspace, select Properties from menu. Then on Properties tab verify Mapping section setup. It should look like this:
Code:
Run mode: HTTP mode (3rd party WEB server)
Root URL: http://www.yourproject.local/
Remote Root directory: C:\Apache\htdocs\yourproject\www_root\

If the path is different, Zend cannot find propper controller and throws error. It would suggest, that you have project path configured fot 'htdocs/' directory instead of 'htdocs/yourproject/' directory.
View user's profileFind all posts by fibizaSend private message


Joined: 03 Aug 2010
Posts: 4
Location: Germany
Reply with quote
Thanks für the reply.
I just tried to configure the mappings, but maybe I'm too dumb to succeed Wink

The projects directory stucture is as follows:
Code:

project
+-htdocs
 +-application
   +-controllers
   +-models
   +-views
   -bootstrap.php
 +-libary
   +-Zend
 +-public
   -index.php


and the project mappings:
Code:

Run mode: HTTP mode (3rd party WEB server)
Root URL: http://www.my-project.de
Remote root dir: /var/www/my-project.de/


The server's Document Root für this virtual host is /var/www/my-project.de/htdocs/public
How should the project mappings look like?
View user's profileFind all posts by CoviSend private message


Joined: 03 Aug 2010
Posts: 4
Location: Germany
Reply with quote
does nobody have an idea how to get this to work?
View user's profileFind all posts by CoviSend private message


Joined: 11 Apr 2010
Posts: 90
Location: Prague, Czech Republic
Reply with quote
I think that you want to have
Code:
Run mode: HTTP mode (3rd party WEB server)
Root URL: http://www.my-project.de
Remote root dir: /var/www/my-project.de/htdocs/public/
View user's profileFind all posts by fibizaSend private message


Joined: 03 Aug 2010
Posts: 4
Location: Germany
Reply with quote
finally got it, thanx for the assistance.

Project Properties, Properties tab
Code:
Root directory: \\MyServer\www\my-project.de\htdocs\public (Samba does this for me)
Run mode: HTTP mode (3rd party WEB server)
Root URL: http://www.my-project.de
Remote root dir: /var/www/tumirnix.de/htdocs/public


Using this, you don't see the application and the libary directoy in this project. So, I added a second project to the Workspace:
Code:
Root directory: \\MyServer\www\my-project.de\htdocs

The second project shows all the source trees.

The active project is the first one. And in the first project I put the following entries into the Mapping-tab:
Code:
/var/www/my-project.de/htdocs/libary \\MyServer\www\my-project.de\htdocs\library
/var/www/my-project.de/htdocs/application  \\MyServer\www\my-project.de\htdocs\application


When I set a breakpoint in the second project, execution stops, even if the first one is the active one. Cool
View user's profileFind all posts by CoviSend private message
Running/debugging ZF Applications within PhpED
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic