Asf_AbstractService::getRequest

获取当前 Asf_Request 实例


Description

public function getRequest(void)

Parameters

Return Values

Asf_Request object

Examples

Example #1

<?php
class IndexService extends Asf_AbstractService
{
    public function IndexAction()
    {
        print_r($this->getRequest());   
    }
}

$configs = array(
    'asf' => array(
        'root_path'  => __DIR__,
    )
);

$handle = new Asf_Application($configs);
$handle->run();