Skip to content

hey-mx/Atomic-PHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

- Create the index.php in the root path of the website:

    <?php
        session_start();
        require '/web/atomic/Atomic.php';
        $app = Atomic::getInstance('bootstrap.php');
        $app->run();
    ?>

- You can find an example of the bootstrap.php in the sources. Look into bootstrap.php.sample

- Create a controller
    <?php
        class Controller extends AtController {

            public function index() {
                $name = "Carlos";
                $this->Display('hello.tpl', array('name' => $name));
            }
        }
    ?>

- Create a template (based on smarty)
    <html>
        <head></head>
        <body>
            <span>Hello {$name}!!</span>
        </body>
    </html>

About

A simple php framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •