AloFramework documentation
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Namespaces

  • Alo
    • Cache
    • CLI
    • Controller
    • Db
    • Exception
    • FileSystem
    • Session
    • Traversables
    • Validators
    • Windows
  • Controller
  • None
  • PHP

Classes

  • AbstractController
  • AbstractErrorController
  • Router

Class AbstractController

The controller superclass

Direct known subclasses

Alo\Controller\AbstractErrorController,Controller\Cart,Controller\Sample

Indirect known subclasses

Controller\SampleErrorController

Abstract
Namespace:Alo\Controller
Author:Art <a.molcanovas@gmail.com>
Located atsys/class/alo/controller/abstractcontroller.php

Methods summary

public
#__construct(boolean$echoOnDestruct=true)

Instantiates the class

Instantiates the class

Parameters

$echoOnDestruct
boolean
$echoOnDestruct Whether to echo contents on object destruct

Author

Art <a.molcanovas@gmail.com>
public
#index( )

Method to avoid errors. Should always be overridden.

Method to avoid errors. Should always be overridden.

Author

Art <a.molcanovas@gmail.com>
protected
#httpError(integer$code=404)

Forces a HTTP error page to be displayed. This does not stop script execution, but prevents further output.

Forces a HTTP error page to be displayed. This does not stop script execution, but prevents further output.

Parameters

$code
integer
$code The HTTP response code

Author

Art <a.molcanovas@gmail.com>
public
#__destruct( )

Closure operations

Closure operations

Author

Art <a.molcanovas@gmail.com>
protected boolean|Alo\Controller\AbstractController
#echoOnDestruct(boolean|null$switch=null)

Returns if echoOnDestruct is true or false if called without a parameter or sets it to true/false if the parameter is set

Returns if echoOnDestruct is true or false if called without a parameter or sets it to true/false if the parameter is set

Parameters

$switch
boolean|null
$switch The parameter

Returns

boolean|Alo\Controller\AbstractController
protected null|string
#loadView(string$name,array$params=null,boolean$return=false)

Loads a view

Loads a view

Parameters

$name
string
$name The name of the view without ".php".
$params
array
$params Associative array of parameters to pass on to the view
$return
boolean
$return If set to TRUE, will return the view, if FALSE, will echo it

Returns

null|string

Author

Art <a.molcanovas@gmail.com>

Magic methods summary

Properties summary

public staticAlo\Controller\AbstractController$this
#

Static reference to the last instance of the class

Static reference to the last instance of the class

private boolean$echoOnDestruct
#

Whether to echo contents on object destruct

Whether to echo contents on object destruct

AloFramework documentation API documentation generated byApiGen 2.8.0