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
$(window).scroll(function() { | |
if($(window).scrollTop() == 319) | |
{ | |
$.ajax({ | |
type: 'GET', | |
url: 'http://procom/app_dev.php/productos/moviles', | |
success: function(response) { | |
$.each(response, function(key, value){ |
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
select s from project\backendBundle\Entity\Subitem s | |
JOIN s.brand b | |
SELECT b.name | |
WHERE s.name LIKE :subitemName | |
AND b.name LIKE :subitemBrand |
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
select s from project\backendBundle\Entity\Subitem s | |
JOIN s.brand b | |
SELECT b.nombre | |
WHERE s.nombre LIKE :subitemName | |
AND b.nombre LIKE :subitemBrand |
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
SELECT s FROM Project\BackendBundle\Entity\Subitem s | |
JOIN s.brand b | |
SELECT s FROM Project\BackendBundle\Entity\Brand b | |
WHERE s.nombre LIKE :subitemName | |
AND b.nombre LIKE :subitemBrand |
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
body header .nav-content nav { | |
background: none repeat scroll 0 0 #332f59; | |
margin: 0 auto; | |
width: 1080px; | |
} | |
body header .nav-content nav > ul { | |
list-style: outside none none; | |
padding: 0; | |
} | |
body header .nav-content nav > ul > li { |
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
{% block stylesheets %} | |
{% stylesheets filter="compass, yui_css" "@ProjectFrontendBundle/Resources/assets/css/main.scss" "@ProjectBackendBundle/Resources/assets/css/item_new.scss" %} | |
<link rel="stylesheet" href="{{ asset_url }}" /> | |
{% endstylesheets %} | |
{% endblock %} | |
{% extends 'ProjectBackendBundle::layout.html.twig' %} | |
{% block content %} |
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
$queryBuilder = $this->getEntityManager() | |
->createQueryBuilder() | |
->addSelect('category') | |
->from('AcmeVideoBundle:Video', 'video') | |
->leftJoin('video.category', 'category') | |
->groupBy('category.id') | |
->having('COUNT(video.id) > 1000') | |
->orderBy('category.name', 'ASC') | |
->getQuery(); |
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 Project\FrontendBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpFoundation\JsonResponse; | |
use Project\BackendBundle\Form\PedidoType; | |
use Project\BackendBundle\Entity\Pedido; | |
use Project\BackendBundle\Entity\PedidoSubitem; |
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 AuthenticationHandler | |
implements AuthenticationSuccessHandlerInterface, | |
AuthenticationFailureHandlerInterface | |
{ | |
public function onAuthenticationSuccess(Request $request, TokenInterface $token) | |
{ | |
if ($request->isXmlHttpRequest()) { |
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
class AuthenticationHandler | |
implements AuthenticationSuccessHandlerInterface, | |
AuthenticationFailureHandlerInterface | |
{ | |
public function onAuthenticationSuccess(Request $request, TokenInterface $token) | |
{ | |
if ($request->isXmlHttpRequest()) { | |
$result = array('success' => true); |