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 | |
class People { | |
public $name; | |
public $birth; | |
} | |
$dad = new People(); | |
$dad->name = 'Gilvan Costa'; | |
$dad->birth = new Datetime('26-03-1971', new DateTimeZone('America/Recife')); |
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 | |
/** | |
* Convertendo textos para urlamigavel | |
* @param type $texto | |
* @return String | |
*/ | |
function toamigavel($texto) { | |
$texto = mb_strtolower($texto, 'UTF-8'); |
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 App\View; | |
use Cake\View\View; | |
use Cake\Event\Event; | |
class AppView extends View | |
{ |
NewerOlder