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="actions clearfix"> | |
<div class="btns"> | |
<a class="btn btn-primary" href="/post/save" title="Criar Post"> | |
Criar Post | |
</a> | |
</div> | |
</div> | |
<h3>Lista de Posts</h3> | |
<table class="table table-striped table-bordered"> | |
<thead> |
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 echo $this->doctype(); ?> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<?php echo $this->headTitle('ZF2 '. $this->translate('Skeleton Application'))->setSeparator(' - ')->setAutoEscape(false) ?> | |
<?php echo $this->headMeta() | |
->appendName('viewport', 'width=device-width, initial-scale=1.0') | |
->appendHttpEquiv('X-UA-Compatible', 'IE=edge') |
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
'post' => array( | |
'type' => 'segment', | |
'options' => array( | |
'route' => '/post[/][:action][/:id]', | |
'constraints' => array( | |
'action' => '[a-zA-Z][a-zA-Z0-9_-]*', | |
'id' => '[0-9]+', | |
), | |
'defaults' => array( | |
'controller' => 'Application\Controller\Post', |
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 Application\Form; | |
use Zend\Form\Form; | |
class Post extends Form | |
{ | |
public function __construct() | |
{ | |
parent::__construct('post'); |
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 Application\Model; | |
use Zend\InputFilter\InputFilter; | |
use Zend\InputFilter\InputFilterAwareInterface; | |
use Zend\InputFilter\InputFilterInterface; | |
class Post implements InputFilterAwareInterface | |
{ |
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 Application\Controller; | |
use Zend\View\Model\ViewModel; | |
use Zend\Mvc\Controller\AbstractActionController; | |
use Application\Form\Post as PostForm; | |
use Application\Model\Post as PostModel; | |
/** | |
* Controlador que gerencia os posts |
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
Feature: Cálculo do total de receitas | |
In order to calcular o total de receitas da obra | |
As a usuário logado no sistema | |
I need visualizar o resultado do cálculo do total de receitas | |
Scenario: Venda de duas unidades | |
Given seja vendida uma unidade no valor de R$ 150.000,00 | |
And seja vendida uma unidade no valor de R$ 50.000,00 | |
When eu solicitar o cálculo do total de receitas | |
Then o sistema deve retornar o total de R$ 200.000,00 |
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
array(3) { | |
[0] => | |
array(1) { | |
'Money' => | |
array(1) { | |
[0] => | |
array(4) { | |
... | |
} | |
} |
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
sudo ln -s /Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl /usr/bin/subl |
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
{{ Form::open(['method' => 'DELETE', 'route' => ['articles.destroy', $article->id]]) }} | |
{{ Form::submit('Excluir', array('class' => 'btn btn-danger btn-xs', | |
'onclick'=>'javascript:return confirm(\'Tem certeza que deseja excluir este artigo?\')')) }} | |
{{ Form::close() }} |