PHP 8.6.0 Beta 3 is available for testing

Yaf_Router::__construct

(Yaf >=1.0.0)

Yaf_Router::__constructYaf_Router constructor

Açıklama

public function Yaf_Router::__construct()

Bağımsız Değişkenler

Bu işlevin bağımsız değişkeni yoktur.

Dönen Değerler

Örnekler

Örnek 1 Yaf_Router::__construct() example

In normal usage the router is not constructed manually, it is owned by the dispatcher:

<?php
/* in index.php or a plugin, obtain the router from the dispatcher */
$router = Yaf_Dispatcher::getInstance()->getRouter();
var_dump($router);
?>

Yukarıdaki örnek şuna benzer bir çıktı üretir:

object(Yaf_Router)#4 (1) {
}

Ayrıca Bakınız

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top