require_once 'path/to/F3.php' ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { echo 'Hello, world!' ; } F3 :: run ( ) ;
require_once 'path/to/F3.php' ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { echo 'Hello, world!' ; } F3 :: run ( ) ;
require_once 'path/to/F3.php' ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { echo 'Hello, world!' ; } F3 :: run ( ) ;
require_once 'path/to/F3.php' ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { echo 'Hello, world!' ; } F3 :: run ( ) ;
require_once 'path/to/F3.php' ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { echo 'Hello, world!' ; } F3 :: run ( ) ;
require_once 'path/to/F3.php' ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { echo 'Hello, world!' ; } F3 :: run ( ) ;
- require_once ( 'F3 / F3.php' ) ; // connect the framework
- F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite: guestbook.sqlite' ) ) ; / * Initialization of connection to the database.
- Note: if you have sqlite version = 2, the DSN should look like this:
- 'dsn' => 'sqlite2: guestbook.sqlite'
- * /
require_once 'path/to/F3.php' ; F3 :: route ( 'GET /' , function ( ) { echo 'Hello, world!' ; } ) ; F3 :: run ( ) ;
require_once 'path/to/F3.php' ; F3 :: route ( 'GET /' , function ( ) { echo 'Hello, world!' ; } ) ; F3 :: run ( ) ;
require_once 'path/to/F3.php' ; F3 :: route ( 'GET /' , function ( ) { echo 'Hello, world!' ; } ) ; F3 :: run ( ) ;
require_once 'path/to/F3.php' ; F3 :: route ( 'GET /' , function ( ) { echo 'Hello, world!' ; } ) ; F3 :: run ( ) ;
require_once 'path/to/F3.php' ; F3 :: route ( 'GET /' , function ( ) { echo 'Hello, world!' ; } ) ; F3 :: run ( ) ;
- require_once 'path / to / F3.php' ;
- class MyClass {
- public static function hello ( ) {
- echo 'Hello, world!' ;
- }
- }
- F3 :: route ( 'GET /' , 'MyClass :: hello' ) ;
- F3 :: run ( ) ;
- require_once 'path / to / F3.php' ;
- class MyClass {
- public function hello ( ) {
- echo 'Hello, world!' ;
- }
- }
- $ test = new MyClass ;
- F3 :: route ( 'GET /' , array ( $ test , 'hello' ) ) ;
- F3 :: run ( ) ;
- //index.php:
- <? php
- require_once 'path / to / F3.php' ;
- F3 :: set ( 'IMPORTS' , 'yourpath' ) ;
- F3 :: route ( 'GET /' , ( : yourfile ) ) ;
- F3 :: run ( ) ;
- //yourpath/yourfile.php
- <? php echo 'Hello World!' ; ?>
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; /* . autoload. .*/ F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ;
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; /* . autoload. .*/ F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ;
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; /* . autoload. .*/ F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ;
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; /* . autoload. .*/ F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ;
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; /* . autoload. .*/ F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ;
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // foreach ( $all_comments as $comment ) { /* . , . */ echo ': ' . $comment [ 'author' ] . '<br />' ; echo ': ' . $comment [ 'comment' ] . '<br /><br />' ; } }
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // foreach ( $all_comments as $comment ) { /* . , . */ echo ': ' . $comment [ 'author' ] . '<br />' ; echo ': ' . $comment [ 'comment' ] . '<br /><br />' ; } }
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // foreach ( $all_comments as $comment ) { /* . , . */ echo ': ' . $comment [ 'author' ] . '<br />' ; echo ': ' . $comment [ 'comment' ] . '<br /><br />' ; } }
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // foreach ( $all_comments as $comment ) { /* . , . */ echo ': ' . $comment [ 'author' ] . '<br />' ; echo ': ' . $comment [ 'comment' ] . '<br /><br />' ; } }
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // foreach ( $all_comments as $comment ) { /* . , . */ echo ': ' . $comment [ 'author' ] . '<br />' ; echo ': ' . $comment [ 'comment' ] . '<br /><br />' ; } }
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // foreach ( $all_comments as $comment ) { /* . , . */ echo ': ' . $comment [ 'author' ] . '<br />' ; echo ': ' . $comment [ 'comment' ] . '<br /><br />' ; } }
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // foreach ( $all_comments as $comment ) { /* . , . */ echo ': ' . $comment [ 'author' ] . '<br />' ; echo ': ' . $comment [ 'comment' ] . '<br /><br />' ; } }
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // foreach ( $all_comments as $comment ) { /* . , . */ echo ': ' . $comment [ 'author' ] . '<br />' ; echo ': ' . $comment [ 'comment' ] . '<br /><br />' ; } }
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // foreach ( $all_comments as $comment ) { /* . , . */ echo ': ' . $comment [ 'author' ] . '<br />' ; echo ': ' . $comment [ 'comment' ] . '<br /><br />' ; } }
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // foreach ( $all_comments as $comment ) { /* . , . */ echo ': ' . $comment [ 'author' ] . '<br />' ; echo ': ' . $comment [ 'comment' ] . '<br /><br />' ; } }
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // foreach ( $all_comments as $comment ) { /* . , . */ echo ': ' . $comment [ 'author' ] . '<br />' ; echo ': ' . $comment [ 'comment' ] . '<br /><br />' ; } }
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // foreach ( $all_comments as $comment ) { /* . , . */ echo ': ' . $comment [ 'author' ] . '<br />' ; echo ': ' . $comment [ 'comment' ] . '<br /><br />' ; } }
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // foreach ( $all_comments as $comment ) { /* . , . */ echo ': ' . $comment [ 'author' ] . '<br />' ; echo ': ' . $comment [ 'comment' ] . '<br /><br />' ; } }
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // foreach ( $all_comments as $comment ) { /* . , . */ echo ': ' . $comment [ 'author' ] . '<br />' ; echo ': ' . $comment [ 'comment' ] . '<br /><br />' ; } }
F3 :: set ( 'GUI' , ' ' ) ;
F3 :: set ( '' , '' ) ;
- F3 :: get ( 'variable' ) ;
F3 :: serve ( 'template.html' ) ;
//index.php: <?php require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } ?> <!-- template.html --> <F3:repeat key= “{@key}” index="{@comment}" group="{@comments}"> <p>{@comment.id}</p> </F3:repeat>
//index.php: <?php require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } ?> <!-- template.html --> <F3:repeat key= “{@key}” index="{@comment}" group="{@comments}"> <p>{@comment.id}</p> </F3:repeat>
//index.php: <?php require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } ?> <!-- template.html --> <F3:repeat key= “{@key}” index="{@comment}" group="{@comments}"> <p>{@comment.id}</p> </F3:repeat>
//index.php: <?php require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } ?> <!-- template.html --> <F3:repeat key= “{@key}” index="{@comment}" group="{@comments}"> <p>{@comment.id}</p> </F3:repeat>
//index.php: <?php require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } ?> <!-- template.html --> <F3:repeat key= “{@key}” index="{@comment}" group="{@comments}"> <p>{@comment.id}</p> </F3:repeat>
//index.php: <?php require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } ?> <!-- template.html --> <F3:repeat key= “{@key}” index="{@comment}" group="{@comments}"> <p>{@comment.id}</p> </F3:repeat>
//index.php: <?php require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } ?> <!-- template.html --> <F3:repeat key= “{@key}” index="{@comment}" group="{@comments}"> <p>{@comment.id}</p> </F3:repeat>
//index.php: <?php require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } ?> <!-- template.html --> <F3:repeat key= “{@key}” index="{@comment}" group="{@comments}"> <p>{@comment.id}</p> </F3:repeat>
//index.php: <?php require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } ?> <!-- template.html --> <F3:repeat key= “{@key}” index="{@comment}" group="{@comments}"> <p>{@comment.id}</p> </F3:repeat>
//index.php: <?php require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } ?> <!-- template.html --> <F3:repeat key= “{@key}” index="{@comment}" group="{@comments}"> <p>{@comment.id}</p> </F3:repeat>
//index.php: <?php require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } ?> <!-- template.html --> <F3:repeat key= “{@key}” index="{@comment}" group="{@comments}"> <p>{@comment.id}</p> </F3:repeat>
//index.php: <?php require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } ?> <!-- template.html --> <F3:repeat key= “{@key}” index="{@comment}" group="{@comments}"> <p>{@comment.id}</p> </F3:repeat>
//index.php: <?php require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } ?> <!-- template.html --> <F3:repeat key= “{@key}” index="{@comment}" group="{@comments}"> <p>{@comment.id}</p> </F3:repeat>
//index.php: <?php require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } ?> <!-- template.html --> <F3:repeat key= “{@key}” index="{@comment}" group="{@comments}"> <p>{@comment.id}</p> </F3:repeat>
//index.php: <?php require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } ?> <!-- template.html --> <F3:repeat key= “{@key}” index="{@comment}" group="{@comments}"> <p>{@comment.id}</p> </F3:repeat>
//index.php: <?php require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } ?> <!-- template.html --> <F3:repeat key= “{@key}” index="{@comment}" group="{@comments}"> <p>{@comment.id}</p> </F3:repeat>
//index.php: <?php require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; // comments $all_comments = $comments -> find ( ) ; // F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } ?> <!-- template.html --> <F3:repeat key= “{@key}” index="{@comment}" group="{@comments}"> <p>{@comment.id}</p> </F3:repeat>
< form method = 'post' action = '{PARAMS.0}' > <!-- PARAMS.0 --> < input type = 'text' name = 'author' / > < input type = 'text' name = 'comment' / > < input type = 'submit' / > < / form >
< form method = 'post' action = '{PARAMS.0}' > <!-- PARAMS.0 --> < input type = 'text' name = 'author' / > < input type = 'text' name = 'comment' / > < input type = 'submit' / > < / form >
< form method = 'post' action = '{PARAMS.0}' > <!-- PARAMS.0 --> < input type = 'text' name = 'author' / > < input type = 'text' name = 'comment' / > < input type = 'submit' / > < / form >
< form method = 'post' action = '{PARAMS.0}' > <!-- PARAMS.0 --> < input type = 'text' name = 'author' / > < input type = 'text' name = 'comment' / > < input type = 'submit' / > < / form >
< form method = 'post' action = '{PARAMS.0}' > <!-- PARAMS.0 --> < input type = 'text' name = 'author' / > < input type = 'text' name = 'comment' / > < input type = 'submit' / > < / form >
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; $all_comments = $comments -> find ( ) ; F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } F3 :: route ( 'POST /' , 'savecomment' ) ; function savecomment ( ) { $comments = new Axon ( 'comment' ) ; $comments -> copyFrom ( 'REQUEST' ) ; /* , . copyFrom $_REQUEST */ /* ... * */ $comments -> save ( ) ; // $F3 :: reroute ( '/' ) ; // } ?>
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; $all_comments = $comments -> find ( ) ; F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } F3 :: route ( 'POST /' , 'savecomment' ) ; function savecomment ( ) { $comments = new Axon ( 'comment' ) ; $comments -> copyFrom ( 'REQUEST' ) ; /* , . copyFrom $_REQUEST */ /* ... * */ $comments -> save ( ) ; // $F3 :: reroute ( '/' ) ; // } ?>
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; $all_comments = $comments -> find ( ) ; F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } F3 :: route ( 'POST /' , 'savecomment' ) ; function savecomment ( ) { $comments = new Axon ( 'comment' ) ; $comments -> copyFrom ( 'REQUEST' ) ; /* , . copyFrom $_REQUEST */ /* ... * */ $comments -> save ( ) ; // $F3 :: reroute ( '/' ) ; // } ?>
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; $all_comments = $comments -> find ( ) ; F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } F3 :: route ( 'POST /' , 'savecomment' ) ; function savecomment ( ) { $comments = new Axon ( 'comment' ) ; $comments -> copyFrom ( 'REQUEST' ) ; /* , . copyFrom $_REQUEST */ /* ... * */ $comments -> save ( ) ; // $F3 :: reroute ( '/' ) ; // } ?>
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; $all_comments = $comments -> find ( ) ; F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } F3 :: route ( 'POST /' , 'savecomment' ) ; function savecomment ( ) { $comments = new Axon ( 'comment' ) ; $comments -> copyFrom ( 'REQUEST' ) ; /* , . copyFrom $_REQUEST */ /* ... * */ $comments -> save ( ) ; // $F3 :: reroute ( '/' ) ; // } ?>
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; $all_comments = $comments -> find ( ) ; F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } F3 :: route ( 'POST /' , 'savecomment' ) ; function savecomment ( ) { $comments = new Axon ( 'comment' ) ; $comments -> copyFrom ( 'REQUEST' ) ; /* , . copyFrom $_REQUEST */ /* ... * */ $comments -> save ( ) ; // $F3 :: reroute ( '/' ) ; // } ?>
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; $all_comments = $comments -> find ( ) ; F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } F3 :: route ( 'POST /' , 'savecomment' ) ; function savecomment ( ) { $comments = new Axon ( 'comment' ) ; $comments -> copyFrom ( 'REQUEST' ) ; /* , . copyFrom $_REQUEST */ /* ... * */ $comments -> save ( ) ; // $F3 :: reroute ( '/' ) ; // } ?>
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; $all_comments = $comments -> find ( ) ; F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } F3 :: route ( 'POST /' , 'savecomment' ) ; function savecomment ( ) { $comments = new Axon ( 'comment' ) ; $comments -> copyFrom ( 'REQUEST' ) ; /* , . copyFrom $_REQUEST */ /* ... * */ $comments -> save ( ) ; // $F3 :: reroute ( '/' ) ; // } ?>
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; $all_comments = $comments -> find ( ) ; F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } F3 :: route ( 'POST /' , 'savecomment' ) ; function savecomment ( ) { $comments = new Axon ( 'comment' ) ; $comments -> copyFrom ( 'REQUEST' ) ; /* , . copyFrom $_REQUEST */ /* ... * */ $comments -> save ( ) ; // $F3 :: reroute ( '/' ) ; // } ?>
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; $all_comments = $comments -> find ( ) ; F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } F3 :: route ( 'POST /' , 'savecomment' ) ; function savecomment ( ) { $comments = new Axon ( 'comment' ) ; $comments -> copyFrom ( 'REQUEST' ) ; /* , . copyFrom $_REQUEST */ /* ... * */ $comments -> save ( ) ; // $F3 :: reroute ( '/' ) ; // } ?>
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; $all_comments = $comments -> find ( ) ; F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } F3 :: route ( 'POST /' , 'savecomment' ) ; function savecomment ( ) { $comments = new Axon ( 'comment' ) ; $comments -> copyFrom ( 'REQUEST' ) ; /* , . copyFrom $_REQUEST */ /* ... * */ $comments -> save ( ) ; // $F3 :: reroute ( '/' ) ; // } ?>
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; $all_comments = $comments -> find ( ) ; F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } F3 :: route ( 'POST /' , 'savecomment' ) ; function savecomment ( ) { $comments = new Axon ( 'comment' ) ; $comments -> copyFrom ( 'REQUEST' ) ; /* , . copyFrom $_REQUEST */ /* ... * */ $comments -> save ( ) ; // $F3 :: reroute ( '/' ) ; // } ?>
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; $all_comments = $comments -> find ( ) ; F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } F3 :: route ( 'POST /' , 'savecomment' ) ; function savecomment ( ) { $comments = new Axon ( 'comment' ) ; $comments -> copyFrom ( 'REQUEST' ) ; /* , . copyFrom $_REQUEST */ /* ... * */ $comments -> save ( ) ; // $F3 :: reroute ( '/' ) ; // } ?>
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; $all_comments = $comments -> find ( ) ; F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } F3 :: route ( 'POST /' , 'savecomment' ) ; function savecomment ( ) { $comments = new Axon ( 'comment' ) ; $comments -> copyFrom ( 'REQUEST' ) ; /* , . copyFrom $_REQUEST */ /* ... * */ $comments -> save ( ) ; // $F3 :: reroute ( '/' ) ; // } ?>
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; $all_comments = $comments -> find ( ) ; F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } F3 :: route ( 'POST /' , 'savecomment' ) ; function savecomment ( ) { $comments = new Axon ( 'comment' ) ; $comments -> copyFrom ( 'REQUEST' ) ; /* , . copyFrom $_REQUEST */ /* ... * */ $comments -> save ( ) ; // $F3 :: reroute ( '/' ) ; // } ?>
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; $all_comments = $comments -> find ( ) ; F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } F3 :: route ( 'POST /' , 'savecomment' ) ; function savecomment ( ) { $comments = new Axon ( 'comment' ) ; $comments -> copyFrom ( 'REQUEST' ) ; /* , . copyFrom $_REQUEST */ /* ... * */ $comments -> save ( ) ; // $F3 :: reroute ( '/' ) ; // } ?>
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; $all_comments = $comments -> find ( ) ; F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } F3 :: route ( 'POST /' , 'savecomment' ) ; function savecomment ( ) { $comments = new Axon ( 'comment' ) ; $comments -> copyFrom ( 'REQUEST' ) ; /* , . copyFrom $_REQUEST */ /* ... * */ $comments -> save ( ) ; // $F3 :: reroute ( '/' ) ; // } ?>
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; $all_comments = $comments -> find ( ) ; F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } F3 :: route ( 'POST /' , 'savecomment' ) ; function savecomment ( ) { $comments = new Axon ( 'comment' ) ; $comments -> copyFrom ( 'REQUEST' ) ; /* , . copyFrom $_REQUEST */ /* ... * */ $comments -> save ( ) ; // $F3 :: reroute ( '/' ) ; // } ?>
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; $all_comments = $comments -> find ( ) ; F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } F3 :: route ( 'POST /' , 'savecomment' ) ; function savecomment ( ) { $comments = new Axon ( 'comment' ) ; $comments -> copyFrom ( 'REQUEST' ) ; /* , . copyFrom $_REQUEST */ /* ... * */ $comments -> save ( ) ; // $F3 :: reroute ( '/' ) ; // } ?>
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; $all_comments = $comments -> find ( ) ; F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } F3 :: route ( 'POST /' , 'savecomment' ) ; function savecomment ( ) { $comments = new Axon ( 'comment' ) ; $comments -> copyFrom ( 'REQUEST' ) ; /* , . copyFrom $_REQUEST */ /* ... * */ $comments -> save ( ) ; // $F3 :: reroute ( '/' ) ; // } ?>
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; $all_comments = $comments -> find ( ) ; F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } F3 :: route ( 'POST /' , 'savecomment' ) ; function savecomment ( ) { $comments = new Axon ( 'comment' ) ; $comments -> copyFrom ( 'REQUEST' ) ; /* , . copyFrom $_REQUEST */ /* ... * */ $comments -> save ( ) ; // $F3 :: reroute ( '/' ) ; // } ?>
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; $all_comments = $comments -> find ( ) ; F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } F3 :: route ( 'POST /' , 'savecomment' ) ; function savecomment ( ) { $comments = new Axon ( 'comment' ) ; $comments -> copyFrom ( 'REQUEST' ) ; /* , . copyFrom $_REQUEST */ /* ... * */ $comments -> save ( ) ; // $F3 :: reroute ( '/' ) ; // } ?>
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; $all_comments = $comments -> find ( ) ; F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } F3 :: route ( 'POST /' , 'savecomment' ) ; function savecomment ( ) { $comments = new Axon ( 'comment' ) ; $comments -> copyFrom ( 'REQUEST' ) ; /* , . copyFrom $_REQUEST */ /* ... * */ $comments -> save ( ) ; // $F3 :: reroute ( '/' ) ; // } ?>
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; $all_comments = $comments -> find ( ) ; F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } F3 :: route ( 'POST /' , 'savecomment' ) ; function savecomment ( ) { $comments = new Axon ( 'comment' ) ; $comments -> copyFrom ( 'REQUEST' ) ; /* , . copyFrom $_REQUEST */ /* ... * */ $comments -> save ( ) ; // $F3 :: reroute ( '/' ) ; // } ?>
require_once ( 'F3/F3.php' ) ; F3 :: set ( 'AUTOLOAD' , 'autoload/' ) ; F3 :: set ( 'DB' , array ( 'dsn' => 'sqlite:guestbook.sqlite' ) ) ; F3 :: route ( 'GET /' , 'home' ) ; function home ( ) { $comments = new Axon ( 'comments' ) ; $all_comments = $comments -> find ( ) ; F3 :: set ( 'comments' , $all_comments ) ; F3 :: serve ( 'template.html' ) ; } F3 :: route ( 'POST /' , 'savecomment' ) ; function savecomment ( ) { $comments = new Axon ( 'comment' ) ; $comments -> copyFrom ( 'REQUEST' ) ; /* , . copyFrom $_REQUEST */ /* ... * */ $comments -> save ( ) ; // $F3 :: reroute ( '/' ) ; // } ?>
Source: https://habr.com/ru/post/103167/
All Articles