[symfony-users] Re: id for a record in sf_guard_user

2008-12-10 Thread Marius Rugan
Hi, you can see it for yourself (what methods and what attributes has the object) echo ""; //print_r or var_dump depending on //if you prefer latte or expresso :) print_r($this->getUser()->getGuardUser()); echo ""; //do a clean exit exit(); On Thu, Dec 11, 2008 at 8:10 AM, mapelo <[EMAIL PROT

[symfony-users] Re: AJAX call with request params to be cached...

2008-12-10 Thread Sumedh
Someone please put some light here... :) On Dec 10, 2:25 pm, Sumedh <[EMAIL PROTECTED]> wrote: > Ok...thanks Nickolas... > > But does this work for actions? I basically don't want that action and > corresponding MySQL calls to get executed...templates would a > relatively lighter part... > > The

[symfony-users] id for a record in sf_guard_user

2008-12-10 Thread mapelo
How to know the id for a record into sf_guard_user (from fooPeek.php)? I know username value. --~--~-~--~~~---~--~~ 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

[symfony-users] Re: Problems with list filters in administration

2008-12-10 Thread MDrollette
I am trying to change an input field to a select field in the filter and i am having the same problems. it shows up but it just doesn't filter. can you explain your solution in a little more detail? --~--~-~--~~~---~--~~ You received this message because you are sub

[symfony-users] Re: Serialize or unserialize PDO instances (sfForm) with cache

2008-12-10 Thread Jonathan Wage
Can you create a ticket for this? We need to fix this in the form framework so the PDO instance is removed from the form before being serialized. Thanks, Jon On Wed, Dec 10, 2008 at 3:14 AM, Jeremy Benoist <[EMAIL PROTECTED]>wrote: > Anybody had already experienced this problem? > If I want to k

[symfony-users] Re: sfGuard/sfGuardDoctrine and form population

2008-12-10 Thread Jonathan Wage
You need to provide the Profile object that the ProfileForm is bound to. class UserEditForm extends sfGuardUserForm { public function configure() { parent::configure(); $profileForm = new ProfileForm($this->object->getProfile()); unset($profileForm['id'], $profileForm['sf_guar

[symfony-users] Re: sfMediaLibrary outside tinyMCE

2008-12-10 Thread Yevgeniy A. Viktorov
Hello, I have never used such functionality outside of tinyMCE, but I guess it's should be possible with input_file helper, see "Using the Media Library input_file helper" http://www.symfony-project.org/plugins/sfMediaLibraryPlugin/0_9_3?tab=plugin_readme This might be helpfull for the second s

[symfony-users] htaccess problem - can't access /admin - only /admin/index.php

2008-12-10 Thread zero0x
hey symfony gurus :) I have this strange problem - I have htaccess in my web dir - and there's a admin folder (with index.php as backend app) When I go to server/admin - I get frontend's 404 - same for server/ admin/ When I go to server/admin/index.php - everything works just fine.. Any idea w

[symfony-users] Announcing pkSimpleBacktracePlugin

2008-12-10 Thread Tom Boutell
pkSimpleBacktracePlugin prints out a backtrace of function calls at the current point in your code's execution. The backtrace is displayed when you click on a JavaScript link in your page. The trace can also be collapsed again. This makes debugging a bit more pleasant. You use it like this: To o

[symfony-users] Re: SfGuard (Propel) question

2008-12-10 Thread Lee Bolding
On 10 Dec 2008, at 17:23, Sid Ferreira wrote: > Indeed my english is sucking last days, but thanks for understanding. > > Well, the only point is that MyUsers would be 1:1 in SfGuardUser, > and all other tables would connect to MyUsers. So you'd just change your schema.yml (so that your model

[symfony-users] Re: sfMediaLibrary outside tinyMCE

2008-12-10 Thread Richtermeister
Hey Stephane, because the sfAssetsLibraryPlugin has this helper you requested. But I'm somewhat confused about the differences between the plugins, so maybe I'm missing something. Daniel On Dec 10, 1:58 am, tef_be <[EMAIL PROTECTED]> wrote: > hi Daniel, > > why not sfMediaLibrary ? > it is alr

[symfony-users] Re: SfGuard (Propel) question

2008-12-10 Thread Sid Ferreira
Indeed my english is sucking last days, but thanks for understanding. Well, the only point is that MyUsers would be 1:1 in SfGuardUser, and all other tables would connect to MyUsers. The problem isn't logins it self, it's just a database organization. On Wed, Dec 10, 2008 at 15:17, Lee Bolding <[

[symfony-users] Re: SfGuard (Propel) question

2008-12-10 Thread Lee Bolding
The only "link" they'll have in the default configuration is the table names themselves. Ofcourse, if that's a problem for you, you can create a table with the name you DO like, and use the sfGuard external authentication method to authenticate against this table (but then you'll have to de

[symfony-users] Re: sfGuard/sfGuardDoctrine and form population

2008-12-10 Thread Thomas Rabaix
Please keep in mind that all the form logic should be done inside the form, the form is self dependant So this code should be avoid : $this->form->setDefaults($this->getUser()->getProfile()); you can provide to your UserEditForm the sfUser Object, and then overwrite the method updateDefaultsFromO

[symfony-users] SfGuard (Propel) question

2008-12-10 Thread Sid Ferreira
Im preparing up a small social network application, and to keep things simple, I want use sfGuard.My problem, for now, is that I don't want to link my tables with sfGuardUser directly, so, Im wandering a transparent way to have an "interface" table between them. Any word of advice about it? -- S

[symfony-users] sfGuard/sfGuardDoctrine and form population

2008-12-10 Thread Peter Bowyer
Hi, I have set up sfGuardDoctrine with a separate profile table (as per the symfony blog tutorials) and written a user registration form. However... I now want to write a form where registered users can update their profile. I have tried modifying the registration form but I cannot get the ne

[symfony-users] Re: How do I add new or change form inputs from the Action?

2008-12-10 Thread mage
Hi Flancer, I have the same problem that you had, could you tell me exactly how did you fix it? thanks, mage --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email

[symfony-users] Admin Generator, Embeded form, and create form ...

2008-12-10 Thread Vincent
Let's see this example, 2 objects: Artist: id: user_id: discographie: longvarchar User: id: name: varchar(255) Ok, let's imagine, we have a form UserArtistForm.class.php, extending sfPropelForm for the object User, and with an embeded form Artist. I found this excellent article : ht

[symfony-users] Re: sfFormExtraPlugin - help with sfWidgetFormJQueryDate

2008-12-10 Thread Fabian Spillner
PS. Of course in sfWidgetFormJQueryDate.class.php ;-) --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this

[symfony-users] Re: sfFormExtraPlugin - help with sfWidgetFormJQueryDate

2008-12-10 Thread Fabian Spillner
There is wrong with javascript, here you can copy and paste the bugfix: function f%s_read_linked() { \$("#%s").val(\$("#%s").val() + "/" + \$("#%s").val() + "/" + \$("# %s").val()); return {}; } function f%s_update_linked(date) { \$("#%s").val(date.substring(3, 5)); \

[symfony-users] Re: sfGuardPlugin - change doctrine schema

2008-12-10 Thread Priidik Vaikla
Hey, If you want to update the plugin in future (and I believe you want) I think you should create a profile. Also I think it's great practice to hold username and password and other info in separate tables. First table you only read while doing signin. I don't believe it makes difference if you

[symfony-users] Re: sfGuardPlugin - change doctrine schema

2008-12-10 Thread Thomas Rabaix
So easily, you can't. On Wed, Dec 10, 2008 at 1:56 PM, zero0x <[EMAIL PROTECTED]> wrote: > > Wow that's pretty neat, > > how do I do something like this with Propel ? > > On 10. Dec., 13:36 h., "Thomas Rabaix" <[EMAIL PROTECTED]> > wrote: > > in your model sfGuardUser, just do something like this

[symfony-users] sfFormExtraPlugin - help with sfWidgetFormJQueryDate

2008-12-10 Thread Matthias N.
Hi, I'm desperately trying to use the sfWidgetFormJQueryDate widget from the sfFormExtraPlugin. I downloaded jquery-1.2.6.min.js and added it to the response but I always get the following error (copied from Firebug): $.datepicker has no properties [Break on this error] }, $.datepicker.regional

[symfony-users] Re: sfGuardPlugin - change doctrine schema

2008-12-10 Thread zero0x
Wow that's pretty neat, how do I do something like this with Propel ? On 10. Dec., 13:36 h., "Thomas Rabaix" <[EMAIL PROTECTED]> wrote: > in your model sfGuardUser, just do something like this : >   public function setTableDefinition() >   { >      parent::setTableDefinition() > >     $this->has

[symfony-users] Re: sfGuardPlugin - change doctrine schema

2008-12-10 Thread Thomas Rabaix
in your model sfGuardUser, just do something like this : public function setTableDefinition() { parent::setTableDefinition() $this->hasColumn('dob', 'date', null, array('type' => 'date')); } if you need to had a relation ship do the same thing but inside the setUp method public

[symfony-users] Re: download a zip file, the server

2008-12-10 Thread Marius Rugan
Hi, seems a content-type error: try: header("Content-Disposition: attachment; filename=".$FileName); header("Content-Type: binary/octet-stream/force-download"); header("Content-Transfer-Encoding: binary"); header("Content-Length: ".strlen($FileName)); header("Pragma: no-cache"); On Wed, Dec 10,

[symfony-users] Re: sfModalBoxPlugin and "_options_for_javascript()"

2008-12-10 Thread Fabian Lange
Hi, the _options_for_select was an internal method for the Helper, denoted by the leading underscore, we made it a public method by removing the underscore and changed all symfony internal references. However we did not check if anybody else was using the method. So the plugin should be fixed :-) P

[symfony-users] Re: dynamically change database connection.

2008-12-10 Thread Ridvan Lakas ng Bayan S. Baluyos
Thanks Thomas! This is exactly what I've been looking for. I've found a similar solution but it pertains to the 1.2 branch. I did a little addition though like carrying over the getInstance() method from the sfContext class. I give a +1 for you! Thanks, Ridvan On Wed, Dec 10, 2008 at 5:45 PM

[symfony-users] Re: sfModalBoxPlugin and "_options_for_javascript()"

2008-12-10 Thread jp
hi, this plugin is for use with sf 1.0x for the moment, as i see it. It uses "_options_for_select" implemented in the "old" JavascriptHelper. In sf 1.2 there is the JavascriptBaseHelper which implements a "options_for_select". I just changed the code and it worked. It would be easy to setup a sf

[symfony-users] Using UUID generator for primary key generation

2008-12-10 Thread Android geek
I know, Id generation can be specified in schema.yml using defaultIdMethod="xxx" But what If I want to use UUID generator for generating primary keys. I know its possible and there must be some way to do it. Can any one tell me what can be done? I just don't like autoincrement primary keys for

[symfony-users] sfGuardPlugin - change doctrine schema

2008-12-10 Thread zero0x
Hey, is there a simple way to add columns to sfGuardUser (for doctrine) - or should I create a Profile? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symf

[symfony-users] Re: sfModalBoxPlugin and "_options_for_javascript()"

2008-12-10 Thread Nickolas Daskalou
Well I created my own _options_for_javascript() which simply calls the original options_for_javascript() function and all works well. Awesome plugin by the way, very impressed! 2008/12/10 daskalou <[EMAIL PROTECTED]> > > Does anybody know why the sfModalBoxPlugin calls a function named > _optio

[symfony-users] Re: symfony 1.1 : how to set global errors

2008-12-10 Thread Lee Bolding
I think I'll make a plugin that dynamically replaces the default sfRequest... COMPAT_10 isn't really desirable - it's a code smell to enable it just for one piece of missing functionality, and it has further implications on the project as a whole. On 10 Dec 2008, at 10:08, Nicolas Perriaul

[symfony-users] sfModalBoxPlugin and "_options_for_javascript()"

2008-12-10 Thread daskalou
Does anybody know why the sfModalBoxPlugin calls a function named _options_for_javascript() and not options_for_javascript()? The function called by the Modal plugin does not exist. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

[symfony-users] Re: Embedded forms. Again...

2008-12-10 Thread [EMAIL PROTECTED]
Hi, Vit228! I found another solution. I tried to make form similar to http://www.rabota.ru/v3_myResume.html?action=create&edit_type=2 . If you are not registered there (I doubt that though :-) - here is little description. There are kinda embedded forms (experience, education etc) - and these form

[symfony-users] Extending DbFinder

2008-12-10 Thread Alexander Deruwe
Hey all, I'm encountering some problems extending DbFinder... I have two databases, propel and an older database that I have generated a schema for. In the 'propel' database I want to create some custom finder: so I have lib/model/propel/EntryFinder.php: However when calling: $results =

[symfony-users] download a zip file, the server

2008-12-10 Thread rockobop
hello to all I have a function to download files. zip to my users, and for that we use the following code. $FileName = 'Backup09-12-2008~13_48_07.zip'; $path = sfConfig::get('sf_upload_dir').'\tmp \Backup09-12-2008~13_48_07.zip'; header ("Content-Disposition: attachment; filename=". $Fil

[symfony-users] Re: symfony 1.1 : how to set global errors

2008-12-10 Thread Nicolas Perriault
On Tue, Dec 9, 2008 at 9:19 PM, Lee Bolding <[EMAIL PROTECTED]> wrote: > But it's not nearly as clean (or intuitive) as... > If ($request->hasErrors()) { Sure, though you can create a myRequest class which implements these methods and declare it in your factories.yml. Or maybe enable the compat_

[symfony-users] Re: Functional test - test upload a form

2008-12-10 Thread klemens_u
I'd like to know this too, Thanks, Klemens On 26 Nov., 21:45, "Cinxgler Mariaca Minda" <[EMAIL PROTECTED]> wrote: > Hello, > > Does anyone know if I can make a functional test for an action where > there's a form which receives a file uploaded by the user??? > > Thanks in advance, > -- > Cinxgle

[symfony-users] Re: sfMediaLibrary outside tinyMCE

2008-12-10 Thread tef_be
hi Daniel, why not sfMediaLibrary ? it is already in my system and works fine with tinyMCE. I just want to use it outside tinyMCE. Stéphane On 2 déc, 23:03, Richtermeister <[EMAIL PROTECTED]> wrote: > I believe the sfAssetsLibraryPlugin is just what you need. > > Hope it helps, > Daniel > --~-

[symfony-users] Re: dynamically change database connection.

2008-12-10 Thread Thomas Rabaix
Have a look to this thread : http://groups.google.com/group/symfony-users/browse_thread/thread/3a5a71e3bcfbae42/7d4d2b8946e38cee On Wed, Dec 10, 2008 at 10:35 AM, Ridvan Lakas ng Bayan S. Baluyos < [EMAIL PROTECTED]> wrote: > I just need a simpler approach. I'm using the 1.0 branch. Isn't there

[symfony-users] Re: dynamically change database connection.

2008-12-10 Thread Ridvan Lakas ng Bayan S. Baluyos
I just need a simpler approach. I'm using the 1.0 branch. Isn't there any other way to override what's in the databases.yml globally? I mean if I change the dsn paramater it would be using it for the entire time? On Tue, Dec 9, 2008 at 4:19 PM, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote: > > L

[symfony-users] Re: AJAX call with request params to be cached...

2008-12-10 Thread Sumedh
Ok...thanks Nickolas... But does this work for actions? I basically don't want that action and corresponding MySQL calls to get executed...templates would a relatively lighter part... The Symfony 1.0 documentation shows that if we send and argument to an action, we can cache it... like http://my

[symfony-users] Re: Serialize or unserialize PDO instances (sfForm) with cache

2008-12-10 Thread Jeremy Benoist
Anybody had already experienced this problem? If I want to keep cache enabled, I see only one solution : avoid all sfForm instance parameter from include_partial. Maybe I will try to put $form in session or request, we'll see. But it won't in the way of refactoring data and good practice I think :-