<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Retrieve a route by name</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="yaf-router.getcurrentroute.html">Yaf_Router::getCurrentRoute</a></div> <div class="next" style="text-align: right; float: right;"><a href="yaf-router.getroutes.html">Yaf_Router::getRoutes</a></div> <div class="up"><a href="class.yaf-router.html">Yaf_Router</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="yaf-router.getroute" class="refentry"> <div class="refnamediv"> <h1 class="refname">Yaf_Router::getRoute</h1> <p class="verinfo">(Yaf >=1.0.0)</p><p class="refpurpose"><span class="refname">Yaf_Router::getRoute</span> — <span class="dc-title">Retrieve a route by name</span></p> </div> <div class="refsect1 description" id="refsect1-yaf-router.getroute-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type"><a href="class.yaf-route-interface.html" class="type Yaf_Route_Interface">Yaf_Route_Interface</a></span> <span class="methodname"><strong>Yaf_Router::getRoute</strong></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span> )</div> <p class="para rdfs-comment"> Retrieve a route by name, see also <span class="methodname"><a href="yaf-router.getcurrentroute.html" class="methodname">Yaf_Router::getCurrentRoute()</a></span> </p> </div> <div class="refsect1 parameters" id="refsect1-yaf-router.getroute-parameters"> <h3 class="title">Parameters</h3> <p class="para">This function has no parameters.</p> </div> <div class="refsect1 returnvalues" id="refsect1-yaf-router.getroute-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> </p> </div> <div class="refsect1 seealso" id="refsect1-yaf-router.getroute-seealso"> <h3 class="title">See Also</h3> <ul class="simplelist"> <li class="member"><a href="class.yaf-bootstrap-abstract.html" class="classname">Yaf_Bootstrap_Abstract</a></li> <li class="member"><a href="class.yaf-plugin-abstract.html" class="classname">Yaf_Plugin_Abstract</a></li> <li class="member"> <span class="methodname"><a href="yaf-router.addroute.html" class="methodname" rel="rdfs-seeAlso">Yaf_Router::addRoute()</a> - Add new Route into Router</span></li> <li class="member"> <span class="methodname"><a href="yaf-router.getcurrentroute.html" class="methodname" rel="rdfs-seeAlso">Yaf_Router::getCurrentRoute()</a> - Get the effective route name</span></li> </ul> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="yaf-router.getcurrentroute.html">Yaf_Router::getCurrentRoute</a></div> <div class="next" style="text-align: right; float: right;"><a href="yaf-router.getroutes.html">Yaf_Router::getRoutes</a></div> <div class="up"><a href="class.yaf-router.html">Yaf_Router</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>