I am writing a plugin for my Zend Framework application and I want to quickly check if the controller exists. Can someone point me in the right direction?
Use the isDispatchable method, the front controller method, passing it an instance of Zend_Controller_Request_Abstract.
if( $front->getDispatcher()->isDispatchable($testRequest) ) { //things to do }
Source: https://habr.com/ru/post/1718166/More articles:C #, LINQ, SQL: composite columns - c #how to pass an array string [] to a web service via jQuery? - jqueryHow to filter empty fields in Jira? - jirahow to add (or ignore) the XML namespace when using XElement.Load - c #How to determine if a variable's value is a symbol associated with a procedure in a Schema? - functional-programmingWhat not to forget? - jqueryoverride method - javaDjango: query filter for all * values from ManyToManyField - pythonI need to look for a “client” in db, what would be a good design here? - javaDoes JUnit have a character limit of 30 characters per name of your class? - eclipseAll Articles