Пример #1
0
 public function __construct()
 {
     parent::__construct(array(CricketApp::CONFIG_SESSION => CricketApp::PHP_SESSION, CricketApp::CONFIG_PHP_SESSION => array(CricketApp::PHP_SESSION_EXPIRE => 0, CricketApp::PHP_SESSION_NAME => "example1", CricketApp::PHP_SESSION_PATH => Dispatcher::getInstance()->getRequest()->getContextUri())));
 }
Пример #2
0
<?php

require_once "entry.php";
use cricket\core\Dispatcher;
$dispatcher = new Dispatcher(null, null, null, array('../lib/cricket' => '..' . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'cricket'));
$dispatcher->dispatchRequest();