-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.php
22 lines (19 loc) · 930 Bytes
/
home.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
$baseUrl = getEnv('BASE_URL') ? getEnv('BASE_URL') : 'http://local.dgeco.com.br';
define ('BASE_URL', $baseUrl . '/');
include 'helper.php';
include 'controller.php';
include 'model.php';
$urls = array(
'^/comprar/?' => 'Comprar',
'^/setup/?' => 'Setup',
'^/atualiza/?' => 'Atualizar',
'^/carrinho/?' => 'Carrinho',
'^/remover/([a-z_-]+)/?' => 'Remover',
'^/adicionar/([a-z_-]+)/?' => 'Adicionar',
'^/produto/([a-z_-]+)/?' => 'Produto',
'^/categoria/([a-z_-]+)/?' => 'Categoria',
'^/?$' => 'Home',
'^/(static|image)/([a-z0-9_-]+)\.(css|js|jpg|png)' => 'StaticFiles',
);
include 'app.php';