This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(!function_exists('apache_get_modules') ){ phpinfo(); exit; } | |
$res = 'Módulo não disponível'; | |
if(in_array('mod_rewrite',apache_get_modules())) | |
$res = 'Módulo disponível'; | |
?> | |
<html> | |
<head> | |
<title>Verificando disponibilidade do mod_rewrite!</title> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// FRAMEWORK F3 | |
$f3 = require('lib/base.php'); | |
// 01) Hello World | |
$f3->route('GET /', | |
function() { | |
echo 'Hello, world!'; | |
} | |
); | |
$f3->run(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable rewrite engine and route requests to framework | |
RewriteEngine On | |
# Some servers require you to specify the `RewriteBase` directive | |
# In such cases, it should be the path (relative to the document root) | |
# containing this .htaccess file | |
# RewriteBase / | |
RewriteRule ^(tmp)\/|\.ini$ - [R=404] | |
RewriteCond %{REQUEST_FILENAME} !-l | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// FRAMEWORK F3 | |
$f3 = require('../../lib/base.php'); | |
class webPage { | |
function display(){ | |
echo "Eu não posso instanciar a um objeto"; | |
} | |
} | |
class user { | |
public static function greet($f3, $args){ // $args são to dipo Vetor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// FRAMEWORK F3 | |
$f3 = require('../../lib/base.php'); | |
// 03-Routes_and_Tokens, | |
$f3->route('GET /', | |
function() { | |
echo 'Cervejas!!!'; | |
} | |
); | |
$f3->route('GET /brewGet/@count', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Bullfaitelo Form test</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> | |
</head> | |
<body> | |
<div class="container"> | |
<h1>Bullfaitelo Form test</h1> | |
<hr /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Bullfaitelo Form test</title> | |
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> | |
</head> | |
<body> | |
<div class=”container”> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Bullfaitelo Form test</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> | |
</head> | |
<body> | |
<div class="container"> | |
<h1>Bullfaitelo Form test</h1> | |
<hr /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Bullfaitelo Form test</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> | |
</head> | |
<body> | |
<div class="container"> | |
<h1>Bullfaitelo Form test</h1> | |
<hr /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Bullfaitelo Form test</title> | |
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> | |
</head> | |
<body> | |
<div class=”container”> |
OlderNewer