PHP Class 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
Inheritance: extends AbstractController
Show file Open project: atk4/atk4

Public Properties

Property Type Description
$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

Public Methods

Method Description
debug ( )
getRequestURI ( )
init ( ) }}}
parseRequestedURL ( ) Detect server environment and tries to guess absolute and relative URLs to your application.
setURL ( $url )
unix_dirname ( $path )

Method Details

debug() public method

public debug ( )

getRequestURI() public method

public getRequestURI ( )

init() public method

}}}
public init ( )

parseRequestedURL() public method

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

setURL() public method

public setURL ( $url )

unix_dirname() public method

public unix_dirname ( $path )

Property Details

$app public property

public App_Web $app
return App_Web

$base_path public property

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
return string

$base_url public property

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
return string

$page public property

Page must never start with slash. Also if path is empty, then the "index" is used automatically.
public string $page
return string

$template_filename public property

public string $template_filename
return string