wenbert
wenbert

Reputation: 5303

Zend Studio + Zend Framework

Zend Framework has this "Run" button... this works on individual php files. but i am curious how would this work if you are using Zend Framework (or others) where everything (requests, etc) must go through the bootstrap file first before the actual file you are editing is executed?

Upvotes: 1

Views: 1957

Answers (2)

lo_fye
lo_fye

Reputation: 6840

Right click on your public/index.php file Choose "run as php web page" It will ask you what URL you want to view while it profiles index.php You can specify whatever url, but Zend requires that 'index.php' be in the url. This is okay, though, because the rest of Zend Framework will ignore it.

For example, if you want to profile: http://www.mydomain.com/accounts/view

you would simply type in: http://www.mydomain.com/index.php/accounts/view

Then you can watch the Zend Studio profiler go to work :)

I figured this out by watching Zend's product screencasts, here: http://www.zend.com/en/products/studio/videos

Upvotes: 7

Gabriel Solomon
Gabriel Solomon

Reputation: 30035

i don't think there is a way of running a certain file through the bootstrap file, since for the application to reach that file it would need to go through your routing system and the IDE has no way of knowing what will that URI be.

Upvotes: 1

Related Questions