ecom
E-commerce cms
 All Data Structures Namespaces Files Functions Variables
Public Member Functions | Protected Attributes
AController Class Reference
Inheritance diagram for AController:
Error404 ProductController AHttpController RestfullController CategoryController HomeController

Public Member Functions

 __construct ($context, $params)
 
 start ()
 

Protected Attributes

 $params
 
 $context
 

Detailed Description

Controller abstract class

Definition at line 8 of file AController.php.

Constructor & Destructor Documentation

__construct (   $context,
  $params 
)
Parameters
\Tools\Context$context
array$params
Exceptions
Exception if parameters does not correspond On 404 error, router will try to find another route Initialize structure

Definition at line 32 of file AController.php.

33  {
34  $this->params = $params;
35  $this->context = $context;
36  }

Member Function Documentation

start ( )
abstract

Fullfill Controller's request

Field Documentation

Tools Context $context
protected

Definition at line 23 of file AController.php.

array $params
protected

Contains route parameter ex: /product/:id will contains { 0 => product 1 => [ID] ':id' => [ID]

Definition at line 18 of file AController.php.


The documentation for this class was generated from the following file: