Deprecated: strrpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/web/dev.sobird.me/app/core/Controller.class.php on line 49

Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/web/dev.sobird.me/app/core/Controller.class.php on line 51
Sobird_simple light weight php web framework

Simple php framework, built for developers.

Can see is interface, Localization, Hook patterns

Current Version: v2.0.1

An example: Web App

./app/www/index.php

define('APP_NAME, 'sobird');
define('APP_PATH', '/app/deploy/path');
define('SYS_PATH', '/sys/deploy/path');
require_once(SYS_PATH.'bootstrap.php');
$app = R::createApp(APP_NAME, APP_PATH);
$app->run();
                

./app/module/home/action/indexAction.class.php

class indexAction extends Controller{
    function onHttpRequest(){
        $this->assign('hello_world','hello world!');
        $this->display();
    }
}
                

./app/module/home/view/index.html.php

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<title>title</title>
</head>
<body>
<h1><?php echo $hello_world; ?></h1>
</body>
</html>