Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 22617 программистов и 1049 роботов. Сейчас ищут 670 программистов ...
Приступая к работе

The Yaf_Route_Simple class

Вернуться к: Yaf

(Yaf >=1.0.0)

Введение

Yaf_Route_Simple will match the query string, and find the route info.

all you need to do is tell Yaf_Route_Simple what key in the $_GET is module, what key is controller, and what key is action.

Yaf_Route_Simple::route() will always return TRUE, so it is important put Yaf_Route_Simple in the front of the Route stack, otherwise all the other routes will not be called.

Обзор классов

Yaf_Route_Simple implements Yaf_Route_Interface {
/* Свойства */
protected $controller ;
protected $module ;
protected $action ;
/* Методы */
public string assemble ( array $info [, array $query ] )
public __construct ( string $module_name , string $controller_name , string $action_name )
public bool route ( Yaf_Request_Abstract $request )
}

Свойства

controller

module

action

Содержание



Вернуться к: Yaf

© 2024 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты VIP Сувениры
Разработка компании ODware