Пример #1
0
 public function __construct()
 {
     #get the controler
     $url_parameter[1] = str_replace('-', '', $this->getParameter(1));
     self::$controler = $url_parameter[1] == '' ? 'hotsite' : $url_parameter[1];
     #get the action
     $url_parameter[2] = str_replace('-', '', $this->getParameter(2));
     self::$action = $url_parameter[2] == '' ? 'start' : $url_parameter[2];
 }
Пример #2
0
<?php

/**
 * Project: SIMPLE PHP - Framework 
 * @author Rafael Franco <*****@*****.**>
 */
$keys = array();
require SIMPLEPHP_PATH . 'app/code/modules/util.php';
require SIMPLEPHP_PATH . 'app/code/modules/simplePHP.php';
#load Simple php
$simplePHP = new simplePHP();
#load the page
$simplePHP->loadPage();
#apply keys
$content = $simplePHP->applyKeys($template, $keys);
echo $content;