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
/** | |
* Extend the Ajax.Request object to add function to abort() current Ajax Request | |
* | |
* @source http://blog.pothoven.net/2007/12/aborting-ajax-requests-for-prototypejs.html | |
*/ | |
Object.extend(Ajax.Request.prototype, { | |
abort: function() { | |
// prevent and state change callbacks from being issued | |
this.transport.onreadystatechange = Prototype.emptyFunction; | |
// abort the XHR |
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 | |
/** | |
* Usage Examples | |
*/ | |
$flash_message = FlashMessage::getInstance(); | |
$flash_message->set('notice', 'This is a notice message'); | |
$flash_message->flash('This is a flash message'); | |
?> | |
<?php if ($flash_message->has('notice')) : ?> |
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
WARNING: "pear/PEAR_PackageFileManager" is deprecated in favor of "pear/PEAR_PackageFileManager2" | |
Did not download optional dependencies: phing/phingdocs, pear/VersionControl_SVN, pear/VersionControl_Git, pear/PhpDocumentor, pecl/Xdebug, pear/PEAR_PackageFileManager, pear/Services_Amazon_S3, pear/HTTP_Request2, pdepend/PHP_Depend, phpmd/PHP_PMD, phpunit/phpcpd, docblox/DocBlox, pear/PHP_CodeSniffer, use --alldeps to download automatically | |
phing/phing can optionally use package "phing/phingdocs" (version >= 2.4.9) | |
phing/phing can optionally use package "pear/VersionControl_SVN" (version >= 0.4.0) | |
phing/phing can optionally use package "pear/VersionControl_Git" (version >= 0.4.3) | |
phing/phing requires package "phpunit/PHPUnit" (version >= 3.6.0), installed version is 3.5.13 | |
phing/phing requires package "phpunit/PHP_CodeCoverage" (version >= 1.1.0), installed version is 1.0.4 | |
phing/phing can optionally use package "pear/PhpDocumentor" (version >= 1.4.0) | |
phing/phing can optionally use package "pecl/Xdebug" (versio |
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 Manhattan\Bundle\ContentBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* Manhattan\Bundle\ContentBundle\Entity\BasePage | |
* | |
* @ORM\Table(name="base_page") |
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 Manhattan\Bundle\GalleryBundle\Tests\Form; | |
use Symfony\Component\Form\FormFactory; | |
use Symfony\Component\Form\Extension\Core\CoreExtension; | |
use Manhattan\Bundle\GalleryBundle\Form\EventListener\EditFormSubscriber; | |
class EditFormSubscriberTest extends \PHPUnit_Framework_TestCase |
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 Your\Product\Bundle\Form\CommentType; | |
use Your\Product\Bundle\Form\UserType; | |
class CommentType extends AbstractType | |
{ | |
public function buildForm(FormBuilderInterface $builder, array $options) | |
{ |
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 Acme\DemoBundle\Form\DataTransformer; | |
use Doctrine\ORM\EntityManager; | |
use Doctrine\ORM\PersistentCollection; | |
use Doctrine\Common\Collections\ArrayCollection; | |
use Symfony\Component\Form\DataTransformerInterface; | |
use Symfony\Component\Form\Exception\TransformationFailedException; |
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
var antelopeApp = angular.module('antelopeApp', [ | |
'ngRoute', | |
'antelopeControllers' | |
]).config(function($interpolateProvider){ | |
$interpolateProvider.startSymbol('{[{').endSymbol('}]}'); | |
}); |
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 AppBundle\Composer; | |
use Composer\Script\Event; | |
use Symfony\Component\Process\Process; | |
/** | |
* Script for Running NPM as part of Composer Update | |
* |
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 AppBundle\Composer; | |
use Composer\Script\Event; | |
use Symfony\Component\Process\Process; | |
/** | |
* Script for Running NPM as part of Composer Update | |
* |
OlderNewer