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

Public Member Functions

 __construct ($context, $params)
 
 start ()
 

Protected Attributes

 $params
 

Detailed Description

Controller abstract class

Definition at line 11 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 30 of file AController.php.

31  {
32  $this->params = $params;
33  }

Member Function Documentation

start ( )
abstract

Fullfill Controller's request

Field Documentation

array $params
protected

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

Definition at line 21 of file AController.php.


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