Example #1
0
<?php

/**
 * Description
 *
 * @project appbox
 * @package
 * @author nickfan<*****@*****.**>
 * @link http://www.axiong.me
 * @version $Id$
 * @lastmodified: 2014-06-05 14:38
 *
 */
require_once __DIR__ . '/../../../../bootstrap/initenv.php';
use Nickfan\AppBox\Config\BoxRepository;
use Nickfan\AppBox\Common\Usercache\ApcBoxUsercache;
$instRepository = new BoxRepository($boxapp['path.storage'] . '/conf', new ApcBoxUsercache());
echo $instRepository->getVersion();
Example #2
0
<?php

/**
 * Description
 *
 * @project appbox
 * @package
 * @author nickfan<*****@*****.**>
 * @link http://www.axiong.me
 * @version $Id$
 * @lastmodified: 2014-06-05 14:38
 *
 */
require_once __DIR__ . '/../../../../bootstrap/initenv.php';
use Nickfan\AppBox\Config\BoxRepository;
use Nickfan\AppBox\Common\Usercache\ApcBoxUsercache;
$instRepository = new BoxRepository($boxapp['path.storage'] . '/conf', new ApcBoxUsercache());
$timezone = $instRepository->get('app.timezone');
var_dump($timezone);
$itemPerPages = $instRepository->get('common.itemPerPages');
var_dump($itemPerPages);