PHP Класс Controller_PageManager, atk4

This class works with PathFinder, App_Web, and Location. Terminology: Project - entirety of your files including shared folders, documestation, migrations scripts, support files etc etc. Project concept is introduced in Agile Toolkit 4.3 Interface - (such as "admin", "frontend", "cli", "api") is located in the project folder and contains interface specific pages, librares and templates. Location - represents a physical location on the filesystem, where files can be located either through file access or whrough URL access. you can access variabless below through $this->app->pm->base_url concatinate them to get full URL
Наследование: extends AbstractController
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$app App_Web
$base_path string You can use $base_path in your script to put it say on a logo link Also - some other parts of the library may have a different path, for example base_path could be = /admin/, and atk4_path could be /amodules/ If project is installed in web-root, then $base_path will be "/" path always starts and ends with slash
$base_url string For CLI scripts, you need to set this manually. Also if you are going to use URLs in emails, you should use this. See also: URL::useAbsoluteURL();
$page string Page must never start with slash. Also if path is empty, then the "index" is used automatically.
$template_filename string

Открытые методы

Метод Описание
debug ( )
getRequestURI ( )
init ( ) }}}
parseRequestedURL ( ) Detect server environment and tries to guess absolute and relative URLs to your application.
setURL ( $url )
unix_dirname ( $path )

Описание методов

debug() публичный Метод

public debug ( )

getRequestURI() публичный Метод

public getRequestURI ( )

init() публичный Метод

}}}
public init ( )

parseRequestedURL() публичный Метод

See docs: doc/application/routing/parsing
public parseRequestedURL ( )

setURL() публичный Метод

public setURL ( $url )

unix_dirname() публичный Метод

public unix_dirname ( $path )

Описание свойств

$app публичное свойство

public App_Web $app
Результат App_Web

$base_path публичное свойство

You can use $base_path in your script to put it say on a logo link Also - some other parts of the library may have a different path, for example base_path could be = /admin/, and atk4_path could be /amodules/ If project is installed in web-root, then $base_path will be "/" path always starts and ends with slash
public string $base_path
Результат string

$base_url публичное свойство

For CLI scripts, you need to set this manually. Also if you are going to use URLs in emails, you should use this. See also: URL::useAbsoluteURL();
public string $base_url
Результат string

$page публичное свойство

Page must never start with slash. Also if path is empty, then the "index" is used automatically.
public string $page
Результат string

$template_filename публичное свойство

public string $template_filename
Результат string