public function __construct($code, $class, $baseControllerName)
{
parent::__construct($code, $class, $baseControllerName);
if (!$this->hasRequest()) {
$this->datagridValues = array(
'_page' => 1,
'_sort_order' => 'DESC', // sort direction
'_sort_by' => 'id' // field name
import android.content.Context; | |
import android.graphics.Bitmap; | |
import android.graphics.Bitmap.Config; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Paint; | |
import android.graphics.PorterDuff.Mode; | |
import android.graphics.PorterDuffXfermode; | |
import android.graphics.Rect; |
http://stackoverflow.com/questions/20667761/composer-killed-while-updating
What you should do is:
Run composer update in a local environment
Upload/git push the composer.lock file
Run composer install on the live server
There was a problem in sonata admin, in list fields and in form fields (in this case when using sonata_type_datetime_picker), the hour was different from the hour of the uploaded element. It was fixed setting the configuration of the default time zone of sonata_intl:
sonata_intl:
timezone:
default: America/Bogota
This is a temporal fix. If the app has to be global it would be necessary to set several timezones, or to try another fix.
Use WebView:
<WebView
android:id="@+id/terms_conditions"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
In strings.xml:
Use createNamedBuilder, for instance:
$formplace = $this->get('form.factory')->createNamedBuilder('locationform', 'form', $place, array())
->setAction($this->generateUrl('booster_bici_reg_clubes'))
->setMethod('GET')
->add('place', 'auto_place', array('label' => 'Filtrar por ubicación'))
->add('submit','submit',array('label' => 'Buscar'))
->getForm();
Use request_stack, for instance:
services:
app.service:
class: AppBundle\Class
arguments: ["@request_stack"]
And in the class:
$ php app/console fos:user:create adminuser –super-admin
public function rutaAction($id)
{
$em = $this->getDoctrine()->getManager();
$ruta = $em->getRepository('BoosterBiciBundle:Ruta')->findOneById($id);
$adminSecurityHandler = $this->container->get('sonata.admin.security.handler');
$objectIdentity = ObjectIdentity::fromDomainObject($ruta);