Skip to content

Instantly share code, notes, and snippets.

View carlossg00's full-sized avatar

carlossg00 carlossg00

View GitHub Profile
@carlossg00
carlossg00 / formatter.md
Last active December 11, 2015 10:18
Sonata Formatte Bundle

Formato del texto

El formato de texto sigue el estándar conocido como 'markdown', de esta forma podemos dar formato a nuestras noticias de forma rápida:

Formateado Básico

Si deseamos marcar el texto con cursiva o negrita utilizaremos el siguiente marcado.

negrita

@carlossg00
carlossg00 / MainController.php
Created March 24, 2011 10:02
SimpleChat Using JQuery / Symfony2
<?php
namespace CSG\SimpleChatBundle\Controller;
use Symfony\Component\Form\FormFactory;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface;
use Doctrine\ORM\EntityManager;
<?php
namespace Acme\BlogBundle\Controller;
use Symfony\Component\DependencyInjection\ContainerAware;
use Symfony\Component\HttpFoundation\Response;
use Acme\BlogBundle\Entity\Post;
class DefaultController extends ContainerAware
{