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 | |
// ... | |
function eg_add_rewrite_rules() | |
{ | |
global $wp_rewrite; | |
$new_rules = array( | |
'viagens/[^/]+/perguntas-frequentes/?$' => 'index.php?page_id=33', |
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 | |
// No controller | |
public function facebookLogin() { | |
$facebook = new Facebook(array( | |
'appId' => 'SEU ID', | |
'secret' => 'SEU SECRET', | |
)); | |
$loginUrl = $facebook->getLoginUrl(array( |
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 | |
// app/Config/database.php | |
public $wordpress = array( | |
'datasource' => 'Database/Mysql', | |
'persistent' => false, | |
'host' => 'localhost', | |
'login' => 'root', | |
'password' => 'root', |
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
Isto é realizando uma chamada com o javascript convencional | |
<script> | |
$.ajax({ | |
type:"POST", | |
url:link, | |
data:dados, | |
dataType : 'json', | |
success:function(data){ | |
console.log('e retornou: '+data); | |
if(data==0){ |
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
<!-- Cenário 1 - Estrutura em que a rolagem do scroll funciona --> | |
<div class="row"> | |
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12"> | |
<br /> | |
<div class="content"></div> | |
</div> | |
</div> | |
<!-- Cenário 1 - Estrutura em que a rolagem do scroll funciona --> | |
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 | |
/** | |
* Index | |
* | |
* The Front Controller for handling every request | |
* | |
* PHP 5 | |
* | |
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) |
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 | |
namespace tableless\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
use Zend\Stdlib\Hydrator; | |
use Zend\Math\Rand; | |
use Zend\Crypt\Key\Derivation\Pbkdf2; | |
/** |
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 -r "readfile('https://getcomposer.org/installer');" | php |
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
curl -sS https://getcomposer.org/installer | php |
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
{ | |
"name": "Finanças Pessoais", | |
"description": "Uma API para gerenciamento de finanças pessoais", | |
"authors": [ | |
{ | |
"name": "Andre Cardoso", | |
"email": "[email protected]" | |
} | |
], | |
"require": { |