[symfony-users] Re: FormFilter - sfWidgetFormChoice 'multiple' = true ... error

2010-01-26 Thread Tom Ptacnik
Thank you very much, that was exactly what I needed.


I modified (generalized) the method a little (inspired by methods in
sfFormFilterDoctrine):

public function addTkstateColumnQuery($query, $field, $value)
{
$fieldName = $this-getFieldName($field);

if (!empty($value))
{
$query-andWhereIn(sprintf('%s.%s', 
$query-getRootAlias(),
$fieldName), $value);
}
}

On 19 led, 20:15, Tom Ptacnik to...@tomor.cz wrote:
 Thank you very much, I'll try.

 On 15 led, 14:47, ken marfillas...@gmail.com wrote:



  You need to add a custom query method in your filter class.

    public function addTkskateColumnQuery($query, $field, $value)
    {
          if (!empty($value))
      {
        $query-addWhereIn('p. tkstate', $value);
      }
    }

  On Jan 15, 5:50 pm, Tom Ptacnik to...@tomor.cz wrote:

   Nobody filter a list by checkboxes or by a multiple selectbox?

   On 11 led, 20:51, Tom Ptacnik to...@tomor.cz wrote:

Hello,

I have classic admin generated backend (Symfony 1.4). Today I've tried
to customize the filter for the list view.

The problem is that I want to filter by multiple select. So I've
changed default widgets in configure method in my TicketFormFilter
class from:

'tkstate'    = new sfWidgetFormChoice(array('choices' = array('' =
'', 'new' = 'new', 'waitingforuser' = 'waitingforuser',
'waitingforadmin' = 'waitingforadmin', 'closed' = 'closed',
'deleted' = 'deleted'))),

'tkstate'    = new sfValidatorChoice(array('required' = false,
'choices' = array('new' = 'new', 'waitingforuser' =
'waitingforuser', 'waitingforadmin' = 'waitingforadmin', 'closed' =
'closed', 'deleted' = 'deleted'))),

to

$this-widgetSchema['tkstate'] = new sfWidgetFormChoice(array
('choices' = array('' = '', 'new' = 'new', 'waitingforuser' =
'waitingforuser', 'waitingforadmin' = 'waitingforadmin', 'closed' =
'closed', 'deleted' = 'deleted'), 'multiple' = true));

        $this-validatorSchema['tkstate'] = new sfValidatorChoice(array
('required' = false, 'choices' = array('new' = 'new',
'waitingforuser' = 'waitingforuser', 'waitingforadmin' =
'waitingforadmin', 'closed' = 'closed', 'deleted' = 'deleted'),
'multiple' = true));

... only added the multiple parameter.

But when i click on the filter submit (with two selected items: new,
waitingforuser), I got this error:

stack trace
at ()
in SF_ROOT_DIR\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib
\vendor\doctrine\Doctrine\Connection.php line 1082 ...
            $message .= sprintf('. Failing Query: %s', $query);
        }
        $exc  = new $name($message, (int) $e-getCode());

        if ( ! isset($e-errorInfo) || ! is_array($e-errorInfo)) {
            $e-errorInfo = array(null, null, null, null);
        }
at Doctrine_Connection-rethrowException(object('PDOException'), object
('Doctrine_Connection_Statement'))
in SF_ROOT_DIR\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib
\vendor\doctrine\Doctrine\Connection\Statement.php line 269 ...
at Doctrine_Connection_Statement-execute(array('new',
'waitingforuser'))
in SF_ROOT_DIR\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib
\vendor\doctrine\Doctrine\Connection.php line 1006 ...
at Doctrine_Connection-execute('SELECT COUNT(*) AS num_results FROM
ticket t WHERE t.tkstate = ?', array('new', 'waitingforuser'))
in SF_ROOT_DIR\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib
\vendor\doctrine\Doctrine\Connection.php line 800 ...
at Doctrine_Connection-fetchAll('SELECT COUNT(*) AS num_results FROM
ticket t WHERE t.tkstate = ?', array('new', 'waitingforuser'))
in SF_ROOT_DIR\lib\vendor\symfony\lib\plugins\sfDoctrinePlugin\lib
\vendor\doctrine\Doctrine\Query.php line 2108 ...

The problem seems to be in the generated query ... the should be OR
statement (for this multiple choice), but it looks that it's generated
classic simple WHERE, and as parameter is send whole array... and
doctrine is confused of course

Maybe the problem is only in my application.

Did anybody of you ever tried to filter by multiple select?

-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] Re: Subdomain dynamicly

2010-01-26 Thread seifolah Ghaderi
Hi again.
For test sub domain I have a problem .
I have a win xp and installed wamp on it.
After some googleing I find how to confige virtual host name based.I
use this confige in my host file(in C:\WINDOWS\system32\drivers\etc)

127.0.0.1   localhost
127.0.0.1   mysite.web
127.0.0.1   www.my.com
127.0.0.1   *.my.com

And in my httpd.conf :

VirtualHost *:80
  DocumentRoot E:/wamp/www

ServerName localhost
  DirectoryIndex index.php
/VirtualHost

VirtualHost *:80
  DocumentRoot E:/dev/sfproject/mysite/web
  ServerAlias *.my.com
ServerName www.my.com
  DirectoryIndex index.php
/VirtualHost

Now I can access my host with www.my.com But I can't access
subdomains.For example example1.my.com,It show page not found error.
Any idea?

On Wed, Jan 20, 2010 at 11:00 AM, seifolah Ghaderi sepel...@gmail.com wrote:
 Thanks .I try it.

 On Tue, Jan 19, 2010 at 6:14 PM, wissl andreas.wi...@googlemail.com wrote:
 There is the excellente part Advanced Routing of the 2009 symfony
 advent calendar, that is related to your topic. Have you read it?
 Otherwise give it a try!

 http://www.symfony-project.org/advent_calendar/2/en
 http://www.symfony-project.org/advent_calendar/3/en

 On 19 Jan., 14:36, sepelloo sepel...@gmail.com wrote:
 Hi all.
 I want to generate these url based on one of my tables.
 For example for each record in table section I want to generate:
 section_1.mysite.com
 or section_X.mysite.com
 and if then user select one of my caregory then url will
 be:section_1.mysite.com/cat/id/1
 I want to  refer these url to on module.
 Any idea?

 --
 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 unsubscribe from this group, send email to 
 symfony-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/symfony-users?hl=en.






-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: Symfony Filter

2010-01-26 Thread Asif Ali M
Thanks Dheeraj.

You are right. the flow is what you explained.

What I am trying to find is...

Is it a good practice in symfony to have my custom filter run before
the security filter?


Thanks
-Asif

On Jan 26, 8:20 am, Dheeraj Kumar Aggarwal dheerajcom...@gmail.com
wrote:
 Hi

 in my view .

 if you place your filter below the security filter ---
 In security filter, symfony will check whether the user is logged in or not
 and if the user is not logged in, it will be redirected to home page as
 specified by yourself

 then again the whole cycle repeats
 but now the request url is home page.

 first goes to security filter

 then it goes to your filter, and then user is automatically logged in
 and user is on the home page

 but if you place your filter above the security filter ---
 first it will automatically logged in by your filter
 then it goes to security filter, the user is already logged in so no
 redirections will be there.

 On Mon, Jan 25, 2010 at 6:34 PM, Mohammad Asif Ali
 asifali.m...@gmail.comwrote:



  Any suggestions on my filter execution flow?

  On Jan 23, 4:53 pm, Asif Ali M l...@reloadtheweb.com wrote:
   Hello Symfonians,

   I am working on symfony 1.0 application. Its a kind of Software as
   Service model.

   When a user registers he will get his own site (frontend/backend). The
   users can signup for a 30 days trails. And we have a help document
   which is having backend page links.

   In the Backend application we are using a filter to auto detect the
   site.If its in trail mode the filter will do auto login and redirected
   to the accessed page.

   But this is working when we put our filter in the following way
   ( Above security filter ). If I put the below security its
   automatically logged in but landed on admin homepage instead of the
   accessed page

   I would like to know putting a filter above the Security will be a
   problem for the application.

   Please share your views

   rendering: ~
   web_debug: ~

   trail_site_login:
     class: trailSiteLoginFilter

   security:  ~

   # generally, you will want to insert your own filters here

   # instead of putting here I put the filer above the security

   cache:     ~
   common:    ~
   flash:     ~
   execution: ~

   Thanks
   -Asif

  --
  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 unsubscribe from this group, send email to
  symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en.

 --
 Regards,
 Dheeraj

-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Download day by day code for symfony guide

2010-01-26 Thread Pau Peris
Hi to all,

does anyone know where can i download day by day code for Symfony Guide?

http://www.symfony-project.org/jobeet/1_4/Doctrine/en/


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-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] Download day by day code for symfony guide

2010-01-26 Thread Alexandru-Emil Lupu
Via svn doc or there i think is a book A pdf..

sent via htc magic

On Jan 26, 2010 12:01 PM, Pau Peris sibok1...@gmail.com wrote:

Hi to all,

does anyone know where can i download day by day code for Symfony Guide?

http://www.symfony-project.org/jobeet/1_4/Doctrine/en/


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-us...@googlegroups.com.
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
.
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en.

-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] Download day by day code for symfony guide

2010-01-26 Thread Gábor Fási
http://svn.jobeet.org/doctrine/tags/

This is the 1.2 version, according to `svn log` it hasn't been updated for 1.4.

On Tue, Jan 26, 2010 at 11:01, Pau Peris sibok1...@gmail.com wrote:
 Hi to all,

 does anyone know where can i download day by day code for Symfony Guide?

 http://www.symfony-project.org/jobeet/1_4/Doctrine/en/


 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-us...@googlegroups.com.
 To unsubscribe from this group, send email to 
 symfony-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/symfony-users?hl=en.



-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] Download day by day code for symfony guide

2010-01-26 Thread Alexandru-Emil Lupu
Here it is ...

http://svn.symfony-project.org/doc/branches/1.4/jobeet/en/

On Tue, Jan 26, 2010 at 12:06 PM, Gábor Fási maerl...@gmail.com wrote:
 http://svn.jobeet.org/doctrine/tags/

 This is the 1.2 version, according to `svn log` it hasn't been updated for 
 1.4.

 On Tue, Jan 26, 2010 at 11:01, Pau Peris sibok1...@gmail.com wrote:
 Hi to all,

 does anyone know where can i download day by day code for Symfony Guide?

 http://www.symfony-project.org/jobeet/1_4/Doctrine/en/


 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-us...@googlegroups.com.
 To unsubscribe from this group, send email to 
 symfony-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/symfony-users?hl=en.



 --
 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 unsubscribe from this group, send email to 
 symfony-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/symfony-users?hl=en.





-- 
Have a nice day!
Alecs

As programmers create bigger  better idiot proof programs, so the
universe creates bigger  better idiots!
I am on web:  http://www.alecslupu.ro/
I am on twitter: http://twitter.com/alecslupu
I am on linkedIn: http://www.linkedin.com/in/alecslupu
Tel: (+4)0722 621 280

-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



RE: [symfony-users] Download day by day code for symfony guide

2010-01-26 Thread Olivier LOYNET
Use SVN for that

Doctrine version
http://svn.jobeet.org/doctrine/tags/

Olivier


 -Message d'origine-
 De : symfony-users@googlegroups.com [mailto:symfony-
 us...@googlegroups.com] De la part de Pau Peris
 Envoyé : mardi 26 janvier 2010 11:01
 À : symfony users
 Objet : [symfony-users] Download day by day code for symfony guide
 
 Hi to all,
 
 does anyone know where can i download day by day code for Symfony Guide?
 
 http://www.symfony-project.org/jobeet/1_4/Doctrine/en/
 
 
 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-us...@googlegroups.com.
 To unsubscribe from this group, send email to symfony-
 users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en.

-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] Download day by day code for symfony guide

2010-01-26 Thread Pau Peris
Thanks a lot for your quick answers :)

2010/1/26 Alexandru-Emil Lupu gang.al...@gmail.com:
 Here it is ...

 http://svn.symfony-project.org/doc/branches/1.4/jobeet/en/

 On Tue, Jan 26, 2010 at 12:06 PM, Gábor Fási maerl...@gmail.com wrote:
 http://svn.jobeet.org/doctrine/tags/

 This is the 1.2 version, according to `svn log` it hasn't been updated for 
 1.4.

 On Tue, Jan 26, 2010 at 11:01, Pau Peris sibok1...@gmail.com wrote:
 Hi to all,

 does anyone know where can i download day by day code for Symfony Guide?

 http://www.symfony-project.org/jobeet/1_4/Doctrine/en/


 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-us...@googlegroups.com.
 To unsubscribe from this group, send email to 
 symfony-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/symfony-users?hl=en.



 --
 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 unsubscribe from this group, send email to 
 symfony-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/symfony-users?hl=en.





 --
 Have a nice day!
 Alecs

 As programmers create bigger  better idiot proof programs, so the
 universe creates bigger  better idiots!
 I am on web:  http://www.alecslupu.ro/
 I am on twitter: http://twitter.com/alecslupu
 I am on linkedIn: http://www.linkedin.com/in/alecslupu
 Tel: (+4)0722 621 280

 --
 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 unsubscribe from this group, send email to 
 symfony-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/symfony-users?hl=en.



-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] Download day by day code for symfony guide

2010-01-26 Thread Pau Peris
After configuring my vhost, can i just run:

svn co http://svn.jobeet.org/doctrine/tags/release_day_10 myJobeetDir

Thanks

2010/1/26 Pau Peris sibok1...@gmail.com:
 Thanks a lot for your quick answers :)

 2010/1/26 Alexandru-Emil Lupu gang.al...@gmail.com:
 Here it is ...

 http://svn.symfony-project.org/doc/branches/1.4/jobeet/en/

 On Tue, Jan 26, 2010 at 12:06 PM, Gábor Fási maerl...@gmail.com wrote:
 http://svn.jobeet.org/doctrine/tags/

 This is the 1.2 version, according to `svn log` it hasn't been updated for 
 1.4.

 On Tue, Jan 26, 2010 at 11:01, Pau Peris sibok1...@gmail.com wrote:
 Hi to all,

 does anyone know where can i download day by day code for Symfony Guide?

 http://www.symfony-project.org/jobeet/1_4/Doctrine/en/


 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-us...@googlegroups.com.
 To unsubscribe from this group, send email to 
 symfony-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/symfony-users?hl=en.



 --
 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 unsubscribe from this group, send email to 
 symfony-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/symfony-users?hl=en.





 --
 Have a nice day!
 Alecs

 As programmers create bigger  better idiot proof programs, so the
 universe creates bigger  better idiots!
 I am on web:  http://www.alecslupu.ro/
 I am on twitter: http://twitter.com/alecslupu
 I am on linkedIn: http://www.linkedin.com/in/alecslupu
 Tel: (+4)0722 621 280

 --
 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 unsubscribe from this group, send email to 
 symfony-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/symfony-users?hl=en.




-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: Symfony Filter

2010-01-26 Thread ken
Sometimes you will need to run the custom filter before the security
filter.


On Jan 26, 5:02 pm, Asif Ali M l...@reloadtheweb.com wrote:
 Thanks Dheeraj.

 You are right. the flow is what you explained.

 What I am trying to find is...

 Is it a good practice in symfony to have my custom filter run before
 the security filter?

 Thanks
 -Asif

 On Jan 26, 8:20 am, Dheeraj Kumar Aggarwal dheerajcom...@gmail.com
 wrote:



  Hi

  in my view .

  if you place your filter below the security filter ---
  In security filter, symfony will check whether the user is logged in or not
  and if the user is not logged in, it will be redirected to home page as
  specified by yourself

  then again the whole cycle repeats
  but now the request url is home page.

  first goes to security filter

  then it goes to your filter, and then user is automatically logged in
  and user is on the home page

  but if you place your filter above the security filter ---
  first it will automatically logged in by your filter
  then it goes to security filter, the user is already logged in so no
  redirections will be there.

  On Mon, Jan 25, 2010 at 6:34 PM, Mohammad Asif Ali
  asifali.m...@gmail.comwrote:

   Any suggestions on my filter execution flow?

   On Jan 23, 4:53 pm, Asif Ali M l...@reloadtheweb.com wrote:
Hello Symfonians,

I am working on symfony 1.0 application. Its a kind of Software as
Service model.

When a user registers he will get his own site (frontend/backend). The
users can signup for a 30 days trails. And we have a help document
which is having backend page links.

In the Backend application we are using a filter to auto detect the
site.If its in trail mode the filter will do auto login and redirected
to the accessed page.

But this is working when we put our filter in the following way
( Above security filter ). If I put the below security its
automatically logged in but landed on admin homepage instead of the
accessed page

I would like to know putting a filter above the Security will be a
problem for the application.

Please share your views

rendering: ~
web_debug: ~

trail_site_login:
  class: trailSiteLoginFilter

security:  ~

# generally, you will want to insert your own filters here

# instead of putting here I put the filer above the security

cache:     ~
common:    ~
flash:     ~
execution: ~

Thanks
-Asif

   --
   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 unsubscribe from this group, send email to
   symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@goog
legroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/symfony-users?hl=en.

  --
  Regards,
  Dheeraj

-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Running symfony projects in Netbeans 6.8

2010-01-26 Thread Javier Garcia

Hi,

if i go to File  Project Properties  Run configuration,  a dialog box 
appears where i write this:


Project URL: http://rs.localhost/
Index file: frontend.php

But I get this line at the bottom of the dialog box:

Index file must be a valid relative URL.

Any idea?

Javi

--
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: Different edit and new forms: what should i do with _form.php

2010-01-26 Thread Tom Ptacnik
Related topics on the forum 
http://forum.symfony-project.org/index.php?t=rviewgoto=92113#msg_92113

On 25 led, 14:08, karansoni kanu8...@gmail.com wrote:
 Make two forms

 1)           Emp_Form
 1st one a having widgets  name, address, and city AND THAT form
 will extend your base form

 2)          Emp_edit_form
 2nd form will extend ur sfForm or Doctrine form and there u give
 widget name.

 then in the same module you can change in actions that

 executeEdit()
 {
             $this-form=new EmpEditForm();

 }

 this will work for sure

-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] Re: Different edit and new forms: what should i do with _form.php

2010-01-26 Thread Stéphane
I prefer using what is done in the related topic (link given by Tom) than
creating two distinct forms.
Less classes, less code.

Cheers,


Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!


On Tue, Jan 26, 2010 at 3:30 PM, Tom Ptacnik to...@tomor.cz wrote:

 Related topics on the forum
 http://forum.symfony-project.org/index.php?t=rviewgoto=92113#msg_92113

 On 25 led, 14:08, karansoni kanu8...@gmail.com wrote:
  Make two forms
 
  1)   Emp_Form
  1st one a having widgets  name, address, and city AND THAT form
  will extend your base form
 
  2)  Emp_edit_form
  2nd form will extend ur sfForm or Doctrine form and there u give
  widget name.
 
  then in the same module you can change in actions that
 
  executeEdit()
  {
  $this-form=new EmpEditForm();
 
  }
 
  this will work for sure

 --
 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 unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en.



-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: How to force the Doctrine behaviour Timestampable values in a main table when embedded data are updated

2010-01-26 Thread Tom Ptacnik
Doctrine Timestampable behaviour use class
Doctrine_Template_Listener_Timestampable. This class use the preUpdate
and preInsert methods for changing the insert_at and update_at
columns.

So maybe better to use preUpdate than postUpdate for this purpose.


On 25 led, 15:11, Olivier LOYNET olivierloy...@gmail.com wrote:
 I'm not very experimented with events usages.
 I'll try it soon the postUpdate event.

 Thanks for your fast reply.

 Olivier



  -Message d'origine-
  De : symfony-users@googlegroups.com [mailto:symfony-
  us...@googlegroups.com] De la part de FlyLM [ML]
  Envoyé : lundi 25 janvier 2010 15:03
  À : symfony-users@googlegroups.com
  Objet : Re: [symfony-users] How to force the Doctrine behaviour
  Timestampable values in a main table when embedded data are updated

   Hi,

   Perhaps it's not the best method, but you can use the method
   postUpdate of the Doctrine model class of Organism to update the
   Profile.

  Just the opposite in ur case, use the postUpdate method of the
  Profile model class to update Organism.

  --
  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 unsubscribe from this group, send email to symfony-
  users+unsubscr...@googlegroups.com.
  For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en.

-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] sfForm standalone - Upload file with prefix

2010-01-26 Thread DoRiaN
Hello (sorry for my english i'm french),

I use sfForm standalone to upload file.

When i don't use prefix with
 $this-widgetSchema-setNameFormat(self::PREFIX . '[%s]');

I can bind my data with my form
 $oFormFile-bind(array(), array('file' = $_FILES['file']));

But when i use prefix lie that :
 $this-widgetSchema-setNameFormat(self::PREFIX . '[%s]');

I can't bind my file
 $oFormFile-bind(array(), array('file' = $_FILES['myPrefix']['file']));
or
 $oFormFile-bind(array(), array('file' = $_FILES['myPrefix']));


I' ve tried to rewrite my array FILES bu no success with
$file = array();
if (isset($_FILES[Altays_Form_Manager_TicketOpen::PREFIX]) == true)
{
foreach ($_FILES[Altays_Form_Manager_TicketOpen::PREFIX] as
$fileAttr = $aFile) {
foreach ($aFile as $fileName = $fileValue)
$file[Altays_Form_Manager_TicketOpen::PREFIX]
[$fileName][$fileAttr] = $fileValue;
}
}

 $oFormFile-bind(array(), array('file' = $file));


How to bind my file when I use $this-widgetSchema-setNameFormat
(self::PREFIX . '[%s]'); ?

Thanks,
Dorian

-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: to doctrine from propel

2010-01-26 Thread Tom Ptacnik
Try to delete all tables from database by hand and then run
symfony doctrine:build --all --and-load --no-confirmation

On 25 led, 20:47, g0d br g0d...@gmail.com wrote:
 Hi,

 I'd start an new project to try doctrine orm with symfony.

 This is a test project and i change schema.yml a lot but it seems to keep
 old database tables even if i delete them from schema.

 i'd try the follow command:

 php symfony doctrine:clean-model-files

  doctrine  Could not find any models that need to be removed

 but tables still being create by the command doctrine:build --all

 Im using symfony 1.4

 Thank you

 Celso

-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: sfYamlDumper.php gives 'step exceeds the specified range'

2010-01-26 Thread Tom Ptacnik
One right bracket is missing?

return $dt-diff(new DateTime('NOW')-format('%y years'); - return
$dt-diff(new DateTime('NOW'))-format('%y years'));


On 25 led, 15:00, Dw dan.r.war...@gmail.com wrote:
 Im looking to add a function to a doctrine generated model that will
 return the users age as a string.

 eg:

 class Child extends BaseChild
 {
   public function getAge()
   {
     $dt = new DateTime($this-getDateOfBirth());
     return $dt-diff(new DateTime('NOW')-format('%y years');
   }

 }

 But I keep getting

 Warning: range() [function.range]: step exceeds the specified range in
 Z:\web\projects\baby\lib\vendor\symfony\lib\yaml\sfYamlDumper.php  on
 line 43

 It doesnt seem to like the diff function.

 Does anybody know why its doing this?

 Thanks, Dan

-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: Subdomain dynamicly

2010-01-26 Thread Tom Ptacnik
What if you add a 127.0.0.1 test.my.com to the hosts file and
ServerAlias test.my.com to the virtualhost config. Does this
subdomain works?

On 26 led, 09:17, seifolah Ghaderi sepel...@gmail.com wrote:
 Hi again.
 For test sub domain I have a problem .
 I have a win xp and installed wamp on it.
 After some googleing I find how to confige virtual host name based.I
 use this confige in my host file(in C:\WINDOWS\system32\drivers\etc)

 127.0.0.1       localhost
 127.0.0.1   mysite.web
 127.0.0.1  www.my.com
 127.0.0.1   *.my.com

 And in my httpd.conf :

 VirtualHost *:80
   DocumentRoot E:/wamp/www

 ServerName localhost
   DirectoryIndex index.php
 /VirtualHost

 VirtualHost *:80
   DocumentRoot E:/dev/sfproject/mysite/web
   ServerAlias *.my.com
 ServerNamewww.my.com
   DirectoryIndex index.php
 /VirtualHost

 Now I can access my host withwww.my.comBut I can't access
 subdomains.For example example1.my.com,It show page not found error.
 Any idea?



 On Wed, Jan 20, 2010 at 11:00 AM, seifolah Ghaderi sepel...@gmail.com wrote:
  Thanks .I try it.

  On Tue, Jan 19, 2010 at 6:14 PM, wissl andreas.wi...@googlemail.com wrote:
  There is the excellente part Advanced Routing of the 2009 symfony
  advent calendar, that is related to your topic. Have you read it?
  Otherwise give it a try!

 http://www.symfony-project.org/advent_calendar/2/en
 http://www.symfony-project.org/advent_calendar/3/en

  On 19 Jan., 14:36, sepelloo sepel...@gmail.com wrote:
  Hi all.
  I want to generate these url based on one of my tables.
  For example for each record in table section I want to generate:
  section_1.mysite.com
  or section_X.mysite.com
  and if then user select one of my caregory then url will
  be:section_1.mysite.com/cat/id/1
  I want to  refer these url to on module.
  Any idea?

  --
  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 unsubscribe from this group, send email to 
  symfony-users+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/symfony-users?hl=en.

-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] Re: Subdomain dynamicly

2010-01-26 Thread seifolah Ghaderi
No !! It doesn't work.


On Tue, Jan 26, 2010 at 6:45 PM, Tom Ptacnik to...@tomor.cz wrote:
 What if you add a 127.0.0.1 test.my.com to the hosts file and
 ServerAlias test.my.com to the virtualhost config. Does this
 subdomain works?

 On 26 led, 09:17, seifolah Ghaderi sepel...@gmail.com wrote:
 Hi again.
 For test sub domain I have a problem .
 I have a win xp and installed wamp on it.
 After some googleing I find how to confige virtual host name based.I
 use this confige in my host file(in C:\WINDOWS\system32\drivers\etc)

 127.0.0.1       localhost
 127.0.0.1   mysite.web
 127.0.0.1  www.my.com
 127.0.0.1   *.my.com

 And in my httpd.conf :

 VirtualHost *:80
   DocumentRoot E:/wamp/www

 ServerName localhost
   DirectoryIndex index.php
 /VirtualHost

 VirtualHost *:80
   DocumentRoot E:/dev/sfproject/mysite/web
   ServerAlias *.my.com
 ServerNamewww.my.com
   DirectoryIndex index.php
 /VirtualHost

 Now I can access my host withwww.my.comBut I can't access
 subdomains.For example example1.my.com,It show page not found error.
 Any idea?



 On Wed, Jan 20, 2010 at 11:00 AM, seifolah Ghaderi sepel...@gmail.com 
 wrote:
  Thanks .I try it.

  On Tue, Jan 19, 2010 at 6:14 PM, wissl andreas.wi...@googlemail.com 
  wrote:
  There is the excellente part Advanced Routing of the 2009 symfony
  advent calendar, that is related to your topic. Have you read it?
  Otherwise give it a try!

 http://www.symfony-project.org/advent_calendar/2/en
 http://www.symfony-project.org/advent_calendar/3/en

  On 19 Jan., 14:36, sepelloo sepel...@gmail.com wrote:
  Hi all.
  I want to generate these url based on one of my tables.
  For example for each record in table section I want to generate:
  section_1.mysite.com
  or section_X.mysite.com
  and if then user select one of my caregory then url will
  be:section_1.mysite.com/cat/id/1
  I want to  refer these url to on module.
  Any idea?

  --
  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 unsubscribe from this group, send email to 
  symfony-users+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/symfony-users?hl=en.

 --
 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 unsubscribe from this group, send email to 
 symfony-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/symfony-users?hl=en.



-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: How to secure links with CSRF

2010-01-26 Thread Enrico Stahn
finally gerryvdm from the #symfony irc channel gave me a good answer:

[17:12] gerryvdm: the goal is to prevent users unwillingly perform
actions on your site, which really only should be possible when
submitting a form
[17:13] gerryvdm: never use GET requests for destructive operations
[17:15] gerryvdm: GET for reading resources, POST for modifying them
[17:15] sriley: spiders will follow get requests, they wont post
though
[17:15] gerryvdm: and everything, from browsers to web crawlers are
designed around that principle
[17:16] gerryvdm: for example, browsers also ask if you really want to
resend a form when refreshing
[17:18] gerryvdm: read this http://thedailywtf.com/forums/65974/showpost.aspx
[17:19] estahn: ok, i give you a short example ... i have news on a
page. every news has a close-link. if you press it the news will
disapear (/news/read/id/3) ... now there is a unobstrusive possibility
through javascript to that i dont need to refresh the page. so this
will work but i would like to have csrf in this link to secure its
from the origin sender
[17:21] gerryvdm: estahn: then a user with a web accelerator that
prefetches links shows up
[17:21] gerryvdm: it should be POST and POST only
[17:21] gerryvdm: and you can always style forms to look like links
[17:23] estahn: the post shows a good point ... but wouldnt csrf in
links aviod this problem?
[17:23] gerryvdm: no
[17:23] gerryvdm: that user with a web accelator has a valid session
and will pass any csrf check
[17:24] gerryvdm: http://webaccelerator.google.com/webmasterhelp.html#prefetch3
[17:24] gerryvdm: it exists, dont assume these things dont happen
[17:24] gerryvdm: According to the HTTP 1.1 specification, the GET
method is defined as a Safe Method which SHOULD NOT have the
significance of taking an action other than retrieval.

On 20 Jan., 23:03, Enrico Stahn enrico.st...@gmail.com wrote:
 Hi absalito,

 I'm already familiar with the topic in general, but thanks for mention
 wikipedia because of: The attacker must determine the right values
 for all the form's or URL's inputs. This means for my understanding
 URLs are a valid possibility to request actions that change data,
 therefore they need protection.

 Did you read the mentioned ticket, I guess this is a very good
 explanation of what my concern is all about. So, the question above is
 not aboutCSRFin general but rather why links aren't protected withCSRFin 
 symfony.

 Kind regards
 Enrico

 On 20 Jan., 22:46, absalito absal...@gmail.com wrote:



  CSRF is about protecting forms of spamming, adding a field
  generated at runtime that identifies the form as unique.
  if the form is used otherwise than through the application, the field
  for csrf will not be valid, and therefore it will be identified as
  an attack.
  see it on wikipedia

 http://en.wikipedia.org/wiki/Cross-site_request_forgery

  i apologize for my horrible english.. im' using google translator :)

  On Jan 20, 5:06 pm, Enrico Stahn enrico.st...@gmail.com wrote:

   Hello,

   I've wondered if it is uncommon to protect normal links against
   attackers. I have found a feature request for this issue but no
   response since one year.

  http://trac.symfony-project.org/ticket/5742

   Maybe i misunderstood the concept ofcsrfin this case. Could somebody
   give me clarification about this?

   Thanks
   Enrico

-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] symfony under mac OSX 10.6 and MAMP

2010-01-26 Thread Andrea
Hi all,

i'm new of symfony project and i would like to learn more of it for
improve my php project.
I successful install all under my mac and MAMP.

I Have a strange problem, if I run MAMP and I visit symfony project at
http://localhost:8080/ the first time I can see the default page. If I
refresh the page, or close tab and open a new tab I cannot see the
page and I receive the error:

Error 324 (net::ERR_EMPTY_RESPONSE): Error unknown.

So now if I restart MAMP i can see the default page.

Someone have the same problem? How can I fix it?

Thanks a lot

Andrea

-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] how to use get_partial from service function

2010-01-26 Thread xhe
I am using afmphpPlugin, and I want to use get_partial function, but
always got fatal error, Fatal error: Call to undefined function
getPartial()

the class defination is
class FaceBookService extends sfAmfService

So can anyone tell me how to call the getPartial function here?

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-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: how to use get_partial from service function

2010-01-26 Thread Frank He
I know that in task, I can use partial as this:

   $configuration =
ProjectConfiguration::getApplicationConfiguration('frontend', 'prod', true);

$context = sfContext::createInstance($configuration);
$configuration-loadHelpers('Partial');

$message-attach( new
Swift_Message_Part(get_partial('mail/sendNewMemberAlertBody',
array(users=$users,lan=$lan,
receiver=$receiver,html=true,images=$imageReferences)),
'text/html'));

But now the service is extending sfAmfService, if I use the same solution, I
got this error:

*Fatal error*: Call to a member function getActionCache() on a non-object in
*
D:\websites\chineselovebridges\symfony-clb\lib\vendor\symfony\lib\view\sfPHPView.class.php
* on line *157

Can anyone help me with this?
*


On Tue, Jan 26, 2010 at 12:43 PM, xhe hexuf...@gmail.com wrote:

 I am using afmphpPlugin, and I want to use get_partial function, but
 always got fatal error, Fatal error: Call to undefined function
 getPartial()

 the class defination is
 class FaceBookService extends sfAmfService

 So can anyone tell me how to call the getPartial function here?

 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-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] symfony under mac OSX 10.6 and MAMP

2010-01-26 Thread Andrea Marin
Hi all,

I have found the problem, i make a mistake into httpd.conf at line:

Listen 127.0.0.1:8080 before there is Listen 80.0.0.1:8080

Thanks.

Il giorno 26/gen/2010, alle ore 17.36, Andrea ha scritto:

 Hi all,
 
 i'm new of symfony project and i would like to learn more of it for
 improve my php project.
 I successful install all under my mac and MAMP.
 
 I Have a strange problem, if I run MAMP and I visit symfony project at
 http://localhost:8080/ the first time I can see the default page. If I
 refresh the page, or close tab and open a new tab I cannot see the
 page and I receive the error:
 
 Error 324 (net::ERR_EMPTY_RESPONSE): Error unknown.
 
 So now if I restart MAMP i can see the default page.
 
 Someone have the same problem? How can I fix it?
 
 Thanks a lot
 
 Andrea
 
 -- 
 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 unsubscribe from this group, send email to 
 symfony-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/symfony-users?hl=en.
 

-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: Running symfony projects in Netbeans 6.8

2010-01-26 Thread stuart.lo...@gmail.com
Hi Javi,

You also need to set the web root in the Sources section of the
project configuration. Set the web root to web

Cheers,

Stu

On Jan 26, 2:05 pm, Javier Garcia tirengar...@gmail.com wrote:
 Hi,

 if i go to File  Project Properties  Run configuration,  a dialog box
 appears where i write this:

 Project URL:http://rs.localhost/
 Index file: frontend.php

 But I get this line at the bottom of the dialog box:

 Index file must be a valid relative URL.

 Any idea?

 Javi

-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] method_for_query semantics

2010-01-26 Thread Patrick Leblanc
My question is really more semantic related rather than technical,
since it works.
But from the Day 6 of jobeet:
--
# apps/frontend/config/routing.yml
job_show_user:
  url: /job/:company_slug/:location_slug/:id/:position_slug
  class:   sfDoctrineRoute
  options:
model: JobeetJob
type:  object
method_for_query: retrieveActiveJob
  param:   { module: job, action: show }
  requirements:
id: \d+
sf_method: [GET]
--

Why do we specify the model JobeetJob if symfony is going to check for
retrieveActiveJob in the JobeetJobTable class?

Thank you for helping me understand the conventions :)

-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] Re: Running symfony projects in Netbeans 6.8

2010-01-26 Thread Javier Garcia

On 01/26/2010 08:28 PM, stuart.lo...@gmail.com wrote:

You also need to set the web root in the Sources section of the
project configuration. Set the web root to web
   


Thanks Stuart, it worked!. I dont have that line in red anymore..

--
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] sfSimpleForumPlugin: for Symfony 1.3 1.4 (and Doctrine)

2010-01-26 Thread pbh
I was looking to use the sfSimpleForumPlugin, but this project has
been abandoned by the author and there is no version for Doctrine.

My first question is:

1) Has anyone done this?  (converted the sfSimpleForumPlugin to
Doctrine)

2) If there is not a copy of this plugin (sfSimpleForumPlugin) for
Doctrine out there, then I would like to convert it to Doctrine with
the help of all the volunteers that would like to use/have this plugin
to use on the latest symfony version with Doctrine.

Let me know so we can start a public repository and start working on
this for the benefit of the Symfony community.

Thank you all

-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Loading YAML data into an existing database

2010-01-26 Thread Scott Bargabus
Hello,

I want to add data to an existing database and neither fixtures nor
migrations seem like the right solution.

We have a white-label system and we need to publish data for each
label that we add (15+ entity types, 200+ entities for each label).
We have all this data in YAML format and are able to load it into our
dev environment using fixtures.  Now, what's the best way to get this
same data into the production database?

We've successfully added them in the postUp of migrations, but that
was unwieldy considering the amount of data.  Also, the data is
already in YAML format so putting it in a migration seems like
unnecessary work.

We tried using the symfony doctrine:data-load command in append mode,
but this failed due to dependencies/constraints with the data. On
loading a specific yml file, I get an invalid row key error, because
that key is defined in another yml file that is not a part of this
load.

Any ideas on a general method for adding this data to our production
environment?

-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] sfEasyGMapPlugin only one info window displayed for markers

2010-01-26 Thread Zach
I'm trying to display several markers on a map and when you click on
the marker you get more info in the info window box.
Here is my code:

// INITIALIZE GOOGLE MAP
$gMap = new GMap();
$gMap-setWidth(533);
$gMap-setHeight(268);

foreach($objects as $object){
$info = new GMapInfoWindow('Specific Info goes here for'.);
$marker = new GMapMarker($object-getLatitude(), $object-getLongitude
());
$marker-addHtmlInfoWindow($info);
$gMap-addMarker($marker);
$gMap-centerAndZoomOnMarkers(.3);
}

$this-gMap = $gMap;

Then in the template I display the map with:
?php include_map($gMap);?

The map works fine and the markers display, but only one info window
is displayed. If I click on the marker that isn't displaying the info
window, the map centers on the other marker and displays its info
window. I need to display an info window for each marker.

I'm not sure what I am doing wrong.
You can see my demo site here to see what I'm talking about: 
http://bit.ly/b7KfET
Thanks in advance for your help.
Zach

-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] What do you use symphony for?

2010-01-26 Thread raviu
Hello,

Could you tell us what you use symphony for, and how it has helped.
Just a summary of one or two lines. I'm making up a report and would
like some output from the symphony community.



Thanks for any help.

Best,
Ravi

-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] What do you use symphony for?

2010-01-26 Thread Dheeraj Kumar Aggarwal
Hi ravi

Symfony is a framework that will help to you properly organize your code in
MVC (Model View Controller) style and provides features like routing,
dispatching request, form handling and also integrates with other tools like
propel or doctrine for ORM (Object relationship mapping).

On Wed, Jan 27, 2010 at 6:07 AM, raviu ravi.undupit...@gmail.com wrote:

 Hello,

 Could you tell us what you use symphony for, and how it has helped.
 Just a summary of one or two lines. I'm making up a report and would
 like some output from the symphony community.



 Thanks for any help.

 Best,
 Ravi

 --
 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 unsubscribe from this group, send email to
 symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en.




-- 
Regards,
Dheeraj

-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: Symfony Filter

2010-01-26 Thread Asif Ali M
okay. Thanks for your comment

On Jan 26, 4:56 pm, ken marfillas...@gmail.com wrote:
 Sometimes you will need to run the customfilterbefore the securityfilter.

 On Jan 26, 5:02 pm, Asif Ali M l...@reloadtheweb.com wrote:

  Thanks Dheeraj.

  You are right. the flow is what you explained.

  What I am trying to find is...

  Is it a good practice in symfony to have my customfilterrun before
  the securityfilter?

  Thanks
  -Asif

  On Jan 26, 8:20 am, Dheeraj Kumar Aggarwal dheerajcom...@gmail.com
  wrote:

   Hi

   in my view .

   if you place yourfilterbelow the securityfilter---
   In securityfilter, symfony will check whether the user is logged in or not
   and if the user is not logged in, it will be redirected to home page as
   specified by yourself

   then again the whole cycle repeats
   but now the request url is home page.

   first goes to securityfilter

   then it goes to yourfilter, and then user is automatically logged in
   and user is on the home page

   but if you place yourfilterabove the securityfilter---
   first it will automatically logged in by yourfilter
   then it goes to securityfilter, the user is already logged in so no
   redirections will be there.

   On Mon, Jan 25, 2010 at 6:34 PM, Mohammad Asif Ali
   asifali.m...@gmail.comwrote:

Any suggestions on myfilterexecution flow?

On Jan 23, 4:53 pm, Asif Ali M l...@reloadtheweb.com wrote:
 Hello Symfonians,

 I am working on symfony 1.0 application. Its a kind of Software as
 Service model.

 When a user registers he will get his own site (frontend/backend). The
 users can signup for a 30 days trails. And we have a help document
 which is having backend page links.

 In the Backend application we are using afilterto auto detect the
 site.If its in trail mode thefilterwill do auto login and redirected
 to the accessed page.

 But this is working when we put ourfilterin the following way
 ( Above securityfilter). If I put the below security its
 automatically logged in but landed on admin homepage instead of the
 accessed page

 I would like to know putting afilterabove the Security will be a
 problem for the application.

 Please share your views

 rendering: ~
 web_debug: ~

 trail_site_login:
   class: trailSiteLoginFilter

 security:  ~

 # generally, you will want to insert your own filters here

 # instead of putting here I put the filer above the security

 cache:     ~
 common:    ~
 flash:     ~
 execution: ~

 Thanks
 -Asif

--
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 unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@goog
 legroups.com
.
For more options, visit this group at
   http://groups.google.com/group/symfony-users?hl=en.

   --
   Regards,
   Dheeraj

-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] Re: Message size of an email...

2010-01-26 Thread Gareth McCumskey
Just bear in mind that the -actual- message size isn't exactly what
you pass to Swift Mailer. The sending MTA (Mail Transfer Agent) could
possibly add on additional headers, additional content if there is
SMTP signature adding mechanisms etc. At best you will get the minimum
size that the message will be.

On Tue, Jan 26, 2010 at 8:36 PM, nghtstr nght...@gmail.com wrote:
 Thank you!!  That worked perfectly!

 On Jan 25, 4:29 pm, Gábor Fási maerl...@gmail.com wrote:
 Your mail is a Swift_Message instance, it has a toString() method.



 On Tue, Jan 26, 2010 at 00:22, nghtstr nght...@gmail.com wrote:
  I know I am bumping this, and that is frowned upon.  However, I really
  need to know how to do this.  I would think that it should be simple,
  but I don't see anything in the documentation that says where the
  final email is stored, or anything like that.  Any and all help would
  be greatly appreciated!!

  Thanks!!

  Mike

  On Jan 25, 12:46 pm, nghtstr nght...@gmail.com wrote:
  Is there a function that will generate the message size of the email
  that was just sent/going to be sent?  If not, is there a way to access
  the variable that the message was stored into?

  --
  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 unsubscribe from this group, send email to 
  symfony-users+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/symfony-users?hl=en.

 --
 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 unsubscribe from this group, send email to 
 symfony-users+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/symfony-users?hl=en.





-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

-- 
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 unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.