This file contains 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
Mantenha o canal organizado | |
1. Poste cada assunto em seu devido canal | |
- #anuncios: Você deve postar apenas anúncios para serviços e produtos (pagos), como cursos por exemplo | |
- #dicas: Artigos, produtos e serviços (free), oportunidades, você nao pode promover promoções aqui, isso é anuncio | |
- #dúvidas: canal exclusivo para dúvidas sobre CakePHP | |
- #feeds: Integração com RSS de blogs, peça a um administrador cadastrar o seu | |
- #hospedagens: Para assuntos relacionados a hospedagem, vps, configurações, emfim... | |
- #repos: Integração com repositórios no GitHub, pela a um administrador para cadastrar o seu | |
- #off-topic: Assuntos diversos |
This file contains 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
public function getAll() | |
{ | |
$data = []; | |
foreach ($this as $k=>$v) { | |
$first = (substr($k, 0, 1)); | |
if ($first !== '_') | |
$data[$k]=$v; | |
} |
This file contains 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
/users/ | |
/users/2 | |
GET | |
POST | |
PUT | |
DELETE | |
- /users/2 - GET - Retornar 1 usuário | |
- /users/ - GET - Retornar varios usuários |
This file contains 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
var my_app = angular.module('myApp', [/* dependencies */]); | |
my_app.config(function($httpProvider) { | |
$httpProvider.defaults.xsrfHeaderName = 'X-CSRFToken'; | |
}); |
This file contains 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
function tirarAcentos($string){ | |
return preg_replace(array("/(á|à|ã|â|ä)/","/(Á|À|Ã|Â|Ä)/","/(é|è|ê|ë)/","/(É|È|Ê|Ë)/","/(í|ì|î|ï)/","/(Í|Ì|Î|Ï)/","/(ó|ò|õ|ô|ö)/","/(Ó|Ò|Õ|Ô|Ö)/","/(ú|ù|û|ü)/","/(Ú|Ù|Û|Ü)/","/(ñ)/","/(Ñ)/"),explode(" ","a A e E i I o O u U n N"),$string); | |
} | |
echo tirarAcentos($string); |
This file contains 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 | |
namespace Core\BancoDeDados; | |
class BancoDeDados | |
{ | |
private $config, $pdo; | |
public function __construct(Array $config) | |
{ | |
$this->config = $config; | |
} | |
public function conecta() |
This file contains 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
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ /index.php?/$1 [L] |
This file contains 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
$path_info = (isset($_SERVER['PATH_INFO']))? $_SERVER['PATH_INFO']: '/'; | |
$path = parse_url($path_info, PHP_URL_PATH); | |
return $this->router_map->match($path, $_SERVER); |
This file contains 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
custo_variável | |
|_tipo1 | |
|_tipo2 | |
|_tributacao | |
custo_fixo | |
|_tipo1 | |
|_tipo2 | |
desconto |
This file contains 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
# editorconfig.org | |
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |