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
orm:convert-mapping | |
annotation module/Delivery/src/ --namespace="Delivery\Entity\\" --from-database |
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 MeuModulo; | |
use Zend\ModuleManager\ModuleManager; | |
class Module{ | |
public function init(ModuleManager $moduleManager){ | |
$sharedEvents = $moduleManager->getEventManager() |
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
return array( | |
'doctrine' => array( | |
'authentication' => array( | |
'orm_default' => array( | |
'object_manager' => 'Doctrine\ORM\EntityManager', | |
'identity_class' => 'Application\Entity\User', | |
'identity_property' => 'email', | |
'credential_property' => 'password', | |
), | |
), |
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 Application; | |
use Zend\Authentication\AuthenticationService; | |
class Module | |
{ | |
public function getServiceConfig() | |
{ |
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 Zend\Form\Annotation; | |
/** | |
* @Annotation\Name("Nome do form") | |
* | |
* | |
* Exemplo de text | |
* @Annotation\Type("Zend\Form\Element\Text") |
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 | |
add_action('init', 'type_post_turmas'); | |
function type_post_turmas() { | |
$labels = array( | |
'name' => _x('Turmas', 'post type general name'), | |
'singular_name' => _x('Turma', 'post type singular name') | |
); | |
$args = 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 | |
// Carregar as classes ZEND sem require_once | |
require_once 'Zend/Loader/Autoloader.php'; | |
$loader = Zend_Loader_Autoloader::getInstance(); | |
$loader->setFallbackAutoloader(true); | |
//Obtendo o adaptador | |
$dbAdapter = Zend_Db::factory('adaptador', | |
array('username' => 'usuario', |
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
git diff --stat origin/master master |
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
fc = jQuery('#form-contato'); | |
fc.attr('data-url'); | |
jQuery.ajax(fc.attr('data-url')) | |
.done(function(content){ | |
cf = jQuery('.awpcp-reply-to-ad-form', content); | |
cf.attr('action', fc.attr('data-url')); | |
fc.html(cf); | |
}); |
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
<!--TESTE DE ITENS NO CARRINHO--> | |
<div class="panel panel-default"> | |
<div class="panel-heading"><h4>Banners | Lonas - Lona Fosca | Metro² | 4x0 | 1 un.</h4></div> | |
<div class="panel-body"> | |
<form id="remove_0" action="/carrinho/remover" method="post" class="pull-right"> | |
<input type="hidden" name="id" value="0"> | |
<a class="cart_quantity_delete" href="javascript:void(0); return false;" onclick="$('#remove_0').submit();"><i class="fa fa-times-circle"></i></a> | |
</form> | |
<p> | |
Prazo de Produção: 2 dias úteis |