Questions tagged as 'symfony'

3
answers

Read values from a Json structure using Jquery

I am trying to read the data that is received via php and I need to read those values separately. The return is a json object, when I show in the console using the command console.log(data) and the following structure appear...
asked by 15.05.2018 / 15:32
2
answers

Attempted to call function "iconv_strlen"

I started using Manjaro and suddenly this error with no other information is appearing. Before in Debian everything was functional. I have not changed anything in a few days. The error is    Attempted to call function "iconv_strlen" from name...
asked by 15.12.2015 / 00:00
2
answers

preg_match ('/ ^ \ d * $ /', $ nr_procedure)? 'f': 't'; - what are you doing ? php

I have this ( preg_match('/^\d*$/', $nr_procedimento) ? 'f' : 't'; ) in a code, but I have no idea what it does, more precisely the preg_match('/^\d*$/' part. Anyone know?     
asked by 10.04.2015 / 20:24
1
answer

Using Symfony to start the database automatically when deploying the project

Is there any place in Symfony reserved for me to provide scripts or to run a class that populates the database with the initial information I need? The ideal would be during the first run and every update. If it exists how do I use it?     
asked by 23.06.2014 / 14:26
1
answer

Fatal Error: Silex \ Application :: share ()

I'm developing an API in Silex and when trying to test it on my server, I'm encountering the following error:    Fatal error: Call to undefined method Silex \ Application :: share () in /var/www/App/Config/config.php on line 24 And the...
asked by 24.07.2017 / 21:34
1
answer

How to check if a table date is lower than today's date in Doctrine - Postgresql

I have to check if the user has registered an expiration date, if yes, check if that date is less than today if it is, it shows if it does not hide, I did so: $this->noticia = Doctrine::getTable('Noticias')->createQuery('s')...
asked by 27.03.2015 / 18:28
1
answer

Doubt about sharing symfony bundle information

Create a static control for the menus, the purpose was for each Bundle to register its menu item. <?php namespace Test\RegisterBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Doctrine\Common\Collections\Ar...
asked by 11.07.2014 / 01:27
1
answer

Blameable behavior does not work on Symfony2

I'm implementing the Blameable behavior in Symfony2 using Gedmo\Mapping\Annotation . I was able to successfully implement Timestampable , but I can not implement Blameable . The problem in question is that I can not get...
asked by 17.03.2014 / 11:10
1
answer

Submit a post request with ajax for PHP

I'm trying to send text that is typed via ajax to a php page that will make a query using that text that is received. I want to know how to send the value of nmCliente to the php page. I tried the following code and the return was 500...
asked by 16.05.2018 / 16:16
0
answers

How to configure symfony in subdomain?

I have an application written in Symfony 3 that I want to publish in a subdomain. The application is currently hosted on locaweb. My main site is this: example.com The goal is to create a subdomain specific to this application, so it looks...
asked by 29.03.2017 / 16:58