[symfony-users] Re: ajax utf-8

2007-06-01 Thread purcaholic

Hi Gordon,

the Form.serialize() function from protoype uses encodeURIComponent()
which returns utf-8 encoded values. I suppose, the Ajax.Updater
encodes the parameters again, because of the encoding: 'UTF-8'
option.

Did you tried to use the Ajax.Updater without using encoding option?


purcaholic

On 1 Jun., 10:10, Franke Gordon [EMAIL PROTECTED] wrote:
 Hello,

 when i send the form the response is double encoded with utf-8?

 I use this code:
 script type=text/javascript
 form = $('post_edit_form');
   form.onsubmit = function () {
 new Ajax.Updater(
   'post_edit',
   form.action,
   { parameters: Form.serialize(this), evalScripts: true, encoding: 
 'UTF-8'  }
 );
 return false;
   };  
 /script

 So what ist he problem?

 beste Grüße
 Gordon

 -
 gordon franke
 application engineer

 die SKYTEC AG
 - deutschlands beste arbeitgeber 2003-2006
 - european best workplaces 2003-2005
 - european top 3 it-companies
 - europe's 500 - 100 fastest growing companies 2005
 SKYTEC AG | keltenring 11 | 82041 oberhaching
 t. +49.(0)89. 7 668 | f. +49.(0)89. 7 800 | m. (0)176.1066 0 668
 eMail: [EMAIL PROTECTED] | Internet:www.skytecag.com
 vorstand:  thomas geyer, christian veitl | vorsitzender des aufsichtsrates: 
 harald strötgen
 sitz der gesellschaft: oberhaching | registergericht: münchen, HRB 127943


--~--~-~--~~~---~--~~
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: trouble with Apache 2.2.3 and .htaccess in production environment

2007-06-01 Thread Matthias Nothhaft

Matthias Nothhaft wrote:
 Serkan Koyuncu wrote:
 Hi Matthias,

 on php 5  win xp  AMD processor , apache 2.x series mod_rewrite doesnt
 work.
 May be this is problem,

 
 mod_rewrite doesn't work at all with Apache 2.x ???
 
 I use Debian GNU/Linux, Apache 2.2.3 and PHP 5.2.2
 
 Hmm.. no solution out there?  :-(

Ok.. this was an administrator error.. sorry..
But if you have the same problem with debian simply do:

a2enmod rewrite
/etc/init.d/apache2 force-reload

That's it - all is fine now.. mod_rewrite was not enabled..

Regards,
Matthias


--~--~-~--~~~---~--~~
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] trouble with Apache 2.2.3 and .htaccess in production environment

2007-06-01 Thread Matthias Nothhaft

Hi,

I have troubles with Apache 2.2.3 and .htaccess in prod environment.

It does not work anymore. Apache 1.3 had no problems using the same
default configuration from symfony.

I can display the homepage but I cannot access any modules like user/login

In that case I get a 404 error: The requested URL /user/login was not
found on this server.

In dev it works.

Anyone here who can help?

Regards,
Matthias



--~--~-~--~~~---~--~~
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: Propel Criteria: select only a few fields

2007-06-01 Thread Greg Freeman

Joby,

While your solution certainly does work, Ch18 of the symfony
documentation has a section called 'Avoid Using Temporary Arrays'. Is
this section not related to my case because we are using a result set
instead of the usual hydration?


--~--~-~--~~~---~--~~
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: trouble with Apache 2.2.3 and .htaccess in production environment

2007-06-01 Thread Serkan Koyuncu
Hi Matthias,

on php 5  win xp  AMD processor , apache 2.x series mod_rewrite doesnt
work.
May be this is problem,

Regards


2007/6/1, Matthias Nothhaft [EMAIL PROTECTED]:


 Hi,

 I have troubles with Apache 2.2.3 and .htaccess in prod environment.

 It does not work anymore. Apache 1.3 had no problems using the same
 default configuration from symfony.

 I can display the homepage but I cannot access any modules like user/login

 In that case I get a 404 error: The requested URL /user/login was not
 found on this server.

 In dev it works.

 Anyone here who can help?

 Regards,
 Matthias



 


--~--~-~--~~~---~--~~
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: trouble with Apache 2.2.3 and .htaccess in production environment

2007-06-01 Thread Matthias Nothhaft

Serkan Koyuncu wrote:
 Hi Matthias,
 
 on php 5  win xp  AMD processor , apache 2.x series mod_rewrite doesnt
 work.
 May be this is problem,
 

mod_rewrite doesn't work at all with Apache 2.x ???

I use Debian GNU/Linux, Apache 2.2.3 and PHP 5.2.2

Hmm.. no solution out there?  :-(

Regards,
Matthias

--~--~-~--~~~---~--~~
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: DB password characters

2007-06-01 Thread Ville

Thanks for the reply Luciano! I made a small modification in
symfony/vendor/Propel.php on line 487:

   try {
+++$dsn['password'] = urldecode( $dsn['password'] );
   $con = Creole::getConnection($dsn);
  } catch (SQLException $e) {
   throw new PropelException($e);
  }

It worked... although I don't think it's a good practice modifying the
propel core! =)


On 6/1/07, Luciano A. Andrade [EMAIL PROTECTED] wrote:

 1.- Do change your password.
 If yoy cant. 2.- You could use php insede a yaml file. (i think with
 ?=MYPASSWRD ?)

 if you get the error at runing symfony propel-* you shuld try to copy
 you database to other mysql if you tring to build the schema.xml from
 the db, and insert the sql schema your self if you using
 propel-insert-sql (o create the db if propel-build-db is the
 problem)
 PD: Note that symfony propel-build-all runs propel-build-model/sql
 propel-create-db (o propel-build-db can't remember) and
 propel-insert-sql in that order.

 On 5/31/07, Ville [EMAIL PROTECTED] wrote:
 
  Hi everybody!
 
  I'm trying to build an app based on an existing database wich has a
  big password including '#', '$' and other ugly characters.
  For the first error message, I had to get an urlencoded() password
  (escaping didn't work), fine but the next error message killed me:
 
  [wrapped: connect failed [Native Error: Access denied for user
  'regtrb'@'10.7.2.254' (using password: YES)] [User Info: Array]]
 
  I tested on mysql console (locally connecting to the external server)
  and the username/password is working.
 
  Any advice? Thanks!
 
  
 

 


--~--~-~--~~~---~--~~
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: Propel Criteria: select only a few fields

2007-06-01 Thread Joby Walker

Correct.  If you continue reading the section there is an example of
using a custom creole method that does something quite similar...

jbw

On 6/1/07, Greg Freeman [EMAIL PROTECTED] wrote:

 Joby,

 While your solution certainly does work, Ch18 of the symfony
 documentation has a section called 'Avoid Using Temporary Arrays'. Is
 this section not related to my case because we are using a result set
 instead of the usual hydration?


 


--~--~-~--~~~---~--~~
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: DB password characters

2007-06-01 Thread Ant Cunningham

I have $ and ! in my passwords... I just put the string in single quotes in
the yaml and have had no issues.

On 6/1/07 10:39 AM, Ville [EMAIL PROTECTED] wrote:

 
 Thanks for the reply Luciano! I made a small modification in
 symfony/vendor/Propel.php on line 487:
 
try {
 +++$dsn['password'] = urldecode( $dsn['password'] );
$con = Creole::getConnection($dsn);
   } catch (SQLException $e) {
throw new PropelException($e);
   }
 
 It worked... although I don't think it's a good practice modifying the
 propel core! =)
 
 
 On 6/1/07, Luciano A. Andrade [EMAIL PROTECTED] wrote:
 
 1.- Do change your password.
 If yoy cant. 2.- You could use php insede a yaml file. (i think with
 ?=MYPASSWRD ?)
 
 if you get the error at runing symfony propel-* you shuld try to copy
 you database to other mysql if you tring to build the schema.xml from
 the db, and insert the sql schema your self if you using
 propel-insert-sql (o create the db if propel-build-db is the
 problem)
 PD: Note that symfony propel-build-all runs propel-build-model/sql
 propel-create-db (o propel-build-db can't remember) and
 propel-insert-sql in that order.
 
 On 5/31/07, Ville [EMAIL PROTECTED] wrote:
 
 Hi everybody!
 
 I'm trying to build an app based on an existing database wich has a
 big password including '#', '$' and other ugly characters.
 For the first error message, I had to get an urlencoded() password
 (escaping didn't work), fine but the next error message killed me:
 
 [wrapped: connect failed [Native Error: Access denied for user
 'regtrb'@'10.7.2.254' (using password: YES)] [User Info: Array]]
 
 I tested on mysql console (locally connecting to the external server)
 and the username/password is working.
 
 Any advice? Thanks!
 
 
 
 
 
 
 
  



--~--~-~--~~~---~--~~
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: PayPal Friendly RETURN and CANCEL URL

2007-06-01 Thread Jonathan Bryan

isn't it just

http://www.sweetwaterrecords.com?module=shoppingCartaction=purchaseComplete





slinky66 wrote:
 Hi,

 My Symfony site is version 0.63 and I'm adding PayPal as a payment
 option.
 In the SOAP request for setExpressCheckout, PayPal requires a URL to
 return to
 after the transaction completes on the Paypal site. That return URL
 should be this:

 http://www.sweetwaterrecords.com/shoppingCart/purchaseComplete/

 PayPal is throwing an ivalid URL error when I use the URL above so is
 there a way to write the URL above into a simple URL with GET
 parameters?


 Thanks


 




   


--~--~-~--~~~---~--~~
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] multi sfPropelVersionableBehaviorPlugin ?

2007-06-01 Thread [EMAIL PROTECTED]

Is it possible to use sfPropelVersionableBehaviorPlugin with 2,3 or more 
tables?
Not one like Articles but also Products, Users, Adresses etc. to version 
anything i like?

Anyone do that?



--~--~-~--~~~---~--~~
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: Propel Criteria: select only a few fields

2007-06-01 Thread Greg Freeman

Thanks I'm trying to find documentation on propel for the methods you
can use on result sets.

getInt, getString, getTimestamp etc

Know where I can find this?


--~--~-~--~~~---~--~~
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: Propel Criteria: select only a few fields

2007-06-01 Thread Joby Walker

Here is the Propel User guide: http://propel.phpdb.org/docs/user_guide/

Though I am not sure those methods are documented there.  I usually
just open up the relevant file and walk the methods...

jbw

On 6/1/07, Greg Freeman [EMAIL PROTECTED] wrote:

 Thanks I'm trying to find documentation on propel for the methods you
 can use on result sets.

 getInt, getString, getTimestamp etc

 Know where I can find this?


 


--~--~-~--~~~---~--~~
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: PayPal Friendly RETURN and CANCEL URL

2007-06-01 Thread Fabian Lange

Hi,
i am just guessing but either it is the lone trailing slash that paypal does 
not like or that the url does not have a web extension.
I would try to allow an unneeded parameter:

checkoutOK:
  url: /shoppingCart/purchaseComplete/:status
  param: { module: shoppingCart, action: purchaseComplete}

and then give paypal
http://www.sweetwaterrecords.com/shoppingCart/purchaseComplete/ok.html

.: Fabian


-Ursprüngliche Nachricht-
Von: symfony-users@googlegroups.com
Gesendet: 01.06.07 23:46:10
An: symfony-users@googlegroups.com
Betreff: [symfony-users] Re: PayPal Friendly RETURN and CANCEL URL



isn't it just

http://www.sweetwaterrecords.com?module=shoppingCartaction=purchaseComplete





slinky66 wrote:
 Hi,

 My Symfony site is version 0.63 and I'm adding PayPal as a payment
 option.
 In the SOAP request for setExpressCheckout, PayPal requires a URL to
 return to
 after the transaction completes on the Paypal site. That return URL
 should be this:

 http://www.sweetwaterrecords.com/shoppingCart/purchaseComplete/

 PayPal is throwing an ivalid URL error when I use the URL above so is
 there a way to write the URL above into a simple URL with GET
 parameters?


 Thanks


 




   






___
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192


--~--~-~--~~~---~--~~
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: propel/creole + sql version

2007-06-01 Thread Kiril Angov

$con = Propel::getConnection();
$rs = $con-getResource();
echo mysql_get_server_info($rs);

FYI, with $rs you can use any of the native php mysql functions (like 
mysql_get_client_info() 
http://jp.php.net/manual/en/function.mysql-get-client-info.php, 
mysql_get_host_info() 
http://jp.php.net/manual/en/function.mysql-get-host-info.php, etc)

Regards,
Kupo

Greg Freeman wrote:
 Does propel/creole have a method for returning the sql version string?


 

   


--~--~-~--~~~---~--~~
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: propel/creole + sql version

2007-06-01 Thread Kiril Angov

Ah, and if you prefer a query:
|
$query = SELECT VERSION() as mysql_version;
|

Greg Freeman wrote:
 Does propel/creole have a method for returning the sql version string?


 

   


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---