Re: [symfony-users] Re: Symfony frontend sort by th

2010-03-06 Thread Daniel Lohse
That's incorrect, Gareth. The security fix for symfony 1.4.3 just last week was on the *exact* same lines of code because you could inject SQL in the Doctrine admin generator. How would symfony guess what you want to remove (clean) or not? :) Daniel On 06.03.2010, at 08:10, Gareth McCumskey

[symfony-users] contextual partial cache

2010-03-06 Thread Zdanek
Hello, I've problem with contextual partial caching. Let's say I have 2 users with different urls, each of them have it's own partial with tags cloud. Partial is contextual so I have different cache for both users 1. example.com?uname = u1 = creates contextual partial with tags cloud for u1 2.

Re: [symfony-users] sfWidgetFormDoctrineChoice problems

2010-03-06 Thread Syam
Hi, You can use the sfWidgetFormDoctrineChoice widget with the 'query' option, thus, you can pass params to your query throught the form option system : *In action :* $this-form = new campaignForm($record, array('organization' = $user-organization) // or any param you want from $request

Re: [symfony-users] symfony and hosting

2010-03-06 Thread Germana Oliveira
El vie, 05-03-2010 a las 21:49 -0800, Dheeraj Kumar Aggarwal escribió: Hi set the documentRoot of your apache server upto your indepabis/web This is the .htaccess of my x10hosting account # -FrontPage- IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* Limit GET POST order

Re: [symfony-users] symfony and hosting

2010-03-06 Thread Germana Oliveira
Ok! I aready did the redirect stuff with: Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://bogapp.hosting.com/indepabis/web/$1 [R=301,L] BUT when i try to acces tho any other link in the principal page or try to login, symfony show me: page not found Oops! An Error Occurred

[symfony-users] Re: symfony and doctrine migrations - who to believe?

2010-03-06 Thread godbout
Got it. Actually it's not correctly explained in the slides, maybe because it's quite new? Anyway here is how it works: - generate-migrations-db: creates the migration files from the beginning. So useless if you don't want to drop and re-create the db. - generate-migrations-models: same thing,

[symfony-users] flot ajax json

2010-03-06 Thread ScherlOMatic
Hello! I tried to include the flot javascript (http://code.google.com/p/ flot/) library to get a nice look and fell for my statistics. The only problem is that i can't send my data values to my javascript function. Action: $statisticData = array(119646360 = 10, 119655000 = 20);

Re: [symfony-users] sfWidgetFormDoctrineChoice problems

2010-03-06 Thread Samuel Morhaim
Syam.. that didnt work it gives me an error. $query = Doctrine::getTable('Campaign')-getCampaigns(sfContext::getInstance()-getUser()-getGuardUser()-Organization); $this-widgetSchema['campaign_id'] = new sfWidgetFormDoctrineChoice(array ( 'model' = 'Campaign',

Re: [symfony-users] Re: Symfony frontend sort by th

2010-03-06 Thread Gareth McCumskey
I'm afraid not. The entire point of passing GET and POST variables into the sfWebRequest object is to allow for cleaning of potentially mailicious code. You say hoiw would it know? How would you know? How would you code it remove potentially malicious content? If the sfWebRequest object did

Re: [symfony-users] sfWidgetFormDoctrineChoice problems

2010-03-06 Thread Syam
You have to pass a Doctrine query to the widget, not a Doctrine collection. (Note the Query part in my getCampaignsQuery() table method example.) Samuel Morhaim wrote: Syam.. that didnt work it gives me an error. $query =

[symfony-users] Re: flot ajax json

2010-03-06 Thread RG
What is the name of your temlpate ? It should be xSuccess.json.php. symfony will automatically set the right content type. See factories.yml in symfony/lib/config/config ( json: [application/json, application/x-json] ) On Mar 6, 7:33 pm, ScherlOMatic stefan.scherbich...@gmail.com wrote: