File: examples/example1/app/Config/router.php

Recommend this page to a friend!
  Classes of Slawomir Kaleta  >  Dframe File Storage  >  examples/example1/app/Config/router.php  >  Download  
File: examples/example1/app/Config/router.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Dframe File Storage
Store and retrieve files in a database
Author: By
Last change:
Date: 1 year ago
Size: 1,691 bytes
 

Contents

Class file image Download
<?php

/**
 * Uwaga pierwsze?stwo nawewnictw jest wa?ne je?li
 * je?li jest
 * grupa
 * grupa/1
 *
 * to nigdy si? nie wykona grupa/1
 *
 * Przyk?ad poprawnego u?ycia
 * grupa/1
 * grupa
 */

return [
   
'https' => false,
   
'NAME_CONTROLLER' => 'page', // Default Controller for router
   
'NAME_METHOD' => 'index', // Default Action for router
   
'publicWeb' => '', // Path for public web (web or public_html)

   
'assets' => [
       
'minifyCssEnabled' => true,
       
'minifyJsEnabled' => true,
       
'assetsDir' => 'assets',
       
'assetsPath' => APP_DIR . 'View/',
       
'cacheDir' => 'cache',
       
'cachePath' => APP_DIR . '../web/',
       
'cacheUrl' => HTTP_HOST . '/',
    ],

   
'routes' => [
       
'filestorage/images/:params' => [
           
'filestorage/images/[params]',
           
'task=page&action=file&image=[params]',
           
'params' => '(.*)',
           
'_params' => '[value]'
       
],

       
'filestorage/file' => [
           
'filestorage/file/[params]',
           
'task=page&action=file',
           
'params' => '(.*)',
           
'_params' => [
               
'[value]/',
               
'[value]'
           
]
        ],

       
'error/404' => [
           
'error/404',
           
'task=page&action=404'
       
],

       
'error/500' => [
           
'error/500',
           
'task=page&action=500'
       
],

       
'default' => [
           
'[task]/[action]/[params]',
           
'task=[task]&action=[action]',
           
'params' => '(.*)',
           
'_params' => [
               
'[name]/[value]/',
               
'[name]=[value]'
           
]
        ]
    ]
];


For more information send a message to info at phpclasses dot org.