-
Notifications
You must be signed in to change notification settings - Fork 1
hey-mx/Atomic-PHP
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
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 0
No packages published