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
1. Install the static qt: | |
brew install https://raw.github.com/npinchot/homebrew/wkhtmltopdf_static_qt/Library/Formula/qt-wkhtmltopdf.rb | |
2. Overwrite/Create the file /usr/local/Library/Formula/wkhtmltopdf.rb | |
3. brew install wkhtmltopdf |
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
/* | |
Copy the original file: | |
vendor/oro/platform/src/Oro/Bundle/DataGridBundle/Resources/public/js/app/components/datagrid-component.js | |
to your bundle folder (e.g. src/Acme/Bundle/MyBundle/Resources/public/js/app/components/datagrid-component.js) | |
Add the custom code within the method build() as follows: | |
*/ | |
/** | |
* Build grid | |
*/ |
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 | |
// src/Acme/Bundle/AcmeBundle/Controller/AutocompleteController.php | |
namespace Acme\Bundle\AcmeBundle\Controller; | |
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; | |
use Symfony\Component\HttpKernel\Exception\HttpException; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpFoundation\JsonResponse; |
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
// src/Acme/Bundle/AcmeBundle/Resources/public/js/common.js | |
/* | |
You need to run the following commands at Symfony root directory to include this file to web/bundles/acme/js: | |
php app/console assets:install; php app/console assetic:dump | |
*/ | |
define(['jquery'], | |
function($) { | |
$.fn.extend({ |
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 | |
// src/Acme/Bundle/AcmeBundle/EventListener/BaseOrmRelationDatagridListener.php | |
namespace Acme/Bundle/AcmeBundle\EventListener; | |
use Doctrine\ORM\QueryBuilder; | |
use Oro\Bundle\DataGridBundle\Datagrid\ParameterBag; | |
use Oro\Bundle\DataGridBundle\Datasource\Orm\OrmDatasource; |