Prado\Web\THttpRequest::getApplicationFilePath PHP 메소드

getApplicationFilePath() 공개 메소드

public getApplicationFilePath ( ) : string
리턴 string application entry script file path (processed w/ realpath())
    public function getApplicationFilePath()
    {
        return realpath(isset($_SERVER['SCRIPT_FILENAME']) ? $_SERVER['SCRIPT_FILENAME'] : null);
    }

Usage Example

예제 #1
0
 public function testGetApplicationFilePath()
 {
     $request = new THttpRequest();
     $request->init(null);
     self::assertEquals(__FILE__, $request->getApplicationFilePath());
 }