Skip to content

Latest commit

 

History

History
52 lines (44 loc) · 1.09 KB

MIGRATION_3.27_to_3.30.md

File metadata and controls

52 lines (44 loc) · 1.09 KB

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]'
                )
            )