All talks > Talks tagged with needs

 
General Symfony 2 discussion • building a form with 2 different entities...

got a form that needs fromdate and a todate (that i will use to search table transactions column tr[...]

General Symfony 2 discussion • Mapping the same property to multiple entities in doctrine

Since Doctrine needs to be "aware" of all my mappings before I can use them in a DQL join[...]

PHP autoloader using Zend Framework

Usually each PHP class definition has its own separate file. When writing object-oriented non-framework applications, you may need to include lots of files, each one separately. Moreover, during initial development, file names and paths may change and this can be frustrating to care about. This[...]

How to keep a GET-param alive in Symfony 1.4 Backend-module?

I built a SF 1.4-backend-module, which needs to be kind of "pre-filtered". So I added the GET-parameter ?type=A to the menue-link. Now I need to "keep this param alive" within the module when klicking on "edit", "delete", ... Is there an easy way to keep this get-param all within [...]

Good practice regarding usage of app.request inside an ESI in Symfony2

On my website I wanted to increase the performance on certain pages, so i've decided to put varnish on 2 pages. Homepage List page Those 2 respective controllers has tag @Cache(smaxage="10800") (and only on those 2 controllers) As you may have notice, there is a dynamic menu o[...]

How to import bundle configuration in config.yml in symfony 2?

I need to load user config from config.yml into my bundle. There 3 solutions described in symfony website: 1) the simple way: add just needed config under parameters key in config.yml like: # app/config/config.yml parameters: foo: fooValue bar: barValue this method [...]

What is the best practice to store a class path in database?

I would like to know in Symfony2 what is the best way to store a path to a class on a doctrine entity? I would either like to store the full path to the class or maybe the service id against the entity. I like the way the routing object converts to a controller, is there a method [...]

Accessing php variables from javascript in Symfony2

I am developing a small drawing tool which collects some data from the user before starting the tool. I'm using Symfony2 - the drawing tool is pure javascript. So once the user reaches the page where the tool loads, javascript needs to know about some of the data the user has ente[...]

Symfony 1.4: Accessing Doctrine from within custom PHP class

I have a custom library that lives in apps/frontend/lib/ This class needs to access Doctrine_Query and a few other basic Symfony classes. What is the best way to go about doing this?

How can I go about integrating FOSUser Registration & Login into another form in Symfony 2.1?

Reading around and playing with what I've got, I've concluded that I'm on the right path simply embedding the form(s) like any other: $builder->add('user', 'fos_user_registration', array( 'label' => 'Sign up', 'error_bubbling' => false )); And I've been theorisi[...]

 
 
 
 
Want to support this service?