PHP Classes

File: MIGRATION_3.27_to_3.30.md

Recommend this page to a friend!
  Classes of Slawomir Kaleta   Dframe Framework   MIGRATION_3.27_to_3.30.md   Download  
File: MIGRATION_3.27_to_3.30.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: Dframe Framework
Modular MVC based PHP Web framework
Author: By
Last change: Update of MIGRATION_3.27_to_3.30.md
Date: 3 years ago
Size: 1,119 bytes
 

Contents

Class file image Download

ROUTER

before

return array(
    'NAME_CONTROLLER' => 'page',
    'NAME_METHOD' => 'index',
    'publicWeb' => '',
    'assetsPath' => 'assets',
    'default' => array(
        '[task]/[action]/[params]',
        'task=[task]&action=[action]',
        'params' => '(.*)',
        '_params' => array(
            '[name]/[value]/', 
            '[name]=[value]'
            )
        ), 
        

After


return array(
    'NAME_CONTROLLER' => 'page',
    'NAME_METHOD' => 'index',
    'publicWeb' => '',

    'assets' => array(
	    'minifyCssEnabled' => true,
	    'minifyJsEnabled' => true,
	    'assetsDir' => 'assets',
	    'assetsPath' => APP_DIR.'View/',
	    'cacheDir' => 'cache',
	    'cachePath' => APP_DIR.'../web/',
	    'cacheUrl' => HTTP_HOST.'/',
    ),
    
    'routes' => array(        
        'default' => array(
            '[task]/[action]/[params]',
            'task=[task]&action=[action]',
            'params' => '(.*)',
            '_params' => array(
                '[name]/[value]/', 
                '[name]=[value]'
                )
            )