[symfony-users] sfWidgetFormSelect multiple defaults

2008-10-28 Thread Cindy Cullen

I have an sfWidgetFormSelect set to 'multiple' like this in my form:


$sel = DbFinder::from('category')-find();

$this-widgetSchema['category'] = new  
sfWidgetFormSelect(array('choices'=$sel, 'multiple'='true'));


I need to set multiple defaults - how can I do that?

I can set one like this:

$this-setDefaults(array('category' =2));


but how do I set multiples as defaults?

Actually, I'm trying to read the categories from the database and set  
those that have been selected previously.

Can anyone help?

Thanks!

Cindy


--~--~-~--~~~---~--~~
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 group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: dbFinder ordered numerically

2008-10-13 Thread Cindy Cullen
Here is my schema:

   trivia_scores:
 _attributes: { phpName: triviaScores }
 id:
 username: varchar(128)
 score: varchar(10)
 last_level: varchar(10)

Thanks for your help!

Cindy

On Oct 13, 2008, at 8:13 AM, Yuretsz wrote:

 Show me schema

 On Mon, Oct 13, 2008 at 2:37 PM, Cindy Cullen [EMAIL PROTECTED] 
  wrote:
 I've tried it both ways - I can make it either, but currently it is  
 set to varchar.

 On Oct 13, 2008, at 5:17 AM, Yuretsz wrote:

  Your Score field is iteger or varchar?

 On Mon, Oct 13, 2008 at 5:49 AM, Cindy Cullen [EMAIL PROTECTED] 
  wrote:

 I'm using PropelFinder and I need to order my results numerically:

 $this-scores = sfPropelFinder::from('Scores')- 
 orderBy(Score','desc')-
  find();

 I want them in order numerically - in other words, I want this:

 1
 750
 1500

 not this:

 1
 1500
 750

 How do I make the order by use the ABS() function that I can use in
 MySQL?

 Thanks!

 Cindy





 -- 
 
 Regards...









 -- 
 
 Regards...

 


--~--~-~--~~~---~--~~
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 group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: dbFinder ordered numerically

2008-10-13 Thread Cindy Cullen
I figured it out.

I had to change both the database AND the schema to integer, rebuild  
the model and clear the cache.

I had done bits and pieces of that, but never all at the same time.

Thanks for everyone's help!

Cindy

On Oct 13, 2008, at 8:22 AM, Cindy Cullen wrote:

 Here is my schema:

   trivia_scores:
 _attributes: { phpName: triviaScores }
 id:
 username: varchar(128)
 score: varchar(10)
 last_level: varchar(10)

 Thanks for your help!

 Cindy

 On Oct 13, 2008, at 8:13 AM, Yuretsz wrote:

 Show me schema

 On Mon, Oct 13, 2008 at 2:37 PM, Cindy Cullen [EMAIL PROTECTED] 
  wrote:
 I've tried it both ways - I can make it either, but currently it is  
 set to varchar.

 On Oct 13, 2008, at 5:17 AM, Yuretsz wrote:

  Your Score field is iteger or varchar?

 On Mon, Oct 13, 2008 at 5:49 AM, Cindy Cullen [EMAIL PROTECTED] 
  wrote:

 I'm using PropelFinder and I need to order my results numerically:

 $this-scores = sfPropelFinder::from('Scores')- 
 orderBy(Score','desc')-
  find();

 I want them in order numerically - in other words, I want this:

 1
 750
 1500

 not this:

 1
 1500
 750

 How do I make the order by use the ABS() function that I can use in
 MySQL?

 Thanks!

 Cindy





 -- 
 
 Regards...









 -- 
 
 Regards...





 


--~--~-~--~~~---~--~~
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 group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] admin routing problem

2008-10-12 Thread Cindy Cullen

I have 'inherited' a symfony project that I need to maintain.

I have an admin app and a front end app.

I have the admin app secured with sfGuard, but I can not make it  
return to the admin app after login.

I've set the app.yml for admin like this:

all:
   sf_guard_plugin:
 success_signin_url: albums/index
 success_signout_url:home/index

It always goes to the module/action that I set up in the front end  
app.yml -- never admin :(

I'm using symfony version 1.1

Any help?

Thanks,

Cindy

--~--~-~--~~~---~--~~
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 group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: admin routing problem

2008-10-12 Thread Cindy Cullen

Yes, I'm using admin.php/login

On Oct 12, 2008, at 8:40 PM, Ant Cunningham wrote:


 re you using the scriptname in the admin url (ie.
 adminappname_prod.php)? otherwise youre always accessing the frontend
 application... Well unless something else has been set up to direct  
 the
 controllers differently or redirect to a different app.

 Cindy Cullen wrote:
 -- 
 Ant Cunningham
 Graphic Designer | Web Developer
 Vector Based Design
 [EMAIL PROTECTED] I have 'inherited' a symfony project that I need  
 to
 maintain.

 I have an admin app and a front end app.

 I have the admin app secured with sfGuard, but I can not make it
 return to the admin app after login.

 I've set the app.yml for admin like this:

 all:
   sf_guard_plugin:
 success_signin_url: albums/index
 success_signout_url:home/index

 It always goes to the module/action that I set up in the front end
 app.yml -- never admin :(

 I'm using symfony version 1.1

 Any help?

 Thanks,

 Cindy




 -- 
 Ant Cunningham
 Graphic Designer | Web Developer
 Vector Based Design
 [EMAIL PROTECTED]

 


--~--~-~--~~~---~--~~
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 group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] dbFinder ordered numerically

2008-10-12 Thread Cindy Cullen

I'm using PropelFinder and I need to order my results numerically:

$this-scores = sfPropelFinder::from('Scores')-orderBy(Score','desc')- 
 find();

I want them in order numerically - in other words, I want this:

1
750
1500

not this:

1
1500
750

How do I make the order by use the ABS() function that I can use in  
MySQL?

Thanks!

Cindy

--~--~-~--~~~---~--~~
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 group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Problem with $request-isMethod('post')

2008-10-07 Thread Cindy Cullen

Sorry.  I meant 1.1.4.

Thanks for the tips.  I'll check them out!

On Oct 7, 2008, at 4:54 AM, Lee Bolding wrote:


 Symfony 1.4?

 If it's a sporadic error, I'd check your data - maybe the encryption
 type for the passwords has changed? or the salt? so newly added users
 will authenticate OK, but existing users won't.

 BTW, isn't it $request-isMethod(sfRequest::POST) ?


 On 7 Oct 2008, at 06:26, Cindy Cullen wrote:


 I've recently upgraded to symfony 1.4.  I've installed the latest
 sfGuardUserPlugin.

 Now, none of my users will authenticate.  Actually, some of them
 authenticate occasionally.  It seems to be sporadic and I'm having a
 hard time figuring it out.

 It appears that the $request in BasesfGuardAuthActions.class.php is
 set to GET instead of POST even though I'm using this in my template:

 form action=?php echo url_for('@sf_guard_signin') ?
 method=post
  table
?php echo $form ?
  /table

  input type=submit value=sign in /
  a href=?php echo url_for('@sf_guard_password') ?Forgot your
 password?/a
 /form

 Users that I know are in the database are not getting authenticated.

 Earlier, I was getting past that problem, but the validation was not
 passing even though I know that it should have.

 Any help?

 Thanks,

 Cindy




 


--~--~-~--~~~---~--~~
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 group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Problem with $request-isMethod('post')

2008-10-06 Thread Cindy Cullen

I've recently upgraded to symfony 1.4.  I've installed the latest  
sfGuardUserPlugin.

Now, none of my users will authenticate.  Actually, some of them  
authenticate occasionally.  It seems to be sporadic and I'm having a  
hard time figuring it out.

It appears that the $request in BasesfGuardAuthActions.class.php is  
set to GET instead of POST even though I'm using this in my template:

form action=?php echo url_for('@sf_guard_signin') ? method=post
   table
 ?php echo $form ?
   /table

   input type=submit value=sign in /
   a href=?php echo url_for('@sf_guard_password') ?Forgot your  
password?/a
/form

Users that I know are in the database are not getting authenticated.

Earlier, I was getting past that problem, but the validation was not  
passing even though I know that it should have.

Any help?

Thanks,

Cindy

--~--~-~--~~~---~--~~
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 group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Captcha for symfony 1.1

2008-09-15 Thread Cindy Cullen

I'm using sfReCaptchaPlugin with 1.1 - it works for me.

On Sep 14, 2008, at 12:53 AM, Melchior Anarchion wrote:


 http://www.symfony-project.org/plugins/sfReCaptchaPlugin
 this one doesn't work ?
 i have installed it but not yet tested :)
 came back in few hour when i have finish my new project :)

 Sid Bachtiar a écrit :
 There doesn't seem to be a captcha plugin for symfony 1.1?




 


--~--~-~--~~~---~--~~
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 group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Which IDE do you use?

2008-09-09 Thread Cindy Cullen

I like Coda - let's me edit, ssh, and sftp all in one.  It even has  
reference materials built-in.


On Sep 9, 2008, at 1:49 AM, Jonathan H. Wage wrote:


 Textmate and vi for everything.

 On Sep 9, 2008, at 1:13 AM, Sumedh [EMAIL PROTECTED] wrote:


 I don't think we have a feature of poll here...?

 Thought would help to know what are people generally using for  
 symfony
 projects...

 I am using Eclipse PDT so far...but it's crashing every hour since
 yesterday...so don't know what to do... :(


 


--~--~-~--~~~---~--~~
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 group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfGuard - how to implement registration

2008-08-24 Thread cindy

I had the same problem, but I think Fabien (or someone) added the
processing to the sfGuardUserForm to update the sfGuardUserProfile as
well as sfGuardUser recently.

If you update your sfGuard plugin, you should see the clode in the
sfGuardUserForm.

With this new code, it's as easy as building the model, building your
forms, and generating the crud.  Worked like a charm for me. :)

On Aug 23, 1:51 am, javo [EMAIL PROTECTED] wrote:
 Ok thank you for your post, I choose tha way of editing CRUD (user/
 edit)
 can somebody show me the example of editing user/edit action, to edit
 both sf_guard_user and sf_guard_user_profile tables and connect them?
 thank you

 On Aug 22, 4:01 pm, Nicolas Perriault [EMAIL PROTECTED] wrote:

  On Fri, Aug 22, 2008 at 4:31 PM, javo [EMAIL PROTECTED] wrote:
   I'm new to symfony and I'd like to ask what is the best way to create
   a registration, (create some simple form, use crud user model? , ...)
   Is there any howto? I couldn't find anything Smile

  If you use symfony 1.0, you can take a look at what has been done for
  Symfonians using 
  sfGuard:http://symfonians.org/browser/branches/1.0/apps/main/modules/sfGuardAuth

  ++

  --
  Nicolas 
  Perriaulthttp://prendreuncafe.com-http://symfonians.net-http://sensiolabs.com
  Phone: +33 660 92 08 67

--~--~-~--~~~---~--~~
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 group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Symfony Assistance / Coach Needed

2008-08-24 Thread cindy

Hi Frank,

Contact me off list - [EMAIL PROTECTED]

I think I can help :)

On Aug 24, 1:56 am, xfh [EMAIL PROTECTED] wrote:
 will pay ... I’m quite good with html + excel. Need to upgrade to
 php / mysql for my current dynamic web-site projects. Have read +
 understand a php / mysql book and want to use Symfony as a php
 framework which is new to me. I need experienced assisting / coaching,
 either remote or on site, to get through the learning curve.

 Regards,
 Frank

--~--~-~--~~~---~--~~
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 group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---