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
-- Para deixar o nome das tabelas em CamelCase, coloque a seguinte linha no mysql.ini: | |
-- lower_case_table_names = 2 | |
/* ****************************** */ | |
/* DDL - Data Definition Language */ | |
/* ****************************** */ | |
/* Criando banco de dados com codificação e colagem correta */ | |
CREATE DATABASE cadastro |
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 | |
/** | |
* Arquivo para conexão do BD | |
*/ | |
// Setando variáveis do BD | |
$dbName = 'nome_do_bd'; | |
$host = 'localhost'; | |
$user = 'root'; | |
$pass = ''; |
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
/** | |
* Move o scroll para o primeiro alvo encontrado | |
* Ref.: https://gist.github.com/szagot/c0ed8de129e12024fb9091bce2fcae28 | |
* Exemplo (vide índice): http://wiki.tmw.com.br/08-autenticacao-da-api#fluxo | |
* | |
* Obs.: Necessita de jQuery: https://jquery.com/ | |
* | |
* Exemplos de uso: | |
* // Vai até o topo da página em meio segundo | |
* scrollTo(); |
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
.... | |
"zendframework/zend-stdlib": "~2.7.0", | |
"zendframework/zend-servicemanager": "~2.7.3", | |
"doctrine/doctrine-orm-module": "0.10.0", | |
.... |