R – Zend Studio + Zend Framework

zend-frameworkzend-studio

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?

Best Answer

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

Related Topic