View MinhaMigration.php
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 | |
use Phinx\Migration\AbstractMigration; | |
class PrimeiraMigration extends AbstractMigration | |
{ | |
/** | |
* Change Method. | |
* | |
* Write your reversible migrations using this method. |
View phinx.yml
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
paths: | |
migrations: %%PHINX_CONFIG_DIR%%/db/migrations | |
seeds: %%PHINX_CONFIG_DIR%%/db/seeds | |
environments: | |
default_migration_table: phinxlog | |
default_database: development | |
production: | |
adapter: mysql | |
host: localhost |
View mailgun.php
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 | |
$mgClient = new Mailgun('YOUR_API_KEY'); | |
$domain = "YOUR_DOMAIN_NAME"; | |
$result = $mgClient->sendMessage($domain, array( | |
'from' => 'Remetente <mailgun@YOUR_DOMAIN_NAME>', | |
'to' => 'Destinatario <YOU@YOUR_DOMAIN_NAME>', | |
'subject' => 'Hello', | |
'text' => 'Testing some Mailgun awesomness!' | |
)); |
View index.php
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
<div class="row"> | |
<div class="col-md-12"> | |
<div class="panel mb10"> | |
<div class="panel-heading"> | |
<div class="panel-title"> | |
<i class="fa fa-picture-o"></i> <?PHP echo $title_for_layout . ': ' . $empresaLogada['Empresa']['nome_fantasia']; ?> | |
</div> | |
</div> | |
<div class="panel-body"> | |
NewerOlder