[symfony-users] Re: Best way to test sending of emails in development?

2008-05-15 Thread Nicolas Perriault

2008/5/15 markchicobaby [EMAIL PROTECTED]:

 Does anyone test sending of emails in a WAMP or Windows development
 environment?

You can fake a mail sending system using the sfEmail plugin:
http://trac.symfony-project.com/wiki/sfEmailPlugin

++

--
Nicolas

--~--~-~--~~~---~--~~
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: sf_request an instance of?

2008-05-15 Thread Nicolas Perriault

2008/5/15 Sumedh [EMAIL PROTECTED]:

 ?php echo get_class($sf_request)?
 in my template...and I got nothing printed... :(

Err, that's weird. What does say a var_dump($sf_request) ?

 And the method to use url_for would work for the URL's for which I
 have no rules...but what about the URL's that have some rules setup
 for them...

You can use ?php echo url_for('mymodule/myaction', true) ? as well

++

--
Nicolas

--~--~-~--~~~---~--~~
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: Best way to test sending of emails in development?

2008-05-15 Thread markchicobaby

Hi Gilles, yes I tried to use the Google SMTP server.  I couldn't get
it working, I got an unhandled exception.  See my forum post for my
mailer.yml settings

http://www.symfony-project.org/forum/index.php?t=rviewgoto=52076#msg_52076

M


On May 15, 7:48 pm, Gilles Doge [EMAIL PROTECTED] wrote:
 On May 15, 10:19 am, markchicobaby [EMAIL PROTECTED] wrote:

  I can't get symfony to send emails in my test environment (WAMP, Win
  XP).  Tried a few ways keep getting errors etc, am on WinXP so I guess
  that doesn't help.

 Did you try to use an external SMTP server ?
 You can do this with the mailer.yml file in a config/ folder.

 Example:

 dev:
   deliver:  on
   mailer:   smtp
   hostname: your_smtp_host
   port: 25
   username: username_if_required
   password: pass

 Gilles.
--~--~-~--~~~---~--~~
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: Best way to test sending of emails in development?

2008-05-15 Thread Tom Haskins-Vaughan

Don't know if it will make any difference, but I've had success with 
Swift Mail and an external SMTP server from the dev environment.

markchicobaby wrote:
 Hi Gilles, yes I tried to use the Google SMTP server.  I couldn't get
 it working, I got an unhandled exception.  See my forum post for my
 mailer.yml settings
 
 http://www.symfony-project.org/forum/index.php?t=rviewgoto=52076#msg_52076
 
 M
 
 
 On May 15, 7:48 pm, Gilles Doge [EMAIL PROTECTED] wrote:
 On May 15, 10:19 am, markchicobaby [EMAIL PROTECTED] wrote:

 I can't get symfony to send emails in my test environment (WAMP, Win
 XP).  Tried a few ways keep getting errors etc, am on WinXP so I guess
 that doesn't help.
 Did you try to use an external SMTP server ?
 You can do this with the mailer.yml file in a config/ folder.

 Example:

 dev:
   deliver:  on
   mailer:   smtp
   hostname: your_smtp_host
   port: 25
   username: username_if_required
   password: pass

 Gilles.
  
 

--~--~-~--~~~---~--~~
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: Best way to test sending of emails in development?

2008-05-15 Thread Nicolas Perriault

2008/5/15 markchicobaby [EMAIL PROTECTED]:

 Hi Gilles, yes I tried to use the Google SMTP server.  I couldn't get
 it working, I got an unhandled exception.  See my forum post for my
 mailer.yml settings

 http://www.symfony-project.org/forum/index.php?t=rviewgoto=52076#msg_52076

GMail smtp server uses TLS, you should use a mail sending library
which can handle this protocol (SwiftMailer does)

++

-- 
Nicolas

--~--~-~--~~~---~--~~
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] anybody near Syracuse, New York, USA?

2008-05-15 Thread Brian Hoke
Our firm is doing more and more symfony development - we'd love to meet with
folks face-to-face as an informal user group, if anyone is in Upstate New
York, USA. Making it to Europe or wherever for a conference or gathering
someday is definitely on our wishlist, but meeting with developers closer to
us is more likely in the short term. Thanks,

~Brian

-- 
Brian P. Hoke
Bentley  Hoke LLC
315-446-2300
www.bentleyhoke.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@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] phpThumb

2008-05-15 Thread CX

Hi,
I've been using phpThumb for my projects and would like to use it with
Symfony.

Can someone tell me how to use it? How to incorporate it with Symfony
or something?

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: phpThumb

2008-05-15 Thread Thomas Rabaix

You can use the sfThumbnailPlugin ...

On Thu, May 15, 2008 at 3:16 PM, CX [EMAIL PROTECTED] wrote:

 Hi,
 I've been using phpThumb for my projects and would like to use it with
 Symfony.

 Can someone tell me how to use it? How to incorporate it with Symfony
 or something?

 Thanks
 




-- 
Thomas Rabaix

Internet Consultant

--~--~-~--~~~---~--~~
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: sfSimpleCMS - how to redirect from backend to frontend

2008-05-15 Thread forkmantis

This may be of interest to the two of you:

http://www.symfony-project.org/forum/index.php/mv/msg/7460/31105/

On May 15, 4:12 am, Jeanmonod David [EMAIL PROTECTED] wrote:
 I have the same problem as you... Did you find a proper way to do
 that?

 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] Exceptions and redirect in actions

2008-05-15 Thread Gunnar Lium
Hi!

I have the following (simplified code):

try {

//Code that might throw an exception
$this-setFlash('action_ok', 'Success message');
$this-redirect('@other_page');

}catch (Exception $e) {
$this-setFlash('action_error', 'Error message');
}
//if Exception is caught, no need to redirect (redisplay a form)

When executing this code, the redirect works fine, but both action_ok and
action_error are set. This means that after redirecting, the code in the
catch-block is executed. Is this the expected behavior? It seems a bit odd
to me...

Regards, Gunnar

--~--~-~--~~~---~--~~
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: Exceptions and redirect in actions

2008-05-15 Thread Carl Vondrick

On Thu, May 15, 2008 at 04:33:51PM +0200, Gunnar Lium wrote:
 When executing this code, the redirect works fine, but both action_ok and
 action_error are set. This means that after redirecting, the code in the
 catch-block is executed. Is this the expected behavior? It seems a bit odd to
 me...

-redirect() and -forward() both throw an sfStopException no matter 
what.  You must catch those and throw them again.

Carl

--~--~-~--~~~---~--~~
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: Exceptions and redirect in actions

2008-05-15 Thread gunnarlium

On May 15, 4:40 pm, Carl Vondrick [EMAIL PROTECTED]
wrote:
 On Thu, May 15, 2008 at 04:33:51PM +0200, Gunnar Lium wrote:
  When executing this code, the redirect works fine, but both action_ok and
  action_error are set. This means that after redirecting, the code in the
  catch-block is executed. Is this the expected behavior? It seems a bit odd 
  to
  me...

 -redirect() and -forward() both throw an sfStopException no matter
 what.  You must catch those and throw them again.

 Carl

Ok. It was pretty easy to circumvent:

  }catch (Exception $e) {
$errors = true;
$this-setFlash('action_error', 'Error message');
  }
  $this-redirectUnless($errors, '@other_action');

I guess there's a good explanation for why forward/redirect throws an
exception. Care to provide a two-sentence briefing?

-gunnar
--~--~-~--~~~---~--~~
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: timeout issue

2008-05-15 Thread Mohammad Ali Safari
Hi Ali and Thomas
I tried what you guys suggested and it worked perfectly. I had this problem
for over 1 year and could never resolve it without your help; greatly
appreciated.

As you pointed out the issue was session.gc_maxlifetime and
session.save_path that needed to be changed.
I changed them directly in php.ini and the issue is resolved.

I believe symfony should do this by default and change session.save_path to
somewhere within the application folder.


cheers
-Mohammad

On Tue, May 13, 2008 at 9:26 AM, Thomas Rabaix [EMAIL PROTECTED]
wrote:


 You should read this post :

 http://www.centresource.com/blog/2006/05/23/php-session-lifetime-an-adventure/

 and then modify the foctories.yml
  storage:
class: sfSessionStorage
param:
  session_name: symfony
  session_cookie_path: /mypath

 Thomas

 On Tue, May 13, 2008 at 1:30 PM, Alistair Stead
 [EMAIL PROTECTED] wrote:
  The values you have described relate to cookies. These are persistent
 data
  containers held by the client browser and are different to the session
  values held on the server and accessible through PHP.
 
  The user credentials and validation are held in server session and you
 will
  need to modify these on the server to extend them past the default 30
 minute
  expiration.
 
  Ali
 
  2008/5/12 Mohammad Ali Safari [EMAIL PROTECTED]:
 
 
   I have seen several discussions over the forums and never saw a
 complete
  answer to it.
  
   My problem is that sessions expire within 30 minutes regardless of the
  timeout value in my settings.yml
  
   I check the cookies and it says the session cookie is expiring in a
 month
  (which is correct by my timeout value which is 180) but still it does
  not change anything. web_deub also tell me that sf_timeout is correct.
  
   But regardless of these, users are logged out every 30 mins.
  
   cheers,
   --Mohammad
  
  
  
 
 
 
   
 



 --
 Thomas Rabaix

 Internet Consultant

 


--~--~-~--~~~---~--~~
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] http://pear.symfony-project.com/get/symfony-1.1.0.tgz http status 404

2008-05-15 Thread Dejan Spasic

Trying to install the symfony rc1 via pear, i notice that the package
don't exists under http://pear.symfony-project.com/get/symfony-1.1.0.tgz.
Did i missed something?
--~--~-~--~~~---~--~~
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: timeout issue

2008-05-15 Thread Fabien POTENCIER


Mohammad Ali Safari wrote:
 Hi Ali and Thomas
 I tried what you guys suggested and it worked perfectly. I had this 
 problem for over 1 year and could never resolve it without your help; 
 greatly appreciated.
 
 As you pointed out the issue was session.gc_maxlifetime and 
 session.save_path that needed to be changed.
 I changed them directly in php.ini and the issue is resolved.
 
 I believe symfony should do this by default and change session.save_path 
 to somewhere within the application folder.

I don't think this is a good idea to change php.ini settings for things 
like save_path or gc_maxlifetime by default. People, especially if they 
have decidated servers, may rely on the values they set in their 
php.ini. The good news is that you can change the save_path, it's really 
easy as Thomas showed in its email.

As far as gc_maxlifetime is concerned, I've added a check in the 
sfBasicSecurityUser class that changes the gc_maxlifetime value if the 
timeout value if it's greater than the php.ini gc_maxlifetime value.

Fabien

 
 
 cheers
 -Mohammad
 
 On Tue, May 13, 2008 at 9:26 AM, Thomas Rabaix [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:
 
 
 You should read this post :
 
 http://www.centresource.com/blog/2006/05/23/php-session-lifetime-an-adventure/
 
 and then modify the foctories.yml
  storage:
class: sfSessionStorage
param:
  session_name: symfony
  session_cookie_path: /mypath
 
 Thomas
 
 On Tue, May 13, 2008 at 1:30 PM, Alistair Stead
 [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
   The values you have described relate to cookies. These are
 persistent data
   containers held by the client browser and are different to the
 session
   values held on the server and accessible through PHP.
  
   The user credentials and validation are held in server session
 and you will
   need to modify these on the server to extend them past the
 default 30 minute
   expiration.
  
   Ali
  
   2008/5/12 Mohammad Ali Safari [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]:
  
  
I have seen several discussions over the forums and never saw a
 complete
   answer to it.
   
My problem is that sessions expire within 30 minutes regardless
 of the
   timeout value in my settings.yml
   
I check the cookies and it says the session cookie is expiring
 in a month
   (which is correct by my timeout value which is 180) but still
 it does
   not change anything. web_deub also tell me that sf_timeout is
 correct.
   
But regardless of these, users are logged out every 30 mins.
   
cheers,
--Mohammad
   
   
   
  
  
  

  
 
 
 
 --
 Thomas Rabaix
 
 Internet Consultant
 
 
 
 
  

--~--~-~--~~~---~--~~
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: http://pear.symfony-project.com/get/symfony-1.1.0.tgz http status 404

2008-05-15 Thread Fabien POTENCIER

1.1.0 is not yet release. Try

http://pear.symfony-project.com/get/symfony-1.1.0RC1.tgz

Fabien

--
Fabien Potencier
Sensio CEO - symfony lead developer
sensiolabs.com | symfony-project.com | aide-de-camp.org
Tél: +33 1 40 99 80 80


Dejan Spasic wrote:
 Trying to install the symfony rc1 via pear, i notice that the package
 don't exists under http://pear.symfony-project.com/get/symfony-1.1.0.tgz.
 Did i missed something?
  
 
 


--~--~-~--~~~---~--~~
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] View this page www.webhostingsfree.com

2008-05-15 Thread siva

 Do you need free webhostings for your websites


   Common guys


   Go to  www.webhostingsfree.com


It's having more than 500 free
webhostings 
--~--~-~--~~~---~--~~
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] Object select in partial - multiple queries

2008-05-15 Thread [EMAIL PROTECTED]

I have the following in a partial
?php echo object_select_tag('staff_id', 'getStaff', array (
'related_class' = 'Contact',
'peer_method' = 'getStaff',
'control_name' = 'staff_id',
'include_custom' = 'By',
'include_blank' = false,
)); ?

in examining my log files, I've realized that there is an sql for
every tsime this is called.

is there a better way?
--~--~-~--~~~---~--~~
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: Object select in partial - multiple queries

2008-05-15 Thread Tom Haskins-Vaughan

Can you show the relevant tables in your schema?

[EMAIL PROTECTED] wrote:
 I have the following in a partial
 ?php echo object_select_tag('staff_id', 'getStaff', array (
 'related_class' = 'Contact',
 'peer_method' = 'getStaff',
 'control_name' = 'staff_id',
 'include_custom' = 'By',
 'include_blank' = false,
 )); ?
 
 in examining my log files, I've realized that there is an sql for
 every tsime this is called.
 
 is there a better way?
  
 

-- 
Tom Haskins-Vaughan
Temple Street Media: Design and Development for the Web
[EMAIL PROTECTED] | www.templestreetmedia.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@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: Javascript Bug

2008-05-15 Thread Tom Haskins-Vaughan

 Why do you want to use the helper at all?

Good question!

Thanks, Fabian :)


 .: Fabian
 
 -Original Message-
 From: symfony-users@googlegroups.com [mailto:[EMAIL PROTECTED]
 On Behalf Of Tom Haskins-Vaughan
 Sent: Donnerstag, 15. Mai 2008 21:33
 To: symfony-users@googlegroups.com
 Subject: [symfony-users] Javascript Bug
 
 
 Hi Guys,
 
 I'm trying to do get this:
 
 a onclick=document.location = $('service') href=#Click/a
 
 By doing this:
 
 ?php echo link_to('Click', '#', onclick=document.location = 
 $('service')) ?
 
 But actually I'm getting this:
 
 a onclick=document. location=$(#039;service#039;) href=#Click/a
 
 Any ideas?
 
 TIA
 

-- 
Tom Haskins-Vaughan
Temple Street Media: Design and Development for the Web
[EMAIL PROTECTED] | www.templestreetmedia.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@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] I would like to join the linked in group

2008-05-15 Thread Adam Freetly
My membership is pending approval. My firm has immediate need of a
freelancer to help us migrate/clone an existing symfony site.

 

 

Adam Freetly

Designer


-

Blueprint Design Studio, Inc.

5563 N Elston Av

Chicago, IL 60630

 http://www.blueprintds.com/ www.blueprintds.com 

Phone: (312) 698-8837

Fax:(773) 509-9321

-

 

 

 

 


--~--~-~--~~~---~--~~
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] I would like to join the linked in group

2008-05-15 Thread adam
My membership is pending approval.  My firm has immediate need of a
freelancer to assist us in migrating/cloning an existing symfony-powered
site.



Adam Freetly

Designer


-

*Blueprint Design Studio, Inc.***

5633 N Elston Av

Chicago, IL 60630

www.blueprintds.com

Phone: (312) 698-8837

Fax:(773) 509-9321

-

--~--~-~--~~~---~--~~
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] Symfony 1.1 Permissions error

2008-05-15 Thread Keith

Okay so I installed Symfony 1.1 on my Apple (Leopard) and I'm running
into some problems getting the /sf alias to work properly.

Here's what I've got:

Virtual Hosts:

Directory “/usr/share/pear/data/symfony/web/sf/”
  AllowOverride All
  Allow from All
/Directory

VirtualHost *:80
DocumentRoot /Users/keith/Sites/sandbox/web
ServerName www.sandbox.dev
DirectoryIndex index.php

Alias /sf /usr/share/pear/data/symfony/web/sf

Directory /Users/keith/Sites/sandbox/web
AllowOverride All
Allow from All
/Directory
/VirtualHost

I am able to access the site from: http://www.sandbox.dev/

I do not, however, see the stylesheet or images.

When I access: http://www.sandbox.dev/sf/sf_default/images/sfTLogo.png

I get 403 Forbidden error

You don't have permission to access /sf/sf_default/images/sfTLogo.png
on this server.

Any suggestions?

I have made the /sf directory accessible to everyone for read/write
which I don't think I should have to do, but even that doesn't fix the
issue.

Another set of eyes can probably quickly pick out the problem and I
appreciate any assistance.

Thank You!
--~--~-~--~~~---~--~~
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] Problems with translation and I18N

2008-05-15 Thread Reynier Perez Mira

Hi,
I've been reading detailed the Symfony Book and paying greater attention to 
the Chapter 13 I18n And L10n.  I need to translate a application interface 
because I need this in English and Spanish. This is what I have done until now:

1. Enable the use of i18n in /apps/backend/config/settings.yml
 all:
   .settings:
 charset:utf-8
 i18n:   on

2. Enable the use of i18n in /apps/backend/config/i18n.yml
 all:
  default_culture: en_US
  source:  XLIFF
  debug:   off
  cache:   off

3. Create two (2) files to test if Spanish translation works under 
/apps/backend/i18n/messages.es.xml and /apps/backend/i18n/messages.es_ES.xml 
and wrote this text inside which one:

?xml version=1.0 ?
xliff version=1.0
file orginal=global source-language=es_ES datatype=plaintext
body
trans-unit id=1
source
nombre_licencia
/source
target
Listar
/target
/trans-unit
trans-unit id=2
source
nombre categoria
/source
target
Nombre Categoría
/target
/trans-unit
/body
/file
/xliff

4. In my template I have this code:
?php echo __('nombre_licencia') ?

When I call the page in the browser I get the untranslated text, means 
nombre_licencia. Why? What I'm doing wrong?
Ing. Reynier Pérez Mira
Grupo Soporte al Desarrollo - Dirección Técnica IP



--~--~-~--~~~---~--~~
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: I would like to join the linked in group

2008-05-15 Thread Ant Cunningham

On 5/15/08 5:59 PM, adam [EMAIL PROTECTED] wrote:

 My membership is pending approval.  My firm has immediate need of a freelancer
 to assist us in migrating/cloning an existing symfony-powered site.

I'm open for the next 60 days for offsite (I'm in Columbus, OH). Possibly
longer. Are you just re-skinning an existing app and adding/removing modules
for a different client or is it more in depth than that?


-- 
Ant Cunningham
Prodigital Son
Graphic Designer | Web Developer

Vector Based Design [ VECTR BAS-D ]
[EMAIL PROTECTED]
ph: 614.578.4498





--~--~-~--~~~---~--~~
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 propel-init-admin

2008-05-15 Thread FunkyChciekn818

its already like that

On May 15, 1:40 am, Kostas Papadimitriou [EMAIL PROTECTED] wrote:
 Of course after the change you need to re-build your model (symfony
 propel-build-model) and clear your cache (symfony cc)

 Kostas Papadimitriou wrote:
  Just a guess,

  in your config/propel.ini

  set propel.builder.addIncludes to false

  .
  propel.builder.nodepeerstub.class  =
  propel.engine.builder.om.php5.PHP5ExtensionNodePeerBuilder

  propel.builder.addIncludes = false
  propel.builder.addComments = false

  propel.builder.addBehaviors = false
  ..

  FunkyChciekn818 wrote:
  That does not work.

  On May 14, 5:51 am, Marcolino [EMAIL PROTECTED] wrote:

  Try symfony cc

  On May 14, 4:57 am, FunkyChciekn818 [EMAIL PROTECTED] wrote:

  Can any one help?
  I really need to get my backend to work.

  On May 13, 12:06 pm, FunkyChciekn818 [EMAIL PROTECTED]
  wrote:

  This is what i Ran:

  symfony init-app backend
  symfony propel-init-admin backend user User

  And i go tohttp://example.com/backend.php/user
  it get a full white page

  So i go tohttp://example.com/backend_dev.php/user
  and i get Fatal error: Cannot redeclare class MapBuilder in /usr/
  share/php/symfony/vendor/propel/map/MapBuilder.php on line 52

  So i check cache/backend/dev/modules/
  there is nothing

  I am using a schema.yml instead of schema.xml

  So what is the problem why its it not working?
  Did i not setup something correctly?
--~--~-~--~~~---~--~~
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] Change database connection on the fly

2008-05-15 Thread Tintin

Hi all

I have a database connection  defined as the following:

 owner:
class:  sfPropelDatabase
param:
  dsn:  mysql://symfony:[EMAIL PROTECTED]/owner


The problem is that the name of the database depends on the name of
the owner that is defined in dynamically in the application.

So I need to be able to change the database name of the connection on
the fly.

I know that symfony provides a sfConfig class to access configuration
but it does not allow access  to the database configuration.

does any one have an idea?

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: Problem with propel-init-admin

2008-05-15 Thread FunkyChciekn818

Problem was fixed it was because for some reason the lib/model/map/
MapBuilder.php, most likely because of my schema.yml.
all i had to do is delete the lib/model/map/MapBuilder.php file and
everything work fine.

But Thanks for all your Help!

On May 15, 8:33 pm, FunkyChciekn818 [EMAIL PROTECTED] wrote:
 its already like that

 On May 15, 1:40 am, Kostas Papadimitriou [EMAIL PROTECTED] wrote:

  Of course after the change you need to re-build your model (symfony
  propel-build-model) and clear your cache (symfony cc)

  Kostas Papadimitriou wrote:
   Just a guess,

   in your config/propel.ini

   set propel.builder.addIncludes to false

   .
   propel.builder.nodepeerstub.class  =
   propel.engine.builder.om.php5.PHP5ExtensionNodePeerBuilder

   propel.builder.addIncludes = false
   propel.builder.addComments = false

   propel.builder.addBehaviors = false
   ..

   FunkyChciekn818 wrote:
   That does not work.

   On May 14, 5:51 am, Marcolino [EMAIL PROTECTED] wrote:

   Try symfony cc

   On May 14, 4:57 am, FunkyChciekn818 [EMAIL PROTECTED] wrote:

   Can any one help?
   I really need to get my backend to work.

   On May 13, 12:06 pm, FunkyChciekn818 [EMAIL PROTECTED]
   wrote:

   This is what i Ran:

   symfony init-app backend
   symfony propel-init-admin backend user User

   And i go tohttp://example.com/backend.php/user
   it get a full white page

   So i go tohttp://example.com/backend_dev.php/user
   and i get Fatal error: Cannot redeclare class MapBuilder in /usr/
   share/php/symfony/vendor/propel/map/MapBuilder.php on line 52

   So i check cache/backend/dev/modules/
   there is nothing

   I am using a schema.yml instead of schema.xml

   So what is the problem why its it not working?
   Did i not setup something correctly?
--~--~-~--~~~---~--~~
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] List of Live Symfony Sites?

2008-05-15 Thread Richtermeister

Hi all,

quick question. I know I've come accross this before, but I can't find
it right now..
Where is the list of live websites that are built with Symfony?
We just released a new site (www.activemotif.com), and I'd like to
submit it.

Thanks all,
have a great night.

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