[symfony-users] Re: R: Functional test: how to set JSON data in a POST method?

2011-06-02 Thread ashton
Not really a solution, more of a workaround, but might as well get an answer up here :D If you get the content in your action like this: $content = $request->getParameter('content'); if(!$content) $content = $request->getContent(); that should allow you to test what you want by passing

[symfony-users] memory limit behavior

2011-01-14 Thread ashton
Hey guys, I'm having trouble with an issue where I see different symfony behavior on different machines. Specifically, in my dev environment, I don't run out of memory, but in my production environment, I do. However, both environments have the same memory_limit value (as far as I can tell) ('php

[symfony-users] Re: Factories : storage taking a really long time to load

2010-12-21 Thread ashton
I get this behavior without even being logged in (on the registration or login page). Specifically, it seem to be happening at least every other page load. This doesn't sound to me as if it's the same issue, but it is definitely happening in factories : storage (Factories : storage 1 171026

[symfony-users] sfDoctrineRestGeneratorPlugin overriding method

2010-11-02 Thread ashton
Is it possible to use sf_method (or something else) to override the method? I tried to pass in sf_method, but I get "Could not validate extra field "sf_format"". Beyond that, has anyone seen any issues with the routing? /post.xml, /post.json get me Empty module and/or action after parsing the URL

Re: [symfony-users] Re: Tracking down issue in factories

2010-10-21 Thread ashton honnecke
@Stephen - I haven't had time yet :( However, I'll let you know if I come upon anything. I would be very interested in anything that you come up with though. @Thomas - My thanks as well. On Wed, Oct 20, 2010 at 5:13 PM, stephenrs wrote: > @ashton - did you ever track this down

[symfony-users] Tracking down issue in factories

2010-10-12 Thread ashton
culprit is "Factories" (at 125116.40ms, or just over 2 minutes). Does anyone have any suggestions (or links that might have info) as to how to start tracking this down? thanks ashton -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-projec

[symfony-users] tjSolrDoctrineBehaviorPlugin index not chaging

2010-09-27 Thread ashton
set-index, and restarting solr. THe only way that I have been able to get unwanted fields to go away is to re-install the plugin. Is anyone else using dynamic fields, or are most defining their own schema? Are dynamic fields just not supported? ashton -- If you want to report a vulnerability is

[symfony-users] symfony form not merging with existing object data (1.4.7-DEV)

2010-08-12 Thread ashton
I have generated an action using doctrine:generate-module (I can reproduce this behavior in the admin module as well) When I post to the update page with an incomplete set of values (just the title for instance) so: /api_dev.php/event/update?id=1&event[title]=nothing The object is updated and save

Re: [symfony-users] Re: sfDoctrineGuardUser: Unable to stay signed in

2010-07-06 Thread ashton honnecke
at is happening (or rather, how this is happening)? On Tue, Jul 6, 2010 at 7:05 AM, ashton honnecke wrote: > It is present in only one of five apps (all in the same project).  It > is definitely not the server.  It happens to all the modules in one > app, except for it seems, when I ret

Re: [symfony-users] Re: sfDoctrineGuardUser: Unable to stay signed in

2010-07-06 Thread ashton honnecke
, which I am trying to confirm now. On Tue, Jul 6, 2010 at 2:59 AM, Tom Ptacnik wrote: > Did you tried to run this app on a different server? .. then you will > know if the problem is in the app or in your server. > > > On 5 čnc, 04:31, ashton honnecke wrote: >> This behavi

Re: [symfony-users] Re: sfDoctrineGuardUser: Unable to stay signed in

2010-07-04 Thread ashton honnecke
page load (so I have to login for every page). I'm sure that this is from something that I have done wrong. Does anyone have any suggestions about where to look or how to debug this? On Tue, Jun 22, 2010 at 8:55 AM, ashton honnecke wrote: > I hadn't altered factories.yml at all. >

Re: [symfony-users] Re: sfDoctrineGuardUser: Unable to stay signed in

2010-06-22 Thread ashton honnecke
torage is used, in this case you can check > the serialized sessions stored usually somewhere in /var/lib/php5 (or > something similar, depending on your Linux distribution). > >   gabriel > > > On Jun 22, 5:33 pm, ashton honnecke wrote: >> I'm not sure.  How do I c

Re: [symfony-users] Re: sfDoctrineGuardUser: Unable to stay signed in

2010-06-22 Thread ashton honnecke
that be, and do you have any ideas of how I could check? ashton On Tue, Jun 22, 2010 at 6:14 AM, pghoratiu wrote: > How does symfony store the session in your case, are you using the php > session or something else? > >    gabriel > > On Jun 22, 9:19 am, ashton honnecke wrot

Re: [symfony-users] Re: sfDoctrineGuardUser: Unable to stay signed in

2010-06-22 Thread ashton honnecke
ote: > I would say it's something wrong at the PHP configuration level, what > is your environment (OS, PHP, symfony version, ...?). > >    gabriel > > On Jun 21, 8:51 pm, ashton honnecke wrote: >> This is what I have in configuration>user on the page load a

Re: [symfony-users] Re: sfDoctrineGuardUser: Unable to stay signed in

2010-06-21 Thread ashton honnecke
Nope, it came back after I cced and rebuilt the models. On Mon, Jun 21, 2010 at 2:05 PM, ashton honnecke wrote: > In order to test if the issue lay in the environment or in the code, I > set up a new vhost and checked everything out again at various > revisions.  I can't seem to

Re: [symfony-users] Re: sfDoctrineGuardUser: Unable to stay signed in

2010-06-21 Thread ashton honnecke
10 at 12:37 PM, ashton honnecke wrote: > It was working at one point.  The issue seems to span all the apps that I > have. > > Red Hat Enterprise Linux Server release 5.4 (Tikanga) > PHP 5.2.10 (cli) (built: Aug  6 2009 06:05:50) > symfony version 1.4.6-DEV > > ashton > &g

Re: [symfony-users] Re: sfDoctrineGuardUser: Unable to stay signed in

2010-06-21 Thread ashton honnecke
It was working at one point. The issue seems to span all the apps that I have. Red Hat Enterprise Linux Server release 5.4 (Tikanga) PHP 5.2.10 (cli) (built: Aug 6 2009 06:05:50) symfony version 1.4.6-DEV ashton On Mon, Jun 21, 2010 at 12:14 PM, pghoratiu wrote: > I would say it's s

Re: [symfony-users] Re: sfDoctrineGuardUser: Unable to stay signed in

2010-06-21 Thread ashton honnecke
g toolbar or directly the > serialized session data. > >   gabriel > > > On Jun 18, 9:50 am, ashton wrote: >> I'm not sure how I broke things, but I can no longer remain logged in >> beyond one page load (tried clearing cache/using a different browser). >

[symfony-users] sfDoctrineGuardUser: Unable to stay signed in

2010-06-17 Thread ashton
I'm not sure how I broke things, but I can no longer remain logged in beyond one page load (tried clearing cache/using a different browser). * When I hit a page, I get the login screen * I login successfully * The page that I was initially navigating to loads * Then next time that I load a pag

Re: [symfony-users] Re: Dumping and loading passwords (re-hashing)

2010-05-24 Thread ashton honnecke
r.class.php don't you? .. then this > problem will be solved. > > > On 21 kvě, 18:12, ashton wrote: >> I have a question regarding dumping and loading passwords.  In 1.4.5 I >> am experiencing passwords hashes being re-hashed after a dump/load. >> This is because when

[symfony-users] Dumping and loading passwords (re-hashing)

2010-05-21 Thread ashton
action? Alter a different file for the user? Thanks! ashton -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this

[symfony-users] google analytics trackPageview and ajax helpers

2010-04-19 Thread ashton
://www.google.com/support/googleanalytics/bin/answer.py?answer=55521 This code could ideally be generated when the link helpers build code. Has anyone out there done this? ashton -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

[symfony-users] Building XML from models

2010-03-09 Thread ashton honnecke
olved before. ashton -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@goog

[symfony-users] signout credentials

2010-02-17 Thread ashton honnecke
You can't restrict access to login with is_secure or credentials (http://www.symfony-project.org/reference/1_4/en/08-Security) because it makes no sense to do so. However you can do so to logout, which IMO makes just as little sense. Scenario: backend/config/security.yml -- defau

[symfony-users] Re: MVC - where to put complex application code in symfony

2010-02-01 Thread ashton
feel like that is getting overfull) SO: Model = /lib/model/doctrine/FeaturedSearch.class.php DAO = /lib/model/doctrine/FeaturesSearchTable.class.php App = /app/frontend/lib/appWideLogin.class.php... Controllers = actions/actions.php Templates = templates/<*>Success.php ashton On Feb 1, 6:

[symfony-users] Re: sfDoctrineGuard and more than one Profile

2010-02-01 Thread ashton
I think that you are looking for something like this: detect_relations: true Profile: columns: sf_guard_user_id: integer(4) first_name: string(255) middle_name: string(255) last_name: string(255) email_address: string(255) relations: User: class: sfGuardUser

Re: [symfony-users] Re: External user authentication with sfDoctrineGuardPlugin

2010-02-01 Thread ashton honnecke
I have detailed the process here: http://blog.honnecke.us/2010/01/using-sfdoctrineguardusers-external-authentication/ On Fri, Jan 29, 2010 at 2:20 PM, ashton honnecke wrote: > The way that I addressed this was to: >  * Create a custom form for the signin process >  * In that form, re

Re: [symfony-users] Re: External user authentication with sfDoctrineGuardPlugin

2010-01-29 Thread ashton honnecke
lution, I would love to hear it. thanks ashton On Fri, Jan 29, 2010 at 10:00 AM, ashton honnecke wrote: > Both ways of authentication would be fine, but my main goal is to > allow users to login without requiring them to exist in the > sfGuardUserTable.  I'm building a site for a

Re: [symfony-users] Re: External user authentication with sfDoctrineGuardPlugin

2010-01-29 Thread ashton honnecke
well: http://www.matthewbull.net/2008/06/29/symfonys-sfguard-plugin-and-ldap/ On Fri, Jan 29, 2010 at 5:43 AM, Tom Ptacnik wrote: > Of cource you can overwrite the sfGuardAuth module if you don't want > to use it... I thought that you want to use both ways of > autentification. > &

Re: [symfony-users] Re: External user authentication with sfDoctrineGuardPlugin

2010-01-28 Thread ashton honnecke
so It seems odd that I would need to re-write the login in order to do so. Why would I want to make a new module and not just overwrite the executeSignin method in the BasesfGuardAuthActions class? ashton On Thu, Jan 28, 2010 at 6:53 AM, Tom Ptacnik wrote: > Create an module with "secu

[symfony-users] External user authentication with sfDoctrineGuardPlugin

2010-01-27 Thread ashton
y external checks even if the username does not exist in the sf_guard_user table would work too, because then I could just manually create the user if the external auth was successful. thanks! ashton -- You received this message because you are subscribed to the Google Groups "symfony users&quo

Re: [symfony-users] Append Javascript in actions.class.php

2010-01-19 Thread ashton honnecke
19, 2010 at 1:02 PM, Dineu Henrique wrote: > Thanks! > But I was wondering if there is another way to do this, I mean, using some > symfony's function (like renderText() or something like this). > > But it worked :) > Bye > -- > Dineu Assis > > On Tue, Jan 1

Re: [symfony-users] Append Javascript in actions.class.php

2010-01-19 Thread ashton honnecke
put your js inside a document.ready function: http://www.learningjquery.com/2006/09/introducing-document-ready On Tue, Jan 19, 2010 at 11:44 AM, Dineu Henrique wrote: > Hi guys, > > I'm having some trouble here trying to output an alert script after loading > a Form. > Look what I've done until n

Re: [symfony-users] Re: How to get default sort method for models?

2010-01-19 Thread ashton honnecke
If that's more than you were interested in, you can do this: $q = Doctrine_Table::Create()-> select('*')-> from('customer as c')-> orderBy('first_name ASC'); $customers = $q->execute(); Throw that into a method in a table class (a solid design practice anyway), and then you have less code than yo

Re: [symfony-users] Re: Problem With User Management

2010-01-19 Thread ashton honnecke
common sense > when it comes to building applications. Once again I will have to > reverse engineer the code and add my own ways. > > On Jan 18, 8:38 pm, Ashton Honnecke wrote: >> In the past, when not using sfGuardDoctrineUser I have usually made a >> different "reset

Re: [symfony-users] Problem With User Management

2010-01-18 Thread Ashton Honnecke
In the past, when not using sfGuardDoctrineUser I have usually made a different "reset password" page, seperate from the rest of the user form. Ashton On Jan 18, 2010, at 16:31, Darren884 wrote: I have a form for the employees department and it has the information on th

Re: [symfony-users] sfDoctrineGuardPlugin Unknown method SfGuardUser::checkPassword

2010-01-16 Thread Ashton Honnecke
Is myUser extending sfGuardDoctrineUser (or whatever the appropriate class is, that might not be right) in your /lib/myUser.php ? Ashton Honnecke ahonne...@gmail.com On Jan 16, 2010, at 7:31, thronic wrote: I was working on a project at work just playing around with sfDoctrineGuardPlugin

Re: [symfony-users] sfJqueryReloadedPlugin in 1.4

2009-12-13 Thread ashton honnecke
It only works with 1.2, like it says on the page I linked to. :D nm On Sun, Dec 13, 2009 at 8:53 PM, ashton wrote: > Having trouble getting plugin setup in a new 1.4 project.  When set up > as external in the plugins directory, It won't work. Publish assets > doesn't make the

[symfony-users] sfJqueryReloadedPlugin in 1.4

2009-12-13 Thread ashton
Having trouble getting plugin setup in a new 1.4 project. When set up as external in the plugins directory, It won't work. Publish assets doesn't make the link to the plugin, and calling the helper throws an exception: ahonne...@honnecke:~/repos/sgl$ php symfony plugin:assets >> pluginConfigur

[symfony-users] 1.4 dev performance is slo....w

2009-12-11 Thread Ashton
Since upgrading from 1.2.8 to 1.4.1, I've noticed a significant dip in overall execution time in the dev environment, which makes the task of developing slower - as I wait that extra second or so for pages to load. while i appreciate that the new debug toolbar is giving me even more useful info li

[symfony-users] Routing different in prod and dev

2009-11-29 Thread ashton
ev.php and backend_dev.php, and the web debug toolbar doesn't show up in production. thanks ashton -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubsc

Re: [symfony-users] Redirection after submitting a New form

2009-11-20 Thread Ashton Honnecke
In processForm. Ashton Honnecke ahonne...@gmail.com On Nov 20, 2009, at 8:20, tirengarfio wrote: > Hi, > > i have created a module (generate-module) in base of Message model. > When i execute message/new and then i push the "Save" button the app > redirects me to the

[symfony-users] Re: having trouble customizing the admin generator

2009-11-01 Thread ashton honnecke
#x27;end_time'] = new sfValidatorTime(array('required' => false)); } On Thu, Oct 22, 2009 at 4:37 PM, Alexandre SALOME wrote: > You should add widget/validator to your form. > > > > 2009/10/22 ashton >> >> Hi, >> I'm trying to add a m

[symfony-users] Re: IDE NetBeans supports Symfony what's about propel

2009-10-25 Thread Ashton Honnecke
If you are on symfony 1.3 you will need to specify propel when you build the project. Ashton Honnecke ahonne...@gmail.com On Oct 25, 2009, at 8:46, Maras wrote: > > Anyone knows how to create symfony project iwith ORM Propel. n > Netbeans with ORM Propel. When I check comman

[symfony-users] What's the best way to suppress redirects in the admin generator for ajax actions?

2009-10-24 Thread ashton
Hi! I have a "wizard" in my admin generator that ajax posts to multiple different modules to step the user through creating objects in the correct order. I'm using the generated actions, so I post to (in one example) "facility/create" and the object is created. Works like a charm, except that th

[symfony-users] Re: having trouble customizing the admin generator

2009-10-23 Thread ashton
ilar to the one in Listing 14-10. On Oct 23, 1:37 pm, ashton wrote: > I copied the _form.php template out of the cache, and added >     var_dump($form['end_time']->getValue()); >     which yields: >     NULL > the other fields print correctly: >     var_dump($form[&#x

[symfony-users] Re: having trouble customizing the admin generator

2009-10-23 Thread ashton
ich leads me to think that the issue has something to do with the value of the form getting set originally. On Oct 23, 11:25 am, ashton wrote: > Rather, that does die when the form is submitted. > > On Oct 23, 9:31 am, ashton wrote: > > > > > That will die when the form

[symfony-users] Re: having trouble customizing the admin generator

2009-10-23 Thread ashton
Rather, that does die when the form is submitted. On Oct 23, 9:31 am, ashton wrote: > That will die when the form is submitted.  Unfortunately, that's not > the issue that I'm having, what I'm seeing is that when going to the > edit page initially, getEndTime never gets

[symfony-users] Re: having trouble customizing the admin generator

2009-10-23 Thread ashton
bject()->setEndTime($value); >   } > > } > > Alexandre > > 2009/10/23 ashton > > > > > > > > > I have already added those.  The widget shows up on the edit page, > > just without any content in it. i.e. it's

[symfony-users] Re: having trouble customizing the admin generator

2009-10-23 Thread ashton
ime'] = new sfValidatorTime(array('required' => false)); On Oct 22, 4:37 pm, Alexandre SALOME wrote: > You should add widget/validator to your form. > > 2009/10/22 ashton > > > > > > > > > Hi, > > I'm trying to add a metho

[symfony-users] having trouble customizing the admin generator

2009-10-22 Thread ashton
Hi, I'm trying to add a method ('endTime') that doesn't exist in the model, it's essentially a convenience method to set just the time part of time_ts which is a timestamp. It shows up properly in the list, however, the widget is never populated with a value in the edit page. As far as I can tell

[symfony-users] need help with custom field in admin generator

2009-10-22 Thread ashton
custom field on the edit page in the admin generator not calling getter I need some help with adding a custom field to the admin generator: I have a model that contains a field 'end_ts'. I want to make a custom getter/setter/field end_time that doesn't exist in the model. Everything works but th