Re: [symfony-users] Re: subform update when other widget changes

2010-03-08 Thread Abraham Montilla
i found a way using ajax (observe_field)... As the author says, is not the
best solution, but really works.

this is the link:

http://www.symfony-blog.co.uk/2008/04/using-observe_field-to-update-an-input/

thanks for your answers guys.

2010/3/8 Richtermeister 

> This is somewhat tricky, and I haven't quite figured out a good way
> either.
>
> Of course you'll need some form of ajax to get new widgets from the
> server, but you'll also need to tell the main form that you've just
> added new fields, otherwise it'll complain about unexpected values.
>
> For complex field interaction I would look into ajax frameworks such
> as ExtJs, which should play rather nicely with symfony (request json
> data, etc.). However, ExtJs comes with its own form system on board,
> so using symfony forms is rather redundant in this case..
>
> Tricky subject. Would like to hear more on this as well.
>
> Daniel
>
>
>
> On Mar 7, 3:52 pm, Abraham Montilla  wrote:
> > somebody?
> >
> > 2010/3/5 Abraham 
> >
> > > Hi all, is there a way to update a subform when the selected value in
> > > a sfWidgetFormDoctrineChoice changes?
> >
> > > I'm using javascript onChange, however, i need to create a doctrine
> > > query with the selected value, and is not possible to pass javascript
> > > vars to PHP.
> >
> > > Any ideas to overcome this? Thanks.
> >
> > --
> > Have a nice day.
> > Abraham Montilla.
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.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
> 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.
Abraham Montilla.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] You must pass a valid path to a directory containing Doctrine models

2010-03-08 Thread Bill P.
This is what my ProjectConfiguration.class.php looks like.

enablePlugins('sfDoctrinePlugin');
  }
}


\
i've tried the path a few different ways such as:
C:\\frameworks\\symfony-1.4.2\\lib/autoload/sfCoreAutoload.class.php
and
C:/frameworks/symfony-1.4.2/lib/autoload/sfCoreAutoload.class.php
and
C:\frameworks\symfony-1.4.2\lib\autoload\sfCoreAutoload.class.php

all resulting in the same error.

Also, In the 'Global include Path'
I only have 'C:\frameworks\symfony-1.4.2' set.
Is there something else that should be included there?

Thanks.




From: Eno 
To: "symfony-users@googlegroups.com" 
Sent: Thu, March 4, 2010 2:50:06 PM
Subject: Re: [symfony-users] You must pass a valid path to a directory  
containing  Doctrine models

On Thu, 4 Mar 2010, Bill P. wrote:

> I am trying to setup a new project using NetBeans and this tutorial: 
> http://wiki.netbeans.org/NB68symfony 
> 
> It is using propel, but I am setup with Doctrine. 
> Everything seems to be setup correctly, but when I am trying to insert-sql, I 
> get this error; 
> 
> You must pass a valid path to a directory containing Doctrine models 
> 
> and no table are created. 
> 
> What am I missing? 

Use the source Luke.

Looking at the source for that task, I see it looks for models_path in 
your config:

  protected function execute($arguments = array(), $options = array())
  {
$this->logSection('doctrine', 'created tables successfully');

$databaseManager = new sfDatabaseManager($this->configuration);
$config = $this->getCliConfig();

Doctrine_Core::loadModels($config['models_path'], 
Doctrine_Core::MODEL_LOADING_CONSERVATIVE);

Doctrine_Core::createTablesFromArray(Doctrine_Core::getLoadedModels());
  }


Im guessing loadModels never gets a valid path. Furthermore the array of 
config values comes through getCliConfig() which in turn pulls it from the 
plugin config:

  public function getCliConfig()
  {
return 
$this->configuration->getPluginConfiguration('sfDoctrinePlugin')->getCliConfig();
  }


So this probably should be in coming from your sfProjectConfiguration 
class. Do you have the Doctrine plugin enabled and Propel disabled in your 
project config?



-- 


-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en



  

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: subform update when other widget changes

2010-03-08 Thread Richtermeister
This is somewhat tricky, and I haven't quite figured out a good way
either.

Of course you'll need some form of ajax to get new widgets from the
server, but you'll also need to tell the main form that you've just
added new fields, otherwise it'll complain about unexpected values.

For complex field interaction I would look into ajax frameworks such
as ExtJs, which should play rather nicely with symfony (request json
data, etc.). However, ExtJs comes with its own form system on board,
so using symfony forms is rather redundant in this case..

Tricky subject. Would like to hear more on this as well.

Daniel



On Mar 7, 3:52 pm, Abraham Montilla  wrote:
> somebody?
>
> 2010/3/5 Abraham 
>
> > Hi all, is there a way to update a subform when the selected value in
> > a sfWidgetFormDoctrineChoice changes?
>
> > I'm using javascript onChange, however, i need to create a doctrine
> > query with the selected value, and is not possible to pass javascript
> > vars to PHP.
>
> > Any ideas to overcome this? Thanks.
>
> --
> Have a nice day.
> Abraham Montilla.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: xhr and REST

2010-03-08 Thread Donald
This question has been resolved at the symfony forum. Thanks to
everyone for your help.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] sfCaptchaGD plugin

2010-03-08 Thread l3ia-etu
Hello everyone,

I would like to give some precision, for this plugin version 1.4.3,
when using with symfony 1.4:

- you have to create a file plugins/sfCaptchaGDPlugin/modules/
sfCaptchaGD/config/security.yml with:
GetImage:
  is_secure: false


"false" and NOT "off" !!

- and put the params, into app.yml:
all:

 sf_captchagd:
  image_width:200 # image width in pixels
  image_height:   60 # image height in pixels
  chars:  "ABCDEFGHIJKLMNOPQRSTUVWXYZ123456789" #
possible chars in captcha
  length: 4 # length of captcha
  font_size:  18 # font size
  # possible chars colors
  font_color: ["252525", "8b8787", "550707", "3526E6",
"88531E"]
  # chars fonts
  fonts:  ["akbar/akbar.ttf", "brushcut/
BRUSHCUT.TTF", "molten/molten.ttf", "planet_benson/Planetbe.ttf",
"whoobub/WHOOBUB_.TTF"]
  background_color:   DD # image background color
  border_color:   00 # image border color

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
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: Symfony frontend sort by th

2010-03-08 Thread Augusto Flavio
Hi Daniel,


thanks for your reply about the injection SQL security fix in Doctrine admin
generator of symfony 1.4.3.


Bye.


Augusto Morais

2010/3/8 ziclo 

> Thank you all. I just think that a tutorial should exists on how to
> create sortable columns like the way it is in the backend. Same thing
> for the use of filters. These are common functionnalities that i want
> to use for the frontend.
> I thought it would be simple to implement but not. I don't want to use
> javascript because the frontend is likely to be accessed by mobile
> phones.
>
> And for me, security problems are the responsability of all symfony
> users. But if i use a framework it is mainly because i want to focus
> my efforts on "business things" (business class) not on security
> issues.
>
> On 6 mar, 20:13, Gareth McCumskey  wrote:
> > I'm afraid not. The entire point of passing GET and POST variables
> > into the sfWebRequest object is to allow for cleaning of potentially
> > mailicious code. You say hoiw would it know? How would you know? How
> > would you code it remove potentially malicious content? If the
> > sfWebRequest object did nothing more than just hold a carbon copy of
> > parameters passed, we might as well not bother and just directly
> > access $_GET and $_POST!
> >
> > As for the security fix you mentioned, it is true that was a problem
> > and that was because one small aspect of the existing cleaning
> > mechanisms in symfony was overlooked. If the sfWebRequest object did
> > NOT clean up the GET and/or POST parameters, why did the symfony core
> > team fix it? If it wasn't supposed to clean the parameters there
> > shouldn't have been anything to fix!
> >
> > On Sat, Mar 6, 2010 at 12:45 PM, Daniel Lohse
> >
> >
> >
> >  wrote:
> > > That's incorrect, Gareth. The security fix for symfony 1.4.3 just last
> week was on the *exact* same lines of code because you could inject SQL in
> the Doctrine admin generator.
> >
> > > How would symfony guess what you want to remove (clean) or not? :)
> >
> > > Daniel
> >
> > > On 06.03.2010, at 08:10, Gareth McCumskey wrote:
> >
> > >> Firstly, symfony does that for you ;). Secondly it was just a quick
> > >> example to get him on the right road. I didn't have time to sit and
> > >> show a fully worked, real world example.
> >
> > >> Jsut to reiterate, symfony already checks what parameters are passed
> > >> through GET and POST for you for SQL injection and cleans them. Try it
> > >> yourself if you don't believe me. Its one of the great benefits of
> > >> using a framework.
> >
> > >> On Fri, Mar 5, 2010 at 8:12 PM, Augusto Flavio 
> wrote:
> > >>> Hi Gareth,
> >
> > >>> the method that you show us have a security problem: inject sql. You
> need to
> > >>> check what kind of parameter the user is sending.
> >
> > >>> if (!in_array($parameter, array('asc', 'desc'))) {
> > >>>//do something
> > >>> } else  {
> > >>>//execute the query
> > >>> }
> >
> > >>> bye
> >
> > >>> Augusto Morais
> >
> > >>> --
> > >>> If you want to report a vulnerability issue on symfony, please send
> it to
> > >>> security at symfony-project.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
> > >>> 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
> >
> > >> --
> > >> If you want to report a vulnerability issue on symfony, please send it
> to security at symfony-project.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
> > >> symfony-users+unsubscr...@googlegroups.com
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/symfony-users?hl=en
> >
> > > --
> > > If you want to report a vulnerability issue on symfony, please send it
> to security at symfony-project.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
> > > symfony-users+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/symfony-users?hl=en
> >
> > --
> > Gareth McCumskeyhttp://garethmccumskey.blogspot.com
> > twitter: @garethmcc
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this grou

[symfony-users] How can I save null values with Doctrine

2010-03-08 Thread NOOVEO - Christophe Brun
My table has a varchar(13) field which can be null. 
 
schema.yml : 
myfield: { type: string(13), default: null }
 
When I create a new object using the related form, the object is
recorded in the database with an empty string, not with a null value. 
How can I force Doctrine to set a null value here ? 

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Web Server Configuration

2010-03-08 Thread Eno
On Mon, 8 Mar 2010, DEEPAK BHATIA wrote:

> But can we access the index.htm  in jobeet directory through
> http://www.jobeet.com.

Not rocket science - the two steps needed are DNS and a virtual host:

Add an entry to your /etc/hosts file so that www.jobeet.com and jobeet.com 
point to the IP of the machine that contains the app. If its the local 
machine, then set the IP to 127.0.0.1 otherwise set it to the LAN IP of 
the machine its on. (You can test by doing "ping jobeet.com" from a 
command-line window to see what IP it resolves to).

Next you need a virtual host entry with "ServerName www.jobeet.com" (and 
maybe also "ServerAlias jobeet.com") as explained in the docs.

Important: you must restart Apache for any chznges to take effect.

Look for any errors if Apache fails to restart - error logs are good 
places to look for errors.



-- 


-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Symfony 2 + Doctrine 2 : what about behaviours ?

2010-03-08 Thread theredled
Hi,

Behaviours feature will be removed from Doctrine 2. As they are part
of the domain classes, now separated from the ORM itself, they are no
more part of Doctrine's job. That's a good reason.

But this feature was really useful to enhance reusability. So if it is
not part of the job of an ORM, I came to think it can be for sure part
of the job of a complete framework :D

Will Symfony provide an alternative to behaviours ?

Thanks

Benoit G.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
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: Symfony frontend sort by th

2010-03-08 Thread Gareth McCumskey
It is actually really simple to employ sorting yourself, thats why I
guess there are no tutorials dedicated to that specifically. The
example I gave you works well so I personally don't understand what is
difficult about it.

On Mon, Mar 8, 2010 at 2:52 PM, ziclo  wrote:
> Thank you all. I just think that a tutorial should exists on how to
> create sortable columns like the way it is in the backend. Same thing
> for the use of filters. These are common functionnalities that i want
> to use for the frontend.
> I thought it would be simple to implement but not. I don't want to use
> javascript because the frontend is likely to be accessed by mobile
> phones.
>
> And for me, security problems are the responsability of all symfony
> users. But if i use a framework it is mainly because i want to focus
> my efforts on "business things" (business class) not on security
> issues.
>
> On 6 mar, 20:13, Gareth McCumskey  wrote:
>> I'm afraid not. The entire point of passing GET and POST variables
>> into the sfWebRequest object is to allow for cleaning of potentially
>> mailicious code. You say hoiw would it know? How would you know? How
>> would you code it remove potentially malicious content? If the
>> sfWebRequest object did nothing more than just hold a carbon copy of
>> parameters passed, we might as well not bother and just directly
>> access $_GET and $_POST!
>>
>> As for the security fix you mentioned, it is true that was a problem
>> and that was because one small aspect of the existing cleaning
>> mechanisms in symfony was overlooked. If the sfWebRequest object did
>> NOT clean up the GET and/or POST parameters, why did the symfony core
>> team fix it? If it wasn't supposed to clean the parameters there
>> shouldn't have been anything to fix!
>>
>> On Sat, Mar 6, 2010 at 12:45 PM, Daniel Lohse
>>
>>
>>
>>  wrote:
>> > That's incorrect, Gareth. The security fix for symfony 1.4.3 just last 
>> > week was on the *exact* same lines of code because you could inject SQL in 
>> > the Doctrine admin generator.
>>
>> > How would symfony guess what you want to remove (clean) or not? :)
>>
>> > Daniel
>>
>> > On 06.03.2010, at 08:10, Gareth McCumskey wrote:
>>
>> >> Firstly, symfony does that for you ;). Secondly it was just a quick
>> >> example to get him on the right road. I didn't have time to sit and
>> >> show a fully worked, real world example.
>>
>> >> Jsut to reiterate, symfony already checks what parameters are passed
>> >> through GET and POST for you for SQL injection and cleans them. Try it
>> >> yourself if you don't believe me. Its one of the great benefits of
>> >> using a framework.
>>
>> >> On Fri, Mar 5, 2010 at 8:12 PM, Augusto Flavio  wrote:
>> >>> Hi Gareth,
>>
>> >>> the method that you show us have a security problem: inject sql. You 
>> >>> need to
>> >>> check what kind of parameter the user is sending.
>>
>> >>> if (!in_array($parameter, array('asc', 'desc'))) {
>> >>>    //do something
>> >>> } else  {
>> >>>    //execute the query
>> >>> }
>>
>> >>> bye
>>
>> >>> Augusto Morais
>>
>> >>> --
>> >>> If you want to report a vulnerability issue on symfony, please send it to
>> >>> security at symfony-project.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
>> >>> 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
>>
>> >> --
>> >> If you want to report a vulnerability issue on symfony, please send it to 
>> >> security at symfony-project.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
>> >> symfony-users+unsubscr...@googlegroups.com
>> >> For more options, visit this group at
>> >>http://groups.google.com/group/symfony-users?hl=en
>>
>> > --
>> > If you want to report a vulnerability issue on symfony, please send it to 
>> > security at symfony-project.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
>> > symfony-users+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> >http://groups.google.com/group/symfony-users?hl=en
>>
>> --
>> Gareth McCumskeyhttp://garethmccumskey.blogspot.com
>> twitter: @garethmcc
>
> --
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony

[symfony-users] Re: Many to many doctrine in forms / embeded forms.

2010-03-08 Thread Tom Ptacnik
My links to embeded forms:

-- Embeded forms --
ahDoctrineEasyEmbeddedRelationsPlugin
http://groups.google.com/group/symfony-users/browse_thread/thread/72ee561463322931
Embedding Relations in Forms with Symfony
http://prendreuncafe.com/blog/post/2009/11/29/Embedding-Relations-in-Forms-with-Symfony-1.3-and-Doctrine
ahDoctrineEasyEmbeddedRelationsPlugin
http://www.symfony-project.org/plugins/ahDoctrineEasyEmbeddedRelationsPlugin
Embeded forms - relations: 
http://forum.symfony-project.org/index.php/m/90871/
Embeded forms (saving twice problem):
http://groups.google.com/group/symfony-users/browse_thread/thread/1431878e16cb3df8
Embed filter form: 
http://forum.symfony-project.org/index.php?t=rview&goto=90708&th=24598

How to 1 (1:1) 
http://sandbox-ws.com/frameworks/symfony-frameworks/how-to-embed-forms-in-symfony-12-admin-generator
How to 2 (1:N) 
http://sandbox-ws.com/frameworks/symfony-frameworks/how-to-embed-forms-in-symfony-12-admin-generator-part-2
How to 3 (I18N)
http://sandbox-ws.com/frameworks/symfony-frameworks/how-to-embed-forms-in-symfony-12-admin-generator-part-3

On 4 bře, 16:58, Samuel Morhaim  wrote:
> I am having some issues finding a good example on how to display the many to
> many fields in a form, actually on an embeded form. Can somebody point me in
> the right direction?
>
> Thank you.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Multiple Databases with the same Model

2010-03-08 Thread Tom Ptacnik
I think you can do this with Symfony.

Related pages:
http://thirdpartycode.com/2009/08/talking-to-multiple-databases-with-symfony-1-2/
http://forum.symfony-project.org/index.php/m/77848/
http://www.lampjunkie.com/2008/04/using-multiple-databases-in-symfony-with-propel/


On 3 bře, 10:22, Rotlaus  wrote:
> For a new application we are looking for a php web framework that
> supports multiple databases with the same schema/model. Every customer
> of us will become his own webserver with his own database. On top of
> this we want to develop a central administration app that works on all
> customer databases, which are all have the same schema/model. Does
> Symfony 1.4 or 2 support such a thing? Or should i better ask if
> Doctrine or Propel support something like that? If not, would it be
> easy to add this to the current functionality?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Test email sending in function test

2010-03-08 Thread Tom Ptacnik
Environment depends on index?.php which are you using... index.php,
frontend_dev.php .. .the environment selection is in it.


On 3 bře, 16:19, Alexx  wrote:
> Hi,
>
> Sorry for my english.
>
> I try test email sending, but when I call action ($browser->post('/
> genre/save')) it call in prod environment (in production environment
> mailer settings is incorrect), not in test. How can I change
> environment?
>
> My factories.yml:
> test:
>   mailer:
>     param:
>       delivery_strategy: none
>
> dev:
>   mailer:
>     param:
>       delivery_strategy: none
>
> all:
>   mailer:
>     class: sfMailer
>     param:
>       logging:           %SF_LOGGING_ENABLED%
>       charset:           %SF_CHARSET%
>       delivery_strategy: realtime
>       transport:
>         class: Swift_SmtpTransport
>         param:
>           host:       localhost
>           port:       25
>           encryption: ~
>           username:   ~
>           password:   ~
>
> Tnx

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] UPDATE in I18N Tables not working after Update to Symfony 1.3

2010-03-08 Thread Christopher Schnell

Hi all,

I have a strange problem. My application was started with symfony 1.2 
and currently I am migrating to 1.3/1.4. After updateing, the I18N 
values are not saved into the database anymore. Everything should be 
fine, at least it was with 1.2. The logs show no errors, but the strange 
thing is that the SQL-Update statement is something like


UPDATE myTable_i18n SET 'ID'=NULL, 'CULTURE'=NULL, 
'MYVALUE'='MY-I18N-TEXT' WHERE myTable_i18n.ID IS NULL AND 
myTable_i18n.CULTURE IS NULL


I can't figure out, why the ID is null and the culture as well. When 
creating new objects, everything goes fine. The Problem exists only when 
updateing.


This happens in all my I18N-Tables.

Did anybody else experience this problem? what could be a solution?

Thanks and regards,
Christopher

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: subform update when other widget changes

2010-03-08 Thread Tom Ptacnik
You can use ajax. Unfortunately I'm not good at ajax, so I can't help
you with the exact code.

Try to find more informations about ajax.


On 6 bře, 04:37, Abraham  wrote:
> Hi all, is there a way to update a subform when the selected value in
> a sfWidgetFormDoctrineChoice changes?
>
> I'm using javascript onChange, however, i need to create a doctrine
> query with the selected value, and is not possible to pass javascript
> vars to PHP.
>
> Any ideas to overcome this? Thanks.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
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 frontend sort by th

2010-03-08 Thread ziclo
Thank you all. I just think that a tutorial should exists on how to
create sortable columns like the way it is in the backend. Same thing
for the use of filters. These are common functionnalities that i want
to use for the frontend.
I thought it would be simple to implement but not. I don't want to use
javascript because the frontend is likely to be accessed by mobile
phones.

And for me, security problems are the responsability of all symfony
users. But if i use a framework it is mainly because i want to focus
my efforts on "business things" (business class) not on security
issues.

On 6 mar, 20:13, Gareth McCumskey  wrote:
> I'm afraid not. The entire point of passing GET and POST variables
> into the sfWebRequest object is to allow for cleaning of potentially
> mailicious code. You say hoiw would it know? How would you know? How
> would you code it remove potentially malicious content? If the
> sfWebRequest object did nothing more than just hold a carbon copy of
> parameters passed, we might as well not bother and just directly
> access $_GET and $_POST!
>
> As for the security fix you mentioned, it is true that was a problem
> and that was because one small aspect of the existing cleaning
> mechanisms in symfony was overlooked. If the sfWebRequest object did
> NOT clean up the GET and/or POST parameters, why did the symfony core
> team fix it? If it wasn't supposed to clean the parameters there
> shouldn't have been anything to fix!
>
> On Sat, Mar 6, 2010 at 12:45 PM, Daniel Lohse
>
>
>
>  wrote:
> > That's incorrect, Gareth. The security fix for symfony 1.4.3 just last week 
> > was on the *exact* same lines of code because you could inject SQL in the 
> > Doctrine admin generator.
>
> > How would symfony guess what you want to remove (clean) or not? :)
>
> > Daniel
>
> > On 06.03.2010, at 08:10, Gareth McCumskey wrote:
>
> >> Firstly, symfony does that for you ;). Secondly it was just a quick
> >> example to get him on the right road. I didn't have time to sit and
> >> show a fully worked, real world example.
>
> >> Jsut to reiterate, symfony already checks what parameters are passed
> >> through GET and POST for you for SQL injection and cleans them. Try it
> >> yourself if you don't believe me. Its one of the great benefits of
> >> using a framework.
>
> >> On Fri, Mar 5, 2010 at 8:12 PM, Augusto Flavio  wrote:
> >>> Hi Gareth,
>
> >>> the method that you show us have a security problem: inject sql. You need 
> >>> to
> >>> check what kind of parameter the user is sending.
>
> >>> if (!in_array($parameter, array('asc', 'desc'))) {
> >>>//do something
> >>> } else  {
> >>>//execute the query
> >>> }
>
> >>> bye
>
> >>> Augusto Morais
>
> >>> --
> >>> If you want to report a vulnerability issue on symfony, please send it to
> >>> security at symfony-project.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
> >>> 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
>
> >> --
> >> If you want to report a vulnerability issue on symfony, please send it to 
> >> security at symfony-project.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
> >> symfony-users+unsubscr...@googlegroups.com
> >> For more options, visit this group at
> >>http://groups.google.com/group/symfony-users?hl=en
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to 
> > security at symfony-project.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
> > symfony-users+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en
>
> --
> Gareth McCumskeyhttp://garethmccumskey.blogspot.com
> twitter: @garethmcc

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Web Server Configuration

2010-03-08 Thread DEEPAK BHATIA
What should be the virtual host?

On Mon, Mar 8, 2010 at 1:06 PM, Buddhika Perera  wrote:
> Check with virtual host i used netbeans 6.8 for the coding its
> more easy than ever check out
> from the site ...there was a tutorial on how to use Symfony  with the Editor
>
>
>
>
> On Mon, Mar 8, 2010 at 12:23 PM, DEEPAK BHATIA  
> wrote:
>> Hi,
>>
>> I am using Symfony 1.4.
>>
>> In the section of configuration of Web Server in Jobeet Tutorial as given 
>> below
>>
>> When I access http://www.jobeet.com/ on some other machine on LAN, I
>> get some output like
>> Index of cgi-bin
>>
>> When I access http://www.jobeet.com.locahost/index.php on the local
>> machine, I get symfony project successfully installed.
>>
>> QUESTION: How can I access my project as http://www.jobeet.com ? Which
>> index.htm I need to modify/create ?
>>
>> ===Web Server Configuration==
>>
>> # Be sure to only have this line once in your configuration
>>
>> NameVirtualHost 127.0.0.1:8080
>>
>> # This is the configuration for your project
>>
>> Listen 127.0.0.1:8080
>>
>> 
>> DocumentRoot "/home/sfprojects/jobeet/web"
>> DirectoryIndex index.php
>> 
>> AllowOverride All
>> Allow from All
>> 
>> Alias /sf /home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf
>> 
>> AllowOverride All
>> Allow from All
>> 
>> 
>>
>> Added to the httpd.conf
>>
>> # This is the configuration for your project
>> 
>> ServerName www.jobeet.com.localhost
>> 
>> 
>>
>> Added to the hosts file
>> 127.0.0.1 www.jobeet.com.localhost
>>
>> --
>> If you want to report a vulnerability issue on symfony, please send it to 
>> security at symfony-project.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
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>
> --
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.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
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] help

2010-03-08 Thread Michał Piotrowski
2010/3/8 Buddhika Perera :
> Guys i am looking for a good tutorial on how to use symfony for use
> feedback form example where it uses mysql database?
>
>
> pls send some link or tutorials on how to do it .

schema

Notification:
  actAs:
Signable:
  created:
name: created_by
type: integer
  updated:
name: updated_by
type: integer
Timestampable:
  columns:
user_id: { type: integer(5), notnull: true }
content: { type: string(8096), notnull: true }
state:   { type: integer(1), notnull: true, default: 0 }
  indexes:
notification_myindex:
  fields: [user_id, state, created_at]
  relations:
User:
  class:sfGuardUser
  local:user_id
  foreign:  id
  onDelete: CASCADE

action

 * @versionSVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z
Kris.Wallsmith $
 */
class notificationActions extends sfActions
{
  public function executeNew(sfWebRequest $request)
  {
$this->form = new NotificationForm();
  }

  public function executeCreate(sfWebRequest $request)
  {
$this->forward404Unless($request->isMethod(sfRequest::POST));

$this->form = new NotificationForm();

$this->processForm($request, $this->form);

$this->setTemplate('new');
  }

  protected function processForm(sfWebRequest $request, sfForm $form)
  {
$form->bind($request->getParameter($form->getName()),
$request->getFiles($form->getName()));
if ($form->isValid())
{
  $this->UserData = $this->getUser()->getUserData();
  $this->logged_user_id = $this->UserData['logged_user_id'];
  $this->logged_username = $this->UserData['logged_username'];

  $form->updateObject(array('user_id' => $this->logged_user_id));

  $notification = $form->save();

  $this->redirect('main', array('username' => $this->logged_username));
}
  }
}

_form.php





isMultipart() and print
'enctype="multipart/form-data" ' ?>>
  

  

  


  

  


  

  


newSuccess.php


  



  

  Zgłoszenie problemu z działaniem portalu

  
  

  W treści zgłoszenia problemu z działaniem portalu prosimy o
podanie jak największej ilości szczegółów dotyczących problemu -
pozwoli to na szybkie jego rozwiązanie. Dziękujemy za współpracę :)
  
  
   $form)) ?>

  
  
  


   3)) ?>
  
   3)) ?>
  
  


routing

notification_create:
  url: /portal/notification/c
  options: { model: Notification }
  param:   { module: notification, action: create }

notification_new:
  url: /portal/notification
  options: { model: Notification }
  param:   { module: notification, action: new }

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] help

2010-03-08 Thread Buddhika Perera
Guys i am looking for a good tutorial on how to use symfony for use
feedback form example where it uses mysql database?


pls send some link or tutorials on how to do it .

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Web Server Configuration

2010-03-08 Thread Buddhika Perera
Check with virtual host i used netbeans 6.8 for the coding its
more easy than ever check out
from the site ...there was a tutorial on how to use Symfony  with the Editor




On Mon, Mar 8, 2010 at 12:23 PM, DEEPAK BHATIA  wrote:
> Hi,
>
> I am using Symfony 1.4.
>
> In the section of configuration of Web Server in Jobeet Tutorial as given 
> below
>
> When I access http://www.jobeet.com/ on some other machine on LAN, I
> get some output like
> Index of cgi-bin
>
> When I access http://www.jobeet.com.locahost/index.php on the local
> machine, I get symfony project successfully installed.
>
> QUESTION: How can I access my project as http://www.jobeet.com ? Which
> index.htm I need to modify/create ?
>
> ===Web Server Configuration==
>
> # Be sure to only have this line once in your configuration
>
> NameVirtualHost 127.0.0.1:8080
>
> # This is the configuration for your project
>
> Listen 127.0.0.1:8080
>
> 
> DocumentRoot "/home/sfprojects/jobeet/web"
> DirectoryIndex index.php
> 
> AllowOverride All
> Allow from All
> 
> Alias /sf /home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf
> 
> AllowOverride All
> Allow from All
> 
> 
>
> Added to the httpd.conf
>
> # This is the configuration for your project
> 
> ServerName www.jobeet.com.localhost
> 
> 
>
> Added to the hosts file
> 127.0.0.1 www.jobeet.com.localhost
>
> --
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.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
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Show/Check Simple Query Result

2010-03-08 Thread Buddhika Perera
pls tell me the database configuration pls.how to configure Doctrine ?

On Sat, Mar 6, 2010 at 12:37 PM, Gareth McCumskey  wrote:
> As a bew symfony developer I highly recommend you start and complete
> the Jobeet tutorial for Doctrine:
>
> http://www.symfony-project.org/jobeet/1_2/Doctrine/en/
>
> This will give you a great example of using everything in symfony you
> would ordinarily use. I know it seems like a long way to get going,
> but personally I think it would serve you best to spend a few hours
> doing something like this now than trying piece-meal to learn symfony.
>
> Also, Another thing I highly recommend is reading The Definitive Guide
> to symfony. You don't necessarily need to practice every example they
> give, but as long as you read through the book you will later in
> development be able to remember that symfony had X feature to help
> solve Y problem and can go look it up again. If you don't know that
> something exists, you wont even know you can use it :)
>
> http://www.symfony-project.org/book/1_2/
>
> Hope that helps. With those two resources under your belt you will be
> a power symfony user in no time at all :)
>
> On Fri, Mar 5, 2010 at 11:04 AM, bertzzie  wrote:
>> Hi, I'm very new to symfony, and just a novice developer also...
>> I searched in forum and documentation already and can't find the
>> answer (probably because it's too basic and simple :D)
>>
>> Here's the case :
>>
>> I have one table, 'user' to save username and password, then I want to
>> retrieve the data from that table and check if the submitted username
>> and password is right. I use a loginForm class that I write, and then
>> check it from the main module.. here's the code :
>>
>> loginForm.class.php :
>> class LoginForm extends BaseForm
>> {
>>                public function configure()
>>                {
>>                        $this->setWidgets(array(
>>                          'NIP'      => new sfWidgetFormInputText(),
>>                          'password' => new sfWidgetFormInputPassword(),
>>                        ));
>>
>>                        $this->widgetSchema->setNameFormat('login[%s]');
>>
>>                        $this->setValidators(array(
>>                          'NIP'      => new 
>> sfValidatorString(array('required' => true)),
>>                          'password' => new 
>> sfValidatorString(array('required' => true)),
>>                        ));
>>                }
>> }
>>
>> actions.class.php
>>  public function executeIndex(sfWebRequest $request)
>>  {
>>        $this->form = new LoginForm();
>>
>>        if($request->isMethod('post'))
>>        {
>>                $this->form->bind($request->getParameter('login'));
>>
>>                if($this->form->isValid())
>>                {
>>                        $formValue = $this->form->getValues();
>>
>>                        $query = Doctrine_Query::create()
>>                          ->select('password')
>>                          ->from('pengguna')
>>                          ->where('pengguna.NIP = ' . $formValue['NIP'] );
>>
>>                        $this->user = $query->execute();
>>
>>                }
>>        }
>>  }
>>
>> The code's not finished yet because I don't know how to get the value
>> of the query I just executed...
>> Things that I want to ask :
>> 1. How to get the value (result) of $query->execute() ?
>> 2. Are there any step by step tutorial that teaches most of these
>> basic things ? (I've read practical symfony and doctrine orm for php,
>> but I think it's too advanced for me - so many confusing things)
>>
>> The main problem of those two books is that they assume you know about
>> doctrine ( practical symfony ) and that there's too many things that I
>> have to read when what I need is just a simple question.. I need
>> something like the PHP API documentation.. so any recommendation ?
>>
>> Thanks before, and sorry for my bad english..
>>
>> --
>> If you want to report a vulnerability issue on symfony, please send it to 
>> security at symfony-project.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
>> 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
>
> --
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.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
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you w

[symfony-users] Re: Web Server Configuration

2010-03-08 Thread manguito
: (
Sorry man,
manguito

On Mar 8, 4:08 am, DEEPAK BHATIA  wrote:
> I am sorry to say but that doesn't work. I am very much in India
>
>
>
> On Mon, Mar 8, 2010 at 2:27 PM, manguito  wrote:
> > Hi Deepak,
> > try this and let me know if I'm right or wrong
> > in the httpd.conf change this: ServerNamewww.jobeet.com.localhost
> > to :ServerNamewww.jobeet.com
> > then in the etc\host file
> > change: 127.0.0.1www.jobeet.com.localhost
> > to: 127.0.0.1www.jobeet.com
>
> > by the wayare you from Riverside CA?
> > I remember to have a friend at RCC-Riverside whose last name is Bhatia
> > manguito
>
> > On Mar 8, 3:33 am, DEEPAK BHATIA  wrote:
> >> Hi,
>
> >> Yes we use the IP Address to access the symfony application.
>
> >> But can we access the index.htm  in jobeet directory 
> >> throughhttp://www.jobeet.com.
>
> >> May be I am not able to understand your point. Kindly elaborate the same.
>
> >> Regards
>
> >> Deepak Bhatia
>
> >> On Mon, Mar 8, 2010 at 1:20 PM, Asif Ali M  wrote:
>
> >> >   Hi Deepak,
>
> >> > Because the system on your LAN is accessing the live site
> >> >http://www.jobeet.com/
>
> >> >  Better access your application with its system
> >> > name/ IP ( your private ip like 192.168.0.10) from your LAN and it will
> >> > work,
>
> >> > --
> >> > Thanks
> >> > Asif Ali M
> >> >http://www.linkedin.com/in/geeni
>
> >> > --- On *Mon, 3/8/10, DEEPAK BHATIA * wrote:
>
> >> > From: DEEPAK BHATIA 
> >> > Subject: [symfony-users] Web Server Configuration
> >> > To: symfony-users@googlegroups.com
> >> > Date: Monday, March 8, 2010, 12:23 PM
>
> >> >   Hi,
>
> >> > I am using Symfony 1.4.
>
> >> > In the section of configuration of Web Server in Jobeet Tutorial as given
> >> > below
>
> >> > When I accesshttp://www.jobeet.com/onsome other machine on LAN, I
> >> > get some output like
> >> > Index of cgi-bin
>
> >> > When I accesshttp://www.jobeet.com.locahost/index.phponthe local
> >> > machine, I get symfony project successfully installed.
>
> >> > QUESTION: How can I access my project ashttp://www.jobeet.com?Which
> >> > index.htm I need to modify/create ?
>
> >> > ===Web Server Configuration==
>
> >> > # Be sure to only have this line once in your configuration
>
> >> > NameVirtualHost 127.0.0.1:8080
>
> >> > # This is the configuration for your project
>
> >> > Listen 127.0.0.1:8080
>
> >> > 
> >> > DocumentRoot "/home/sfprojects/jobeet/web"
> >> > DirectoryIndex index.php
> >> > 
> >> > AllowOverride All
> >> > Allow from All
> >> > 
> >> > Alias /sf /home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf
> >> > 
> >> > AllowOverride All
> >> > Allow from All
> >> > 
> >> > 
>
> >> > Added to the httpd.conf
>
> >> > # This is the configuration for your project
> >> > http://127.0.0.1/>>
> >> > ServerNamewww.jobeet.com.localhost
> >> > 
> >> > 
>
> >> > Added to the hosts file
> >> > 127.0.0.1www.jobeet.com.localhost
>
> >> > --
> >> > If you want to report a vulnerability issue on symfony, please send it to
> >> > security at symfony-project.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
> >> > symfony-users+unsubscr...@googlegroups.com
> >> > For more options, visit this group at
> >> >http://groups.google.com/group/symfony-users?hl=en
>
> >> > --
> >> > If you want to report a vulnerability issue on symfony, please send it to
> >> > security at symfony-project.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
> >> > symfony-users+unsubscr...@googlegroups.com
> >> > For more options, visit this group at
> >> >http://groups.google.com/group/symfony-users?hl=en-Hide quoted text -
>
> >> - Show quoted text -
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to 
> > security at symfony-project.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
> > symfony-users+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en- Hide quoted text -
>
> - Show quoted text -

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony

[symfony-users] Re: apache server stops and browser goes blank

2010-03-08 Thread manguito
Hi everyone,
finally I figured out my problem.
I went through the apache log file and found this line: [apc-error]
Cannot redeclare class sfeventdispatcher
Problem: I unzipped the wrong version of the php_apc.dll file into my
c:\php\ext directory
Solution: downloaded php_apc-5.3-svn20091115-vc6-x86.zip, unzipped it
into c:\php\ext and things (for now) are flowing smoothly.
manguito

On Mar 8, 12:56 am, manguito  wrote:
> Hi all,
> I'm trying to use symfony framework for my php projects, but I'm
> having a really hard time trying to make it work. I followed very
> carefuly the steps of installation up to the point of webserver
> configuration.
> According to the manual the VH should be like this:
>
> NameVirtualHost 127.0.0.1:8080
> Listen 127.0.0.1:8080
> 
>   DocumentRoot "c:/development/sfprojects/jobeet/web"
>   DirectoryIndex index.php
>   
>     AllowOverride All
>     Allow from All
>   
>   Alias /sf c:/development/sfprojects/jobeet/lib/vendor/symfony/data/
> web/sf
>    web/sf ">
>     AllowOverride All
>     Allow from All
>   
> 
>
> 
>   ServerNamewww.jobeet.com.localhost
>   
> 
>
> Regarding the second virtualhost, I have 3 questions
> first linewhy 80 and not 8080?, the default
> Listen in my Apache is 80
> second line---no question
> third line---which configuration?
> fourth line-no question
> do I need to add a second virtualhost or should I add the Servername
> line to the first virtual host I created?
> I added a second virtualhost with port 80 as the manual indicates and
> also added the rest of code similar to the first virtualhost...is
> it correct or wrong?
>
> The problem: whenever I 
> hithttp://localhost:8080/index.phporhttp://www.jobeet.com.localhost/index.phpthe
>  apache server stops and
> the browser goes blank. If you can help in this matter I would
> appreciate it because I'm trying to fix this problem for almost 4
> weeks.
>
> OS:Win XP Pro SP3
> PHP:5.2.10
> Apache 2.2.13
>
> manguito.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
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: Web Server Configuration

2010-03-08 Thread DEEPAK BHATIA
I am sorry to say but that doesn't work. I am very much in India

On Mon, Mar 8, 2010 at 2:27 PM, manguito  wrote:
> Hi Deepak,
> try this and let me know if I'm right or wrong
> in the httpd.conf change this: ServerName www.jobeet.com.localhost
> to :ServerName www.jobeet.com
> then in the etc\host file
> change: 127.0.0.1 www.jobeet.com.localhost
> to: 127.0.0.1 www.jobeet.com
>
> by the wayare you from Riverside CA?
> I remember to have a friend at RCC-Riverside whose last name is Bhatia
> manguito
>
> On Mar 8, 3:33 am, DEEPAK BHATIA  wrote:
>> Hi,
>>
>> Yes we use the IP Address to access the symfony application.
>>
>> But can we access the index.htm  in jobeet directory 
>> throughhttp://www.jobeet.com.
>>
>> May be I am not able to understand your point. Kindly elaborate the same.
>>
>> Regards
>>
>> Deepak Bhatia
>>
>> On Mon, Mar 8, 2010 at 1:20 PM, Asif Ali M  wrote:
>>
>>
>>
>> >   Hi Deepak,
>>
>> > Because the system on your LAN is accessing the live site
>> >http://www.jobeet.com/
>>
>> >  Better access your application with its system
>> > name/ IP ( your private ip like 192.168.0.10) from your LAN and it will
>> > work,
>>
>> > --
>> > Thanks
>> > Asif Ali M
>> >http://www.linkedin.com/in/geeni
>>
>> > --- On *Mon, 3/8/10, DEEPAK BHATIA * wrote:
>>
>> > From: DEEPAK BHATIA 
>> > Subject: [symfony-users] Web Server Configuration
>> > To: symfony-users@googlegroups.com
>> > Date: Monday, March 8, 2010, 12:23 PM
>>
>> >   Hi,
>>
>> > I am using Symfony 1.4.
>>
>> > In the section of configuration of Web Server in Jobeet Tutorial as given
>> > below
>>
>> > When I accesshttp://www.jobeet.com/on some other machine on LAN, I
>> > get some output like
>> > Index of cgi-bin
>>
>> > When I accesshttp://www.jobeet.com.locahost/index.phpon the local
>> > machine, I get symfony project successfully installed.
>>
>> > QUESTION: How can I access my project ashttp://www.jobeet.com? Which
>> > index.htm I need to modify/create ?
>>
>> > ===Web Server Configuration==
>>
>> > # Be sure to only have this line once in your configuration
>>
>> > NameVirtualHost 127.0.0.1:8080
>>
>> > # This is the configuration for your project
>>
>> > Listen 127.0.0.1:8080
>>
>> > 
>> > DocumentRoot "/home/sfprojects/jobeet/web"
>> > DirectoryIndex index.php
>> > 
>> > AllowOverride All
>> > Allow from All
>> > 
>> > Alias /sf /home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf
>> > 
>> > AllowOverride All
>> > Allow from All
>> > 
>> > 
>>
>> > Added to the httpd.conf
>>
>> > # This is the configuration for your project
>> > http://127.0.0.1/>>
>> > ServerNamewww.jobeet.com.localhost
>> > 
>> > 
>>
>> > Added to the hosts file
>> > 127.0.0.1www.jobeet.com.localhost
>>
>> > --
>> > If you want to report a vulnerability issue on symfony, please send it to
>> > security at symfony-project.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
>> > symfony-users+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> >http://groups.google.com/group/symfony-users?hl=en
>>
>> > --
>> > If you want to report a vulnerability issue on symfony, please send it to
>> > security at symfony-project.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
>> > symfony-users+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> >http://groups.google.com/group/symfony-users?hl=en- Hide quoted text -
>>
>> - Show quoted text -
>
> --
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.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
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Web Server Configuration

2010-03-08 Thread manguito
Hi Deepak,
try this and let me know if I'm right or wrong
in the httpd.conf change this: ServerName www.jobeet.com.localhost
to :ServerName www.jobeet.com
then in the etc\host file
change: 127.0.0.1 www.jobeet.com.localhost
to: 127.0.0.1 www.jobeet.com

by the wayare you from Riverside CA?
I remember to have a friend at RCC-Riverside whose last name is Bhatia
manguito

On Mar 8, 3:33 am, DEEPAK BHATIA  wrote:
> Hi,
>
> Yes we use the IP Address to access the symfony application.
>
> But can we access the index.htm  in jobeet directory 
> throughhttp://www.jobeet.com.
>
> May be I am not able to understand your point. Kindly elaborate the same.
>
> Regards
>
> Deepak Bhatia
>
> On Mon, Mar 8, 2010 at 1:20 PM, Asif Ali M  wrote:
>
>
>
> >   Hi Deepak,
>
> > Because the system on your LAN is accessing the live site
> >http://www.jobeet.com/
>
> >  Better access your application with its system
> > name/ IP ( your private ip like 192.168.0.10) from your LAN and it will
> > work,
>
> > --
> > Thanks
> > Asif Ali M
> >http://www.linkedin.com/in/geeni
>
> > --- On *Mon, 3/8/10, DEEPAK BHATIA * wrote:
>
> > From: DEEPAK BHATIA 
> > Subject: [symfony-users] Web Server Configuration
> > To: symfony-users@googlegroups.com
> > Date: Monday, March 8, 2010, 12:23 PM
>
> >   Hi,
>
> > I am using Symfony 1.4.
>
> > In the section of configuration of Web Server in Jobeet Tutorial as given
> > below
>
> > When I accesshttp://www.jobeet.com/on some other machine on LAN, I
> > get some output like
> > Index of cgi-bin
>
> > When I accesshttp://www.jobeet.com.locahost/index.phpon the local
> > machine, I get symfony project successfully installed.
>
> > QUESTION: How can I access my project ashttp://www.jobeet.com? Which
> > index.htm I need to modify/create ?
>
> > ===Web Server Configuration==
>
> > # Be sure to only have this line once in your configuration
>
> > NameVirtualHost 127.0.0.1:8080
>
> > # This is the configuration for your project
>
> > Listen 127.0.0.1:8080
>
> > 
> > DocumentRoot "/home/sfprojects/jobeet/web"
> > DirectoryIndex index.php
> > 
> > AllowOverride All
> > Allow from All
> > 
> > Alias /sf /home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf
> > 
> > AllowOverride All
> > Allow from All
> > 
> > 
>
> > Added to the httpd.conf
>
> > # This is the configuration for your project
> > http://127.0.0.1/>>
> > ServerNamewww.jobeet.com.localhost
> > 
> > 
>
> > Added to the hosts file
> > 127.0.0.1www.jobeet.com.localhost
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to
> > security at symfony-project.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
> > symfony-users+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to
> > security at symfony-project.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
> > symfony-users+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en- Hide quoted text -
>
> - Show quoted text -

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Web Server Configuration

2010-03-08 Thread DEEPAK BHATIA
Hi,

Yes we use the IP Address to access the symfony application.

But can we access the index.htm  in jobeet directory through
http://www.jobeet.com.

May be I am not able to understand your point. Kindly elaborate the same.

Regards

Deepak Bhatia

On Mon, Mar 8, 2010 at 1:20 PM, Asif Ali M  wrote:

>   Hi Deepak,
>
> Because the system on your LAN is accessing the live site
> http://www.jobeet.com/
>
>  Better access your application with its system
> name/ IP ( your private ip like 192.168.0.10) from your LAN and it will
> work,
>
>
>
> --
> Thanks
> Asif Ali M
> http://www.linkedin.com/in/geeni
>
> --- On *Mon, 3/8/10, DEEPAK BHATIA * wrote:
>
>
> From: DEEPAK BHATIA 
> Subject: [symfony-users] Web Server Configuration
> To: symfony-users@googlegroups.com
> Date: Monday, March 8, 2010, 12:23 PM
>
>   Hi,
>
> I am using Symfony 1.4.
>
> In the section of configuration of Web Server in Jobeet Tutorial as given
> below
>
> When I access http://www.jobeet.com/ on some other machine on LAN, I
> get some output like
> Index of cgi-bin
>
> When I access http://www.jobeet.com.locahost/index.php on the local
> machine, I get symfony project successfully installed.
>
> QUESTION: How can I access my project as http://www.jobeet.com ? Which
> index.htm I need to modify/create ?
>
> ===Web Server Configuration==
>
> # Be sure to only have this line once in your configuration
>
> NameVirtualHost 127.0.0.1:8080
>
> # This is the configuration for your project
>
> Listen 127.0.0.1:8080
>
> 
> DocumentRoot "/home/sfprojects/jobeet/web"
> DirectoryIndex index.php
> 
> AllowOverride All
> Allow from All
> 
> Alias /sf /home/sfprojects/jobeet/lib/vendor/symfony/data/web/sf
> 
> AllowOverride All
> Allow from All
> 
> 
>
> Added to the httpd.conf
>
> # This is the configuration for your project
> http://127.0.0.1/>>
> ServerName www.jobeet.com.localhost
> 
> 
>
> Added to the hosts file
> 127.0.0.1 www.jobeet.com.localhost
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.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
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.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
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en