Archive for the ‘Symfony’ Category

how can we create forms in symfony without writing a single line of code

Wednesday, August 12th, 2009

Question : How we can create forms in symfony without writing a single line of code ?

Answer : We can use CLI for this feature of symfony and it will create all the necessary file for us just with one single command that is called as CRUD command.

how we can access user in indexSuccess.php

Wednesday, August 12th, 2009

Question : How we can access user in indexSuccess.php ?

Answer : We can access the user by using $sf_user variable. It is

How to pass an array to an URL as parameter

Wednesday, August 12th, 2009

Question : How to pass an array to an URL as parameter ?

Answer : You can pass an array to an URL as parameter by serializing the array to string and then again unserializing it to the destination.

$object->functionName() not working in symfony framework

Wednesday, August 12th, 2009

Question : $object->functionName() not working in symfony framework.( call to a function on nonobject variable ) What might be the reason ?

Answer : The possible reason for this problem may be that you are applying the function over the list of objects. Just check your action file and see that you are using doSelect() or doSelectOne(). Use only the function which returns single element and not the array.