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 | |
/** | |
* array_merge_recursive does indeed merge arrays, but it converts values with duplicate | |
* keys to arrays rather than overwriting the value in the first array with the duplicate | |
* value in the second array, as array_merge does. I.e., with array_merge_recursive, | |
* this happens (documented behavior): | |
* | |
* array_merge_recursive(array('key' => 'org value'), array('key' => 'new value')); | |
* => array('key' => array('org value', 'new value')); |
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
// global array | |
array = new Array(); | |
Selenium.prototype.doStoreCellValue = function(variableName,cellPosition) | |
{ | |
var xy = cellPosition.split(","); | |
var x = xy[0] - 1; | |
var y = xy[1] - 1; | |
var value = array[x][y]; | |
storedVars[variableName] = value; |
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 App\Controller; | |
use EasyCorp\Bundle\EasyAdminBundle\Controller\AdminController as BaseAdminController; | |
/** | |
* General controller for administrating all entities | |
*/ | |
class AdminController extends BaseAdminController |
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
services: | |
My\Custom\Service: | |
class: My\Custom\Service | |
arguments: | |
- "@=service('My\\\\Custom\\\\Config').getCustomString()" | |
- !php/const My\Custom\ServiceConstants::MY_CONSTANT | |
- "@=container.hasParameter('some_param') ? parameter('some_param') : 'default_value'" |
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
doctrine_migrations: | |
dir_name: "%kernel.project_dir%/src/Migrations" | |
namespace: "App\\Migrations" | |
custom_template: "%kernel.project_dir%/src/Migrations/migration.tpl" |
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
{# this template is located in templates/bundles/EasyAdminBundle/default/layout.html.twig #} | |
{# pay attention to the "!" in front of the bundle name which tells symfony to use the core template #} | |
{% extends '@!EasyAdmin/default/layout.html.twig' %} | |
{% block head_javascript %} | |
{{ parent() }} | |
{% block application_javascript %}{% endblock application_javascript %} | |
{% endblock head_javascript %} |
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
{% trans_default_domain 'EasyAdminBundle' %} | |
{% set _paginator_request_parameters = _request_parameters|merge({'referer': null}) %} | |
{% if paginator.haveToPaginate %} | |
<div class="list-pagination"> | |
<div class="row"> | |
<div class="col-sm-3 hidden-xs list-pagination-counter"> | |
{{ 'paginator.counter'|trans({ '%start%': paginator.currentPageOffsetStart, '%end%': paginator.currentPageOffsetEnd, '%results%': paginator.nbResults})|raw }} | |
</div> |
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 appUrl = 'https://www.my-website.com'; | |
var app = { | |
currentUrl: appUrl, | |
initialize: function() { | |
document.addEventListener('deviceready', this.onDeviceReady.bind(this), false); | |
}, |
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 | |
$queryBuilder | |
->addSelect("(CASE WHEN entity.placedDate IS NULL THEN 1 ELSE 0 END) AS HIDDEN PLACED") | |
->orderBy('PLACED', 'DESC') | |
->addOrderBy('entity.placedDate', 'DESC'); | |
OlderNewer