File: examples/cart/index.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil  >  PHP Skeleton Framework  >  examples/cart/index.php  >  Download  
File: examples/cart/index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Skeleton Framework
Extensive Web application development framework
Author: By
Last change:
Date: 5 years ago
Size: 1,247 bytes


Class file image Download
include 'config.php';

// Init autoload using Locator
require $ConfigArray['LIB'] . 'A/Locator.php';
$Locator = new A_Locator();

$Config = new A_Collection($ConfigArray);

// Create HTTP Request object
$Request = new A_Http_Request();

// Start Sessions
$Session = new A_Session();

// Create HTTP Response object and set default template and valuesS
$Response = new A_Http_Response();
$Response->set('BASE', $ConfigArray['BASE']);
$Response->set('title', 'Cart Example');
$Response->set('head', '');
$Response->set('content', '');

// Add common objects to registry
$Locator->set('Config', $Config);
$Locator->set('Request', $Request);
$Locator->set('Response', $Response);
$Locator->set('Session', $Session);

$Pathinfo = new A_Http_Pathinfo();

$Controller = new A_Controller_Front($Config->get('APP'), array('', 'product_category', 'index'));

// Finally, display
echo $Response->render();

#dump($_SESSION, '_SESSION: ');
#dump($_REQUEST, '_REQUEST: ');
#echo '<div style="clear:both;"><b>Included files:</b><pre>' . implode(get_included_files(), "\n") . '</pre></div>';

For more information send a message to info at phpclasses dot org.