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
{% block collection_widget %} | |
{% spaceless %} | |
<div class="collection"> | |
{% if prototype is defined %} | |
{% set attr = attr|merge({'data-prototype': block('collection_item_widget') }) %} | |
{% endif %} | |
<div {{ block('widget_container_attributes') }}> | |
{{ form_errors(form) }} | |
<ul> | |
{% for rows in form %} |
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
<div class="grid_4"> | |
<div class="da-panel"> | |
<div class="da-panel-header"> | |
<span class="da-panel-title"> | |
<img src="{{ asset('bundles/vlabslpapadmin/images/icons/black/16/list.png') }}" /> | |
{{ block('title') }} | |
</span> | |
</div> | |
<div class="da-panel-toolbar top"> | |
{{ block('toolbar') }} |
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 | |
function utf8_urldecode($str) { | |
$str = preg_replace("/%u([0-9a-f]{3,4})/i","&#x\\1;",urldecode($str)); | |
return html_entity_decode($str,null,'UTF-8');; | |
} | |
// Main | |
$options = getopt('de'); |
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
services: | |
twig.extension.text: | |
class: Twig_Extensions_Extension_Text | |
tags: | |
- { name: twig.extension } | |
twig.extension.debug: | |
class: Twig_Extensions_Extension_Debug | |
tags: | |
- { name: twig.extension } |
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
vim /etc/init.d/firewall | |
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: firewall | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 |
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
use Symfony\Component\Form\Extension\Core\CoreExtension; | |
use Vlabs\MediaBundle\Form\Type\FileType; | |
use Vlabs\MediaBundle\Handler\MediaHandlerInterface; | |
class TypeExtensionTest extends CoreExtension | |
{ | |
private $handler; | |
public function __construct(MediaHandlerInterface $handler) | |
{ |
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 Vlabs\MediaBundle\Adapter; | |
use Doctrine\Common\EventArgs; | |
interface AdapterInterface | |
{ | |
/** | |
* Gets the mapped object from the event arguments. |
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 Vlabs\MediaBundle\Form\Type; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\OptionsResolver\OptionsResolverInterface; | |
use Symfony\Component\Form\FormInterface; | |
use Symfony\Component\Form\FormView; | |
use Vlabs\MediaBundle\Form\DataTransformer\BaseFileToStringTransformer; |
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 | |
/* | |
* This class will give us a simple interface to interact with Datatables | |
* | |
* Meant to work with Datatables v1.9 | |
* | |
* DO NOT FORGET TO ADD A GET() METHOD TO YOUR ENTITIES... | |
* |
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 | |
/* | |
* This class will give us a simple interface to interact with Datatables | |
* | |
* Meant to work with Datatables v1.9 | |
* | |
* DO NOT FORGET TO ADD A GET() METHOD TO YOUR ENTITIES... | |
* |
OlderNewer