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

Namespaces

  • Alo
    • Cache
    • CLI
    • Controller
    • Db
    • Exception
    • FileSystem
    • Session
    • Statics
    • Test
    • 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 at sys/class/alo/controller/abstractcontroller.php

Methods summary

public
# __construct( boolean $echo_on_destruct = true )

Instantiates the class

Instantiates the class

Parameters

$echo_on_destruct
boolean
$echo_on_destruct 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
# http_error( integer $code = 404 )

Forces a HTTP error page to be displayed instead

Forces a HTTP error page to be displayed instead

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 = [], 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

private boolean $echo_on_destruct
#

Whether to echo contents on object destruct

Whether to echo contents on object destruct

AloFramework documentation API documentation generated by ApiGen 2.8.0