Skip to content

Instantly share code, notes, and snippets.

View Ziiweb's full-sized avatar

Javier Garcia Ziiweb

View GitHub Profile
$(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){
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
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
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
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 {
{% 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 %}
$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();
<?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;
<?php
class AuthenticationHandler
implements AuthenticationSuccessHandlerInterface,
AuthenticationFailureHandlerInterface
{
public function onAuthenticationSuccess(Request $request, TokenInterface $token)
{
if ($request->isXmlHttpRequest()) {
class AuthenticationHandler
implements AuthenticationSuccessHandlerInterface,
AuthenticationFailureHandlerInterface
{
public function onAuthenticationSuccess(Request $request, TokenInterface $token)
{
if ($request->isXmlHttpRequest()) {
$result = array('success' => true);