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
<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"> | |
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 | |
$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!' | |
)); |
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
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 |
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 | |
use Phinx\Migration\AbstractMigration; | |
class PrimeiraMigration extends AbstractMigration | |
{ | |
/** | |
* Change Method. | |
* | |
* Write your reversible migrations using this method. |
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 App\Migrations; | |
use Phinx\Seed\AbstractSeed; | |
use Symfony\Component\Filesystem\Filesystem; | |
use Symfony\Component\Filesystem\Exception\FileNotFoundException; | |
class AbstractSeedFromJson extends AbstractSeed | |
{ |
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
[RemotingService] | |
public class BancosController | |
{ | |
private IBancoRepository _bancoRepository { get; set; } | |
public BancosController(IBancoRepository bancoRepository) | |
{ | |
_bancoRepository = bancoRepository; | |
} | |
} |
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
private readonly IBancoRepository _bancoRepository; | |
public BancosController() | |
{ | |
var repository = Global.container.GetInstance<IBancoRepository>(); | |
_bancoRepository = repository; | |
} |
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 App\View\Cell; | |
use Cake\View\Cell; | |
class NextEventCell extends Cell | |
{ | |
public function display() | |
{ | |
$this->loadModel("Events"); | |
$nextEvent = $this->Events->find()->where(['date >=' => date("Y-m-d")])->first(); | |
$this->set(compact('nextEvent')); |
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 if($nextEvent != null): ?> | |
<div class="black-panel"> | |
<h3><?= $nextEvent->name; ?></h3> | |
<span><?= $nextEvent->date->i18nFormat('d MMMM y'); ?></span> | |
<div class="countdown"> | |
<div class="countdown-timer"> | |
<span class="info-text"><span class="text-icon"></span><?= __("Countdown Till Start"); ?></span> | |
<h4 class="countdown-text" rel="<?= strtotime($nextEvent->date->format('Y-m-d H:i')); ?>"></h4> | |
</div> | |
<p><?= $nextEvent->description; ?></p> |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Check for missing plugins | |
required_plugins = %w(vagrant-winnfsd) | |
plugin_installed = false | |
required_plugins.each do |plugin| | |
unless Vagrant.has_plugin?(plugin) | |
system "vagrant plugin install #{plugin}" | |
plugin_installed = true |
OlderNewer