PHP Classes

File: app/Config/View.php

Recommend this page to a friend!
  Classes of Steeven Lim   o2system   app/Config/View.php   Download  
File: app/Config/View.php
Role: Example script
Content type: text/plain
Description: Example script
Class: o2system
Start projects using the with O2System Framework
Author: By
Last change:
Date: 4 years ago
Size: 2,263 bytes
 

Contents

Class file image Download
<?php
/**
 * This file is part of the O2System PHP Framework package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @author Steeve Andrian Salim
 * @copyright Copyright (c) Steeve Andrian Salim
 */

// ------------------------------------------------------------------------

/**
 * Http View Configuration
 *
 * @var \O2System\Kernel\DataStructures\Config
 */
$view = new \O2System\Kernel\DataStructures\Config([
   
'presenter' => [
       
/**
         * Presenter Debug Toolbar
         *
         * @var bool
         */
       
'debugToolBar' => true,

       
// ------------------------------------------------------------------------

        /**
         * Presenter Theme
         *
         * @var string
         */
       
'theme' => 'default',

       
// ------------------------------------------------------------------------

        /**
         * Presenter SocialGraph
         *
         * @var string
         */
       
'socialGraph' => true,

       
// ------------------------------------------------------------------------
   
],

   
/**
     * View Output
     *
     * @var array
     */
   
'output' => [
       
/**
         * Uglify view HTML output
         *
         * Removes extra characters (usually unnecessary spaces) from your output for faster page load speeds.
         * Makes your outputted HTML source code less readable.
         *
         * @var bool
         */
       
'uglify' => false,

       
// --------------------------------------------------------------------

        /**
         * Beautify view HTML output
         *
         * When set to TRUE the HTML source code output will automatically beautify using Indenter.
         * Only worked when minify or compress set to FALSE. On PRODUCTION stage it's recommended to be set as FALSE
         *
         * NOTE: If your memory limit is exhausted, when O2System is try to beautify your HTML output,
         * you can change your memory limit or set this configuration into FALSE, this can be happened because
         * on your HTML output some errors occurs.
         *
         * @var bool
         */
       
'beautify' => false,
    ]
]);