Exemplo n.º 1
0
 /**
  *
  * */
 public function later()
 {
     $this->useModel('later');
     $data = Request::post();
     $data['ipAddress'] = $_SERVER['REMOTE_ADDR'];
     $data['createdAt'] = date('Y-m-d H:i:s');
     $save = $this->model->later->saveData($data, true);
     debug_print($save, true);
 }
Exemplo n.º 2
0
$application = 'Application';
// Applcations specifed directory.
$modules = 'Modules';
// Modules location.
$system = 'System';
// System base classes location.
if (!is_dir($application) and is_dir(DOCROOT . $application)) {
    $application = DOCROOT . $application;
}
if (!is_dir($modules) and is_dir(DOCROOT . $modules)) {
    $modules = DOCROOT . $modules;
}
if (!is_dir($system) and is_dir(DOCROOT . $system)) {
    $system = DOCROOT . $system;
}
// Define the absolute paths for configured directories
define('APPPATH', realpath($application) . DIRECTORY_SEPARATOR);
define('MODPATH', realpath($modules) . DIRECTORY_SEPARATOR);
define('SYSPATH', realpath($system) . DIRECTORY_SEPARATOR);
// Clean up the configuration vars
unset($application, $modules, $system);
// Bootstrap the application
require SYSPATH . 'bootstrap.php';
// Load class
use System\Core\Request;
use System\Core\Session;
// Start session
Session::init();
// Render current page
Request::factory(true)->execute()->render();
Exemplo n.º 3
0
 public function LoginAction()
 {
     Y::dump(111111111111.0);
     $id = R::post('id');
     var_dump($id);
 }