[symfony-users] Re: Doctrine - datetime - default value

2009-10-19 Thread mini_alexander

Even if I create field 'data_photo' nullable, after insert row - this
row has got null value in field 'data_photo' in database.
Doctrine_Expression('NOW()') doesn't work :(

On 19 Paź, 00:42, Eno  wrote:
> On Sun, 18 Oct 2009, mini_alexander wrote:
> > I make something like that:
>
> > $record = new Photo();
> > $record->data_photo = new Doctrine_Expression('NOW()');
> > $record->save();
>
> > And I have error:
>
> > Validation failed in class Photo
> > 1 field had validation error:
> > * 1 validator failed on data_photo (notnull)
>
> Looks like you have a field that cannot be null.
>
> --
--~--~-~--~~~---~--~~
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: Doctrine and postgresql: "unknown database attribute type: _bpchar"

2009-10-19 Thread ColinFine



On Oct 18, 10:02 am, ColinFine  wrote:
> I want to start a new symfony (1.2) project, building on an existing
> Postgresql database.
> Then I ran
> symfony doctrine:build-schema --env=initial_setup
>
> It is clearly connecting OK, but gives nothing but an error message:
>
> "unknown database attribute type: _bpchar"
>
> Googling for '_bpchar' seems to show that this is an internal type
> used by PostgresQL. Can Doctrine/PDO not cope with it?
>
Appears to have been because I had a Postgres 'array' column in my
database.
Doctrine/PDO might not support this, but should at least give a
meaningful message!

--~--~-~--~~~---~--~~
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: Custom Propel Unique error message

2009-10-19 Thread Adrien Mogenet

Actually, I'm not using sfValidatorPropelUnique. My "login" field is
checked by a sfStringValidator, but the "unique" constraint is checked
by Propel anyway, and the "unique" error message is displayed. (unique
constraint has been set in schema.yml).

I would like to be able to write sthg like :

$this->validatorSchema['login'] = new sfValidatorString(array
('required' => false), array('invalid' => 'Login already exists'));

--
Adrien

On 18 oct, 23:34, Gábor Fási  wrote:
> http://trac.symfony-project.org/browser/branches/1.2/lib/plugins/sfPr...
>
> sfValidatorPropelUnique throws an "invalid" error, customize that in
> your form, in the second parameter of the constructor.
>
> On Sun, Oct 18, 2009 at 23:26, Adrien Mogenet  
> wrote:
>
> > Hi,
>
> > My field "login" has been set as unique.
>
> > So when I try to register as an existing user, Propel is warning me
> > correctly with an error message (an object with the same _ _ _ _
> > already exists), but I would like to use a custom message.
>
> > How can I do that ?
>
> > Btw, I created a custom UniqueValidator, with a custom error message,
> > but when I use this custom UniqueValidator, my forms displays both
> > errors : my custom message AND the propel error message.
>
> > Ho can I avoid this behaviour ?
>
> > Regards,
>
> > --
> > Adrien
--~--~-~--~~~---~--~~
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: Page state

2009-10-19 Thread Mark Smith



On Oct 19, 3:47 am, Eno  wrote:
> On Fri, 16 Oct 2009, Mark Smith wrote:
> > However it all breaks the moment a user has more than one page open:
> > If while that second screen is open a new customer is selected in
> > another window the action will pick up the new id from session but
> > when the user submits the form he/she will see the old customer and
> > naturally assume that is who they are submitting the order against.
>
> Why would a user be logged in more than once at the same time?
>

It's pretty common for users to have multiple tabs or windows open.
--~--~-~--~~~---~--~~
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] loading old schema.yml with not existing table

2009-10-19 Thread mini_alexander

In old schema.yml I had some table, then I deleted this table from
schema.yml but this table is still creating when I write in console:
php symfony doctrine:build-all-reload

I must delete from /lib/filter, /lib/form and /lib/model all files
which have got in name, name this table and then after:
php symfony doctrine:build-all-reload

everything is ok - I have in database tables from new schema.yml
without this table, but it isn't comfortable - is other way ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] i18n in forms

2009-10-19 Thread HAUSa

When I have some i18n fields in my form, it is displayed like this:

price:  
rank:  
en:
-- title: 
-- description: 
nl:
-- title: 
-- description: 

But, is it also possible to display it like this:

title:
-- en: 
-- nl: 
price: 
rank: 
description:
-- en: 
-- nl: 
--~--~-~--~~~---~--~~
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: embed forms and use_fields

2009-10-19 Thread mintao

Imagine this scenario (I think that's pretty common, so I don't
understand why I can't find any solution):

1. For the subscription process I only have 2 mandatory fields
"username" and "email". The password is created automatically.

2. Later, when the user is subscribed, he/she has the possibility to
complete his/her profile with additional information like first name,
last name, skype, etc.

3. For the login process I just need the username and password field
to be displayed.

So I want to show/hide the form fields dynamically in the controller
dependent to the action. So I only need to know how to access the
fields of an embedded form (which contains additional information to
sfUserGuard).

Best,
Florian


On Oct 19, 12:12 am, mintao  wrote:
> if there's a field called "last_name" in the embedded form called
> "profile", how can I access this?
>
> On 18 Okt., 11:15, geoffroy  wrote:
>
> > Hie,
>
> > I think you have ti unset() fields like :
>
> > class signForm extends PluginsfGuardUserForm
> > {
> >   public function configure()
> >   {
> >     $form = new sfGuardUserProfileForm();
> >     $this->embedForm('profile', $form);
>
> >     unset(
> >       $this['filed_u_dont_want1],
> >       $this['filed_u_dont_want2'],
> >     );
> >   }
>
> > }
>
> > Or try to unset() fields in your sfGuardProfileForm extend class.
>
> > Geo
>
> > On Oct 17, 11:35 pm, mintao  wrote:
>
> > > Hi folks,
>
> > > it's really no fun for a newbie to configure the symfony forms. I'm
> > > using 1.3Alpha2 and activated the plugin sfDoctrineUserGuard. The
> > > description of this plugin is so old that nearly nothing of the
> > > described steps worked.
> > > So 3 days later I'm trying to set up a sign up form. Therefore I use
> > > the sfGuardUserForm and  an embedded ProfileForm:
>
> > > class signForm extends PluginsfGuardUserForm
> > > {
> > >   public function configure()
> > >   {
> > >     $form = new sfGuardUserProfileForm();
> > >     $this->embedForm('profile', $form);
> > >     $this->useFields(array(
> > >         'username',
> > >         'profile.email',
> > >     ));
> > >   }
>
> > > }
>
> > > As you can imagine, I try only to display a username and  an email
> > > field. The username is part of the plugin, the email is part of the
> > > embedded form.
>
> > > My question: my version doesn't work. How can I display fields of
> > > embedded forms?
>
>
--~--~-~--~~~---~--~~
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] i18n form layout

2009-10-19 Thread HAUSa

It is possible to make an own formatter for my forms. See the example:

class kmFormFormatter extends sfWidgetFormSchemaFormatterTable{

protected $rowFormat = '%label%%field%
%hidden_fields%%error%%help%';
protected $errorListFormatInARow = '%errors%';
protected $errorRowFormatInARow  = '%error%';
protected $helpFormat= '%help%';

}

Is it possible to change the formatter that generates the i18n fields?
And how do I do that?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Caching strategy: 'with_layout: true' + filter to add dynamics

2009-10-19 Thread SA

Hello,
we are developing a news website which mostly consists of constantly
changing, but fully cacheable content, the only dynamic parts are ads
which have to be selected randomly and user panel.

We couldn't cache the pages with layout and had to include these
components in the layout. The layout includes other components and
actions that are cached in memcached. Profiling shows that even if the
component is cached its a pretty costly operation to include it when
you have many.

This gives an idea of caching an action with layout and replacing
dynamic parts of the page in a filter. Dynamic parts are marked by
markers such as  or . We tried this strategy and overhead
added by this filters preg_match and replace seems to be minor -
site's performance increased by 50%. I can't see any drawback in this
now and I don't feel comfortable with it. :)

What do you think of this strategy? Are we reinventing the wheel? Can
we achieve this in a more 'standard' way?

Please comment. Thanks.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Unset i18n field

2009-10-19 Thread HAUSa

In my form class, I can unset several fields.
But how can I unset an i18n field?
--~--~-~--~~~---~--~~
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] Why "Remember Me" stores the IP in the database?

2009-10-19 Thread HiDDeN

I have a simple question: why is the "remember me" feature storing the
user IP in the database?

If I logout, change my IP, and login again, it is yet working well,
so... why is it storing the IP?? I can't understand it.

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-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: Custom Propel Unique error message

2009-10-19 Thread Gábor Fási

You should add the propel unique validator to your form, since the
unique violation error while saving is too late - you need to get the
error while validating the form itself, not the propel object behind
the form.
You get the invalid error you specified when the data submitted by the
user is not a string - kinda rarely in php.

On Mon, Oct 19, 2009 at 09:36, Adrien Mogenet  wrote:
>
> Actually, I'm not using sfValidatorPropelUnique. My "login" field is
> checked by a sfStringValidator, but the "unique" constraint is checked
> by Propel anyway, and the "unique" error message is displayed. (unique
> constraint has been set in schema.yml).
>
> I would like to be able to write sthg like :
>
> $this->validatorSchema['login'] = new sfValidatorString(array
> ('required' => false), array('invalid' => 'Login already exists'));
>
> --
> Adrien
>
> On 18 oct, 23:34, Gábor Fási  wrote:
>> http://trac.symfony-project.org/browser/branches/1.2/lib/plugins/sfPr...
>>
>> sfValidatorPropelUnique throws an "invalid" error, customize that in
>> your form, in the second parameter of the constructor.
>>
>> On Sun, Oct 18, 2009 at 23:26, Adrien Mogenet  
>> wrote:
>>
>> > Hi,
>>
>> > My field "login" has been set as unique.
>>
>> > So when I try to register as an existing user, Propel is warning me
>> > correctly with an error message (an object with the same _ _ _ _
>> > already exists), but I would like to use a custom message.
>>
>> > How can I do that ?
>>
>> > Btw, I created a custom UniqueValidator, with a custom error message,
>> > but when I use this custom UniqueValidator, my forms displays both
>> > errors : my custom message AND the propel error message.
>>
>> > Ho can I avoid this behaviour ?
>>
>> > Regards,
>>
>> > --
>> > Adrien
> >
>

--~--~-~--~~~---~--~~
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] Config problem

2009-10-19 Thread HAUSa

My app.yml:

all:
  email:
sender:
  name:  Snuber
  email_address: i...@snuber.net
subject:
  sign_up: Welkom bij Snuber

When I use sfConfig::get('app_email_subject_sign_up') in my action, it
just returns nothing. The e-mail sent doesn't have a subject. How is
that possible?
--~--~-~--~~~---~--~~
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: Config problem

2009-10-19 Thread Mr_chon

Hi.

Check the debugbar's config>settings section and you'll notice that
there isn't a "app_email_subject_sign_up" parameter. You'll also
notice there's "app_email_subject", which is an array. This behavior
is described in the symfony book.

$subject = sfConfig::get('app_email_subject');
// $subject['sign_up'] contains "Welkom bij Snuber"


On Oct 19, 1:49 pm, HAUSa 
wrote:
> My app.yml:
>
> all:
>   email:
>     sender:
>       name:          Snuber
>       email_address: i...@snuber.net
>     subject:
>       sign_up: Welkom bij Snuber
>
> When I use sfConfig::get('app_email_subject_sign_up') in my action, it
> just returns nothing. The e-mail sent doesn't have a subject. How is
> that possible?
--~--~-~--~~~---~--~~
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] sfGuardAuth function Signin and StatusCode

2009-10-19 Thread Bertrand Zuchuat

Hi,

Why, the signin page of sfGuardAuth module return a 401 status code  
and not 200 (on load -> /signin) ?

For me, if the page is OK, the status returned is 200.

Thank you.

Bertrand


--~--~-~--~~~---~--~~
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: Why "Remember Me" stores the IP in the database?

2009-10-19 Thread Eno

On Mon, 19 Oct 2009, HiDDeN wrote:

> I have a simple question: why is the "remember me" feature storing the
> user IP in the database?
> 
> If I logout, change my IP, and login again, it is yet working well,
> so... why is it storing the IP?? I can't understand it.

Maybe so noone can hijack the session perhaps?



-- 



--~--~-~--~~~---~--~~
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: Page state

2009-10-19 Thread Eno

On Mon, 19 Oct 2009, Mark Smith wrote:

> > Why would a user be logged in more than once at the same time?
> 
> It's pretty common for users to have multiple tabs or windows open.

Sure, but not with different user IDs...


-- 



--~--~-~--~~~---~--~~
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] Check form

2009-10-19 Thread HAUSa

In one of my actions I use two forms.
When I submit one of them, how can I check in my action which of those
is submitted?
--~--~-~--~~~---~--~~
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: Check form

2009-10-19 Thread Mr_chon

Hi.

Why don't you simply use two different actions (one per form...) ?

On Oct 19, 3:00 pm, HAUSa 
wrote:
> In one of my actions I use two forms.
> When I submit one of them, how can I check in my action which of those
> is submitted?
--~--~-~--~~~---~--~~
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: loading old schema.yml with not existing table

2009-10-19 Thread Gareth McCumskey
Did you remember to clear cache after altering your schema.yml?

On Mon, Oct 19, 2009 at 10:32 AM, mini_alexander wrote:

>
> In old schema.yml I had some table, then I deleted this table from
> schema.yml but this table is still creating when I write in console:
> php symfony doctrine:build-all-reload
>
> I must delete from /lib/filter, /lib/form and /lib/model all files
> which have got in name, name this table and then after:
> php symfony doctrine:build-all-reload
>
> everything is ok - I have in database tables from new schema.yml
> without this table, but it isn't comfortable - is other way ?
> >
>


-- 
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-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: Check form

2009-10-19 Thread HAUSa

Because I want the users to be able to use both forms in the same
windows / screen.

On 19 okt, 15:08, Mr_chon  wrote:
> Hi.
>
> Why don't you simply use two different actions (one per form...) ?
>
> On Oct 19, 3:00 pm, HAUSa 
> wrote:
>
> > In one of my actions I use two forms.
> > When I submit one of them, how can I check in my action which of those
> > is submitted?
--~--~-~--~~~---~--~~
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: Check form

2009-10-19 Thread Gareth McCumskey
Add a hidden field in each with a different default value and then check
that value after submission in your action

On Mon, Oct 19, 2009 at 3:13 PM, HAUSa <
jeroen_heeft_behoefte_aan_r...@hotmail.com> wrote:

>
> Because I want the users to be able to use both forms in the same
> windows / screen.
>
> On 19 okt, 15:08, Mr_chon  wrote:
> > Hi.
> >
> > Why don't you simply use two different actions (one per form...) ?
> >
> > On Oct 19, 3:00 pm, HAUSa 
> > wrote:
> >
> > > In one of my actions I use two forms.
> > > When I submit one of them, how can I check in my action which of those
> > > is submitted?
> >
>


-- 
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-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: Connect to Sybase ASE

2009-10-19 Thread Rodrigo Ruiz Fuentes

Alan Bem escribió:
> Are you on Windows?
> 
> On Windows its better to use ODBC due some obsolete DLLs.
> 

[...]

OK Alan, could you show me an example of database.yml and propel.ini for 
connect symfony with an Sybase ASE ODBC please??

Thanks...

When I say that I'm over a NT plataform, I mean that I'm using XP.

Thanks in advance.-

--~--~-~--~~~---~--~~
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: loading old schema.yml with not existing table

2009-10-19 Thread mini_alexander

Yes but Symfony doesn't delete old models.

On 19 Paź, 15:12, Gareth McCumskey  wrote:
> Did you remember to clear cache after altering your schema.yml?
>
> On Mon, Oct 19, 2009 at 10:32 AM, mini_alexander wrote:
>
>
>
> > In old schema.yml I had some table, then I deleted this table from
> > schema.yml but this table is still creating when I write in console:
> > php symfony doctrine:build-all-reload
>
> > I must delete from /lib/filter, /lib/form and /lib/model all files
> > which have got in name, name this table and then after:
> > php symfony doctrine:build-all-reload
>
> > everything is ok - I have in database tables from new schema.yml
> > without this table, but it isn't comfortable - is other way ?
>
> --
> Gareth McCumskeyhttp://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-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: Page state

2009-10-19 Thread Mark Smith



On Oct 19, 1:52 pm, Eno  wrote:
> On Mon, 19 Oct 2009, Mark Smith wrote:
> > > Why would a user be logged in more than once at the same time?
>
> > It's pretty common for users to have multiple tabs or windows open.
>
> Sure, but not with different user IDs...
>

Never said thats what I'm trying to support...
--~--~-~--~~~---~--~~
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: loading old schema.yml with not existing table

2009-10-19 Thread Gareth McCumskey
So go to your models folder and delete them. If you don't nothing bad
happens, those files just wont get used is all.

On Mon, Oct 19, 2009 at 3:57 PM, mini_alexander  wrote:

>
> Yes but Symfony doesn't delete old models.
>
> On 19 Paź, 15:12, Gareth McCumskey  wrote:
> > Did you remember to clear cache after altering your schema.yml?
> >
> > On Mon, Oct 19, 2009 at 10:32 AM, mini_alexander  >wrote:
> >
> >
> >
> > > In old schema.yml I had some table, then I deleted this table from
> > > schema.yml but this table is still creating when I write in console:
> > > php symfony doctrine:build-all-reload
> >
> > > I must delete from /lib/filter, /lib/form and /lib/model all files
> > > which have got in name, name this table and then after:
> > > php symfony doctrine:build-all-reload
> >
> > > everything is ok - I have in database tables from new schema.yml
> > > without this table, but it isn't comfortable - is other way ?
> >
> > --
> > Gareth McCumskeyhttp://garethmccumskey.blogspot.com
> > twitter: @garethmcc
> >
>


-- 
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-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: loading old schema.yml with not existing table

2009-10-19 Thread Gareth McCumskey
And the reason why symfony doesn't is you may have code you put into the
model files that you still need to move over to the new model files and so
its safer for symfony not to delete them.

On Mon, Oct 19, 2009 at 3:57 PM, mini_alexander  wrote:

>
> Yes but Symfony doesn't delete old models.
>
> On 19 Paź, 15:12, Gareth McCumskey  wrote:
> > Did you remember to clear cache after altering your schema.yml?
> >
> > On Mon, Oct 19, 2009 at 10:32 AM, mini_alexander  >wrote:
> >
> >
> >
> > > In old schema.yml I had some table, then I deleted this table from
> > > schema.yml but this table is still creating when I write in console:
> > > php symfony doctrine:build-all-reload
> >
> > > I must delete from /lib/filter, /lib/form and /lib/model all files
> > > which have got in name, name this table and then after:
> > > php symfony doctrine:build-all-reload
> >
> > > everything is ok - I have in database tables from new schema.yml
> > > without this table, but it isn't comfortable - is other way ?
> >
> > --
> > Gareth McCumskeyhttp://garethmccumskey.blogspot.com
> > twitter: @garethmcc
> >
>


-- 
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-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: loading old schema.yml with not existing table

2009-10-19 Thread mini_alexander

I make that and then everything is ok but I thought that there is more
comfortable way - maybe some command which I could write in console xD

On 19 Paź, 16:19, Gareth McCumskey  wrote:
> So go to your models folder and delete them. If you don't nothing bad
> happens, those files just wont get used is all.
>
>
>
> On Mon, Oct 19, 2009 at 3:57 PM, mini_alexander  wrote:
>
> > Yes but Symfony doesn't delete old models.
>
> > On 19 Paź, 15:12, Gareth McCumskey  wrote:
> > > Did you remember to clear cache after altering your schema.yml?
>
> > > On Mon, Oct 19, 2009 at 10:32 AM, mini_alexander  > >wrote:
>
> > > > In old schema.yml I had some table, then I deleted this table from
> > > > schema.yml but this table is still creating when I write in console:
> > > > php symfony doctrine:build-all-reload
>
> > > > I must delete from /lib/filter, /lib/form and /lib/model all files
> > > > which have got in name, name this table and then after:
> > > > php symfony doctrine:build-all-reload
>
> > > > everything is ok - I have in database tables from new schema.yml
> > > > without this table, but it isn't comfortable - is other way ?
>
> > > --
> > > Gareth McCumskeyhttp://garethmccumskey.blogspot.com
> > > twitter: @garethmcc
>
> --
> Gareth McCumskeyhttp://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-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: Why "Remember Me" stores the IP in the database?

2009-10-19 Thread HiDDeN

I have tested this:

- I logged in marking the "remember me" option.
- I closed the browser
- I changed the IP field in the sf_guard_remember_key table
corresponding to my user
- I reopened the browser with the same url as before, and the session
continued

So, I can't yet understand why is it saving the IP...


On 19 oct, 14:38, Eno  wrote:
> On Mon, 19 Oct 2009, HiDDeN wrote:
> > I have a simple question: why is the "remember me" feature storing the
> > user IP in the database?
>
> > If I logout, change my IP, and login again, it is yet working well,
> > so... why is it storing the IP?? I can't understand it.
>
> Maybe so noone can hijack the session perhaps?
>
> --
--~--~-~--~~~---~--~~
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] sfDoctrineGuardPlugin and shema.yml

2009-10-19 Thread HiDDeN

When I'm working on a project, I usually make modifications directly
to the database, and then I run the "doctrine:build-schema" and
"doctrine:build-model" tasks.

Doing this with the sfDoctrineGuardPlugin installed, the "sf_guard"
tables will be replicated from plugin/sfDoctrineGuardPlugin/config/
doctrine/schema,yml into the general schema.yml, so they are being
duplicated in both places, although the syntax is not exactly the
same.

Is this normal behavior?
--~--~-~--~~~---~--~~
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] File system access

2009-10-19 Thread Daniel Londero

Hi! I'm going to write some tasks for an app and I need to work with
files on the file system (move, rename, delete...). Is there something
as an abstraction layer fot this provided by symfony? Or I need to use
exec calls or a plugin like cleverFilesystemPlugin?

Thanks
Daniel
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: File system access

2009-10-19 Thread Thomas Rabaix
If you are working on a local file system you can use sfFilesystem otherwise
the cleverPlugin might be a better solution.

On Mon, Oct 19, 2009 at 5:35 PM, Daniel Londero wrote:

>
> Hi! I'm going to write some tasks for an app and I need to work with
> files on the file system (move, rename, delete...). Is there something
> as an abstraction layer fot this provided by symfony? Or I need to use
> exec calls or a plugin like cleverFilesystemPlugin?
>
> Thanks
> Daniel
> >
>


-- 
Thomas Rabaix
http://rabaix.net

--~--~-~--~~~---~--~~
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: File system access

2009-10-19 Thread Daniel Londero

On 19 Ott, 17:43, Thomas Rabaix  wrote:
> If you are working on a local file system you can use sfFilesystem otherwise
> the cleverPlugin might be a better solution.

Thanks Thomas, I was looking exactly for sfFilesystem!

Daniel
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Access sfWebRequest in View

2009-10-19 Thread Simone Fumagalli

Hello.

Ho do I access sfWebRequest in my view file ?

I want to write something like

Your referral is : getReferer()) ?>

thanks

--
Simone
--~--~-~--~~~---~--~~
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: Why "Remember Me" stores the IP in the database?

2009-10-19 Thread Andrei Dziahel
Hi.

Well, IP check *should* work. It looks like a bug. Which version? For Propel
or Doctrine?

2009/10/19 HiDDeN 

>
> I have tested this:
>
> - I logged in marking the "remember me" option.
> - I closed the browser
> - I changed the IP field in the sf_guard_remember_key table
> corresponding to my user
> - I reopened the browser with the same url as before, and the session
> continued
>
> So, I can't yet understand why is it saving the IP...
>
>
> On 19 oct, 14:38, Eno  wrote:
> > On Mon, 19 Oct 2009, HiDDeN wrote:
> > > I have a simple question: why is the "remember me" feature storing the
> > > user IP in the database?
> >
> > > If I logout, change my IP, and login again, it is yet working well,
> > > so... why is it storing the IP?? I can't understand it.
> >
> > Maybe so noone can hijack the session perhaps?
> >
> > --
> >
>


-- 
With the best regards, Andy.

--~--~-~--~~~---~--~~
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: Access sfWebRequest in View

2009-10-19 Thread Richtermeister

$sf_request

http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chapter_07_sub_template_shortcuts

Daniel


On Oct 19, 9:07 am, Simone Fumagalli 
wrote:
> Hello.
>
> Ho do I access sfWebRequest in my view file ?
>
> I want to write something like
>
> Your referral is : getReferer()) ?>
>
> thanks
>
> --
> Simone
--~--~-~--~~~---~--~~
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] Routing with email addresses in URLs

2009-10-19 Thread Eno


In one of our apps, we have a routing rule with an email address in it:

unsubscribeform:
  url:  /unsubscribe/email/:email
  param: { module: subscribe, action: index }

So URLs will be like:

http://www.domain.com/unsubscribe/email/e...@example.com

This route worked fine in symfony 1.0, but in 1.2 we get a 404 error. We 
also tried urlencoding the email address - this works in Firefox but IE 
and Chrome url-decode before sending the HTTP request so it breaks.

Any ideas on what's going on here?



-- 




--~--~-~--~~~---~--~~
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: Routing with email addresses in URLs

2009-10-19 Thread Alexandru-Emil Lupu
try to md5 the email address. i guess it would be better .. and also would
fix your problem ...
i do not know why would you met that problem ..

On Mon, Oct 19, 2009 at 8:50 PM, Eno  wrote:

>
>
> In one of our apps, we have a routing rule with an email address in it:
>
> unsubscribeform:
>  url:  /unsubscribe/email/:email
>  param: { module: subscribe, action: index }
>
> So URLs will be like:
>
> http://www.domain.com/unsubscribe/email/e...@example.com
>
> This route worked fine in symfony 1.0, but in 1.2 we get a 404 error. We
> also tried urlencoding the email address - this works in Firefox but IE
> and Chrome url-decode before sending the HTTP request so it breaks.
>
> Any ideas on what's going on here?
>
>
>
> --
>
>
>
>
> >
>


-- 
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)0748.543.798

--~--~-~--~~~---~--~~
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] .ext on the generated routes

2009-10-19 Thread Alexandru-Emil Lupu
Hi there!
It is any chance to automatically append to the generated urls a custom
sf_format extension, without passing it as argument to the url functions
(url_for, link_to etc)

i mean i have this route:

Homepage:
  url: /index.:sf_format
  params: .
  requirements:
sf_format: (?:html)

when i use url_for(__('Home page'), '@homepage'), to render the url like:
index.html

Thanks.

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)0748.543.798

--~--~-~--~~~---~--~~
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: Check form

2009-10-19 Thread Eno

On Mon, 19 Oct 2009, HAUSa wrote:

> 
> Because I want the users to be able to use both forms in the same
> windows / screen.
> 

Is possible to have more than one form in a page that psot to different 
URLs.


-- 



--~--~-~--~~~---~--~~
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: Check form

2009-10-19 Thread Alan Bem
Create 2 form-processing actions - one for each form - in your module and
set its URLs for both forms - in their action attribute - respectively.

Alan

On Mon, Oct 19, 2009 at 8:13 PM, Eno  wrote:

>
> On Mon, 19 Oct 2009, HAUSa wrote:
>
> >
> > Because I want the users to be able to use both forms in the same
> > windows / screen.
> >
>
> Is possible to have more than one form in a page that psot to different
> URLs.
>
>
> --
>
>
>
> >
>

--~--~-~--~~~---~--~~
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] Output escaping using htmlspecialchars should not double escape?

2009-10-19 Thread gunnarlium

Hi!

I have a problem with variables being double escaped when passed to a
partial. I'm experiencing this issue for example with the & character.
In the source code it ends up as &. This problem goes away if
I hack EscapingHelper.php to add a fourth variable false to the
htmlspecialchars.

Why is this not the default options? Seems more sensible to me (at
least for this use case)?

Would it make sense to make configureable?

--~--~-~--~~~---~--~~
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] Optimizing Lots of Routes

2009-10-19 Thread Jacob Coby

Hi all,

I've been working on a symfony 1.2 app that includes a CMS.   
Unfortunately, the CMS system generates approximately 3000 routes  
programmatically across 4 different module/actions.   Unfortunately  
there is no sort of pattern to the routes and the cms uses the routing  
system to generate the final url.  For example, cms/index?id=23 would  
get translated to /about_us.  And cms/subpage?id=56 would get  
translated to /another_page.

This generates a 6.5mb routing cache which expands to well over 64mb  
once running in PHP (I had to set the memory limit to 128mb just to  
get it running).  With a small EC2 instance (256mb), the site  
immediately starts to eat up the 200mb free and marches towards the  
swap of death.

I tried writing a custom routing object that would query the database  
to do the routing, but it doesn't solve the problem of needing to  
generate the urls from page IDs.

Does anyone have suggestions on how to get this routing system under  
control?

Thanks,
--
Jacob Coby







--~--~-~--~~~---~--~~
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: Output escaping using htmlspecialchars should not double escape?

2009-10-19 Thread Alexandre SALOME
Check your settings.yml in config folder of your application. There is an
escaping strategy that can be enabled by default.

Make some debug to see if your variable during the process are as expected.

Alexandre


2009/10/19 gunnarlium 

>
> Hi!
>
> I have a problem with variables being double escaped when passed to a
> partial. I'm experiencing this issue for example with the & character.
> In the source code it ends up as &. This problem goes away if
> I hack EscapingHelper.php to add a fourth variable false to the
> htmlspecialchars.
>
> Why is this not the default options? Seems more sensible to me (at
> least for this use case)?
>
> Would it make sense to make configureable?
>
> >
>


-- 
Alexandre Salomé -- alexandre.sal...@gmail.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: Check form

2009-10-19 Thread Alexandre SALOME
Other solution : create a form and embed them in it :

class myForm extends sfForm
{
  public function configure()
  {
$this->embedForm(...);
$this->embedForm(...);
  }
}

Alexandre

2009/10/19 Alan Bem 

> Create 2 form-processing actions - one for each form - in your module and
> set its URLs for both forms - in their action attribute - respectively.
>
> Alan
>
>
> On Mon, Oct 19, 2009 at 8:13 PM, Eno  wrote:
>
>>
>> On Mon, 19 Oct 2009, HAUSa wrote:
>>
>> >
>> > Because I want the users to be able to use both forms in the same
>> > windows / screen.
>> >
>>
>> Is possible to have more than one form in a page that psot to different
>> URLs.
>>
>>
>> --
>>
>>
>>
>>
>>
>
> >
>


-- 
Alexandre Salomé -- alexandre.sal...@gmail.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: .ext on the generated routes

2009-10-19 Thread Alexandre SALOME
Try this :

url_for('@homepage?sf_format=html')

Alexandre

2009/10/19 Alexandru-Emil Lupu 

> Hi there!
> It is any chance to automatically append to the generated urls a custom
> sf_format extension, without passing it as argument to the url functions
> (url_for, link_to etc)
>
> i mean i have this route:
>
> Homepage:
>   url: /index.:sf_format
>   params: .
>   requirements:
> sf_format: (?:html)
>
> when i use url_for(__('Home page'), '@homepage'), to render the url like:
> index.html
>
> Thanks.
>
> 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)0748.543.798
>
>
> >
>


-- 
Alexandre Salomé -- alexandre.sal...@gmail.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: Optimizing Lots of Routes

2009-10-19 Thread Alexandre SALOME
Hello,

  You should reduce the number of URL, 3500 routes is not a normal
behavior... maybe you didn't made the proper way.

  You "generate" routes ???

What are them ?


2009/10/19 Jacob Coby 

>
> Hi all,
>
> I've been working on a symfony 1.2 app that includes a CMS.
> Unfortunately, the CMS system generates approximately 3000 routes
> programmatically across 4 different module/actions.   Unfortunately
> there is no sort of pattern to the routes and the cms uses the routing
> system to generate the final url.  For example, cms/index?id=23 would
> get translated to /about_us.  And cms/subpage?id=56 would get
> translated to /another_page.
>
> This generates a 6.5mb routing cache which expands to well over 64mb
> once running in PHP (I had to set the memory limit to 128mb just to
> get it running).  With a small EC2 instance (256mb), the site
> immediately starts to eat up the 200mb free and marches towards the
> swap of death.
>
> I tried writing a custom routing object that would query the database
> to do the routing, but it doesn't solve the problem of needing to
> generate the urls from page IDs.
>
> Does anyone have suggestions on how to get this routing system under
> control?
>
> Thanks,
> --
> Jacob Coby
>
>
>
>
>
>
>
> >
>


-- 
Alexandre Salomé -- alexandre.sal...@gmail.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: Routing with email addresses in URLs

2009-10-19 Thread Alexandre SALOME
Does it enter the action ?

try adding some debug code (echo "ok";exit;) at the beginning of
executeIndex method. Does it works ?

What does log files tell ? Which route did it matches ?

What kind of error do you have in development environment ? Stack trace ?

Good luck,

Alexandre

2009/10/19 Alexandru-Emil Lupu 

> try to md5 the email address. i guess it would be better .. and also would
> fix your problem ...
> i do not know why would you met that problem ..
>
> On Mon, Oct 19, 2009 at 8:50 PM, Eno  wrote:
>
>>
>>
>> In one of our apps, we have a routing rule with an email address in it:
>>
>> unsubscribeform:
>>  url:  /unsubscribe/email/:email
>>  param: { module: subscribe, action: index }
>>
>> So URLs will be like:
>>
>> http://www.domain.com/unsubscribe/email/e...@example.com
>>
>> This route worked fine in symfony 1.0, but in 1.2 we get a 404 error. We
>> also tried urlencoding the email address - this works in Firefox but IE
>> and Chrome url-decode before sending the HTTP request so it breaks.
>>
>> Any ideas on what's going on here?
>>
>>
>>
>> --
>>
>>
>>
>>
>>
>>
>
>
> --
> 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)0748.543.798
>
>
>
> >
>


-- 
Alexandre Salomé -- alexandre.sal...@gmail.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: Optimizing Lots of Routes

2009-10-19 Thread Alexandru-Emil Lupu
HI!
You might wanna use slugs. That (i think it) would help you out.
Instead of having routes like "@subpage?id=56" that would be translated to
"/another_page", you would have just:
"@subpage?slug=another_page", "@subpage?slug=a_page",
"@subpage?slug=a_second_page"
and your "subpage" route would be:

subpage:
  url: /:slug
  param: { module: a_module, action: an_acttion, slug: index }  #that would
autommatically match an index page for a page that has slug = null parameter


Of course i do not know what you really have there (how is your routing.yml
file)

Alecs

On Mon, Oct 19, 2009 at 11:38 PM, Jacob Coby  wrote:

>
> Hi all,
>
> I've been working on a symfony 1.2 app that includes a CMS.
> Unfortunately, the CMS system generates approximately 3000 routes
> programmatically across 4 different module/actions.   Unfortunately
> there is no sort of pattern to the routes and the cms uses the routing
> system to generate the final url.  For example, cms/index?id=23 would
> get translated to /about_us.  And cms/subpage?id=56 would get
> translated to /another_page.
>
> This generates a 6.5mb routing cache which expands to well over 64mb
> once running in PHP (I had to set the memory limit to 128mb just to
> get it running).  With a small EC2 instance (256mb), the site
> immediately starts to eat up the 200mb free and marches towards the
> swap of death.
>
> I tried writing a custom routing object that would query the database
> to do the routing, but it doesn't solve the problem of needing to
> generate the urls from page IDs.
>
> Does anyone have suggestions on how to get this routing system under
> control?
>
> Thanks,
> --
> Jacob Coby
>
>
>
>
>
>
>
> >
>


-- 
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)0748.543.798

--~--~-~--~~~---~--~~
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: .ext on the generated routes

2009-10-19 Thread Alexandru-Emil Lupu
hi!
thanks, but this is exactly what i do not want to do (to pass to each
url_for / link_to a sf_format parameter ).

"automatically append to the generated urls a custom sf_format
extension, *without
**passing it as argument *to the url functions (url_for, link_to etc)"

Alecs

On Tue, Oct 20, 2009 at 12:13 AM, Alexandre SALOME <
alexandre.sal...@gmail.com> wrote:

> Try this :
>
> url_for('@homepage?sf_format=html')
>
> Alexandre
>
> 2009/10/19 Alexandru-Emil Lupu 
>
> Hi there!
>> It is any chance to automatically append to the generated urls a custom
>> sf_format extension, without passing it as argument to the url functions
>> (url_for, link_to etc)
>>
>> i mean i have this route:
>>
>> Homepage:
>>   url: /index.:sf_format
>>   params: .
>>   requirements:
>> sf_format: (?:html)
>>
>> when i use url_for(__('Home page'), '@homepage'), to render the url like:
>> index.html
>>
>> Thanks.
>>
>> 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)0748.543.798
>>
>>
>>
>>
>
>
> --
> Alexandre Salomé -- alexandre.sal...@gmail.com
>
> >
>


-- 
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)0748.543.798

--~--~-~--~~~---~--~~
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: .ext on the generated routes

2009-10-19 Thread Alexandre SALOME
Look at this :
http://groups.google.com/group/symfony-users/browse_thread/thread/b8991d26a8bfc82f?pli=1

2009/10/19 Alexandru-Emil Lupu 

> hi!
> thanks, but this is exactly what i do not want to do (to pass to each
> url_for / link_to a sf_format parameter ).
>
> "automatically append to the generated urls a custom sf_format extension,
> *without **passing it as argument *to the url functions (url_for, link_to
> etc)"
>
> Alecs
>
> On Tue, Oct 20, 2009 at 12:13 AM, Alexandre SALOME <
> alexandre.sal...@gmail.com> wrote:
>
>> Try this :
>>
>> url_for('@homepage?sf_format=html')
>>
>> Alexandre
>>
>> 2009/10/19 Alexandru-Emil Lupu 
>>
>> Hi there!
>>> It is any chance to automatically append to the generated urls a custom
>>> sf_format extension, without passing it as argument to the url functions
>>> (url_for, link_to etc)
>>>
>>> i mean i have this route:
>>>
>>> Homepage:
>>>   url: /index.:sf_format
>>>   params: .
>>>   requirements:
>>> sf_format: (?:html)
>>>
>>> when i use url_for(__('Home page'), '@homepage'), to render the url like:
>>> index.html
>>>
>>> Thanks.
>>>
>>> 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)0748.543.798
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Alexandre Salomé -- alexandre.sal...@gmail.com
>>
>>
>>
>
>
> --
> 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)0748.543.798
>
>
> >
>


-- 
Alexandre Salomé -- alexandre.sal...@gmail.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: .ext on the generated routes

2009-10-19 Thread Alexandru-Emil Lupu
Thanks!

On Tue, Oct 20, 2009 at 12:45 AM, Alexandre SALOME <
alexandre.sal...@gmail.com> wrote:

> Look at this :
> http://groups.google.com/group/symfony-users/browse_thread/thread/b8991d26a8bfc82f?pli=1
>
>
> 2009/10/19 Alexandru-Emil Lupu 
>
>> hi!
>> thanks, but this is exactly what i do not want to do (to pass to each
>> url_for / link_to a sf_format parameter ).
>>
>> "automatically append to the generated urls a custom sf_format extension,
>> *without **passing it as argument *to the url functions (url_for, link_to
>> etc)"
>>
>> Alecs
>>
>> On Tue, Oct 20, 2009 at 12:13 AM, Alexandre SALOME <
>> alexandre.sal...@gmail.com> wrote:
>>
>>> Try this :
>>>
>>> url_for('@homepage?sf_format=html')
>>>
>>> Alexandre
>>>
>>> 2009/10/19 Alexandru-Emil Lupu 
>>>
>>> Hi there!
 It is any chance to automatically append to the generated urls a custom
 sf_format extension, without passing it as argument to the url functions
 (url_for, link_to etc)

 i mean i have this route:

 Homepage:
   url: /index.:sf_format
   params: .
   requirements:
 sf_format: (?:html)

 when i use url_for(__('Home page'), '@homepage'), to render the url
 like: index.html

 Thanks.

 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)0748.543.798




>>>
>>>
>>> --
>>> Alexandre Salomé -- alexandre.sal...@gmail.com
>>>
>>>
>>>
>>
>>
>> --
>> 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)0748.543.798
>>
>>
>>
>>
>
>
> --
> Alexandre Salomé -- alexandre.sal...@gmail.com
>
> >
>


-- 
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)0748.543.798

--~--~-~--~~~---~--~~
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: Routing with email addresses in URLs

2009-10-19 Thread Eno

On Mon, 19 Oct 2009, Alexandre SALOME wrote:

> Does it enter the action ?

Doesn't get that far, because the module and action name don't appear to 
get matched at all.

> What does log files tell ? Which route did it matches ?
>
> 
> What kind of error do you have in development environment ? Stack trace ?

Yeah, sfError404Exception:

404 | Not Found | sfError404Exception
Empty module and/or action after parsing the URL 
"/unsubscribe/email/e...@example.com" (/).
stack trace

* at ()
  in SF_SYMFONY_LIB_DIR/controller/sfFrontWebController.class.php line 44 
...
  41.
  42.   if (empty($moduleName) || empty($actionName))
  43.   {
  44. throw new sfError404Exception(sprintf('Empty module 
and/or action after parsing the URL "%s" (%s/%s).', $request->getPathInfo(), 
$moduleName, $actionName));
  45.   }
  46.
  47.   // make the first request
* at sfFrontWebController->dispatch() in 
SF_SYMFONY_LIB_DIR/util/sfContext.class.php line 159 ...
 156.*/
 157.   public function dispatch()
 158.   {
 159. $this->getController()->dispatch();
 160.   }
 161.
 162.   /**
* at sfContext->dispatch()
  in /home/web/htdocs/index.php line 10 ...



Which isn't very useful :-)


-- 



--~--~-~--~~~---~--~~
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: embed forms and use_fields

2009-10-19 Thread Alexandre SALOME
Hello,

So I want to show/hide the form fields dynamically in the controller
dependent to the action

You are right :

your form will contains every fields : widgets and validators. Your
validator schema is simple and have strict rules for login and password.
Others are facultative.

So, set your two fields as required, leave the others as "free".

And create two templates :

One for registering, with show/hide
One other for profile, without show/hide

You can separate the two logical with isNew() method. isNew = insert =create
= registering // not isNew = update = edit = profile


About show/hide, you must consider the forms in two separate scopes :

1 - defining fields and rules on them to allow only some kind of values
: widgetSchema & validatorSchema

2 - displaying fields... This is not form but templating !

Have fun,

Alexandre

2009/10/19 mintao 

>
> Imagine this scenario (I think that's pretty common, so I don't
> understand why I can't find any solution):
>
> 1. For the subscription process I only have 2 mandatory fields
> "username" and "email". The password is created automatically.
>
> 2. Later, when the user is subscribed, he/she has the possibility to
> complete his/her profile with additional information like first name,
> last name, skype, etc.
>
> 3. For the login process I just need the username and password field
> to be displayed.
>
> So I want to show/hide the form fields dynamically in the controller
> dependent to the action. So I only need to know how to access the
> fields of an embedded form (which contains additional information to
> sfUserGuard).
>
> Best,
> Florian
>
>
> On Oct 19, 12:12 am, mintao  wrote:
> > if there's a field called "last_name" in the embedded form called
> > "profile", how can I access this?
> >
> > On 18 Okt., 11:15, geoffroy  wrote:
> >
> > > Hie,
> >
> > > I think you have ti unset() fields like :
> >
> > > class signForm extends PluginsfGuardUserForm
> > > {
> > >   public function configure()
> > >   {
> > > $form = new sfGuardUserProfileForm();
> > > $this->embedForm('profile', $form);
> >
> > > unset(
> > >   $this['filed_u_dont_want1],
> > >   $this['filed_u_dont_want2'],
> > > );
> > >   }
> >
> > > }
> >
> > > Or try to unset() fields in your sfGuardProfileForm extend class.
> >
> > > Geo
> >
> > > On Oct 17, 11:35 pm, mintao  wrote:
> >
> > > > Hi folks,
> >
> > > > it's really no fun for a newbie to configure the symfony forms. I'm
> > > > using 1.3Alpha2 and activated the plugin sfDoctrineUserGuard. The
> > > > description of this plugin is so old that nearly nothing of the
> > > > described steps worked.
> > > > So 3 days later I'm trying to set up a sign up form. Therefore I use
> > > > the sfGuardUserForm and  an embedded ProfileForm:
> >
> > > > class signForm extends PluginsfGuardUserForm
> > > > {
> > > >   public function configure()
> > > >   {
> > > > $form = new sfGuardUserProfileForm();
> > > > $this->embedForm('profile', $form);
> > > > $this->useFields(array(
> > > > 'username',
> > > > 'profile.email',
> > > > ));
> > > >   }
> >
> > > > }
> >
> > > > As you can imagine, I try only to display a username and  an email
> > > > field. The username is part of the plugin, the email is part of the
> > > > embedded form.
> >
> > > > My question: my version doesn't work. How can I display fields of
> > > > embedded forms?
> >
> >
> >
>


-- 
Alexandre Salomé -- alexandre.sal...@gmail.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: Optimizing Lots of Routes

2009-10-19 Thread Alexandru-Emil Lupu
A question: could you show us how your system generates routes?
As Alexandre asked, who generates those routes? And How?
If you dynamically create a a route instance for every record of your
database, is stongly recommend that slug thing.
If you have problems, check the jobeet tutorial for further reference on how
to create a slug system.
Alecs


On Tue, Oct 20, 2009 at 12:15 AM, Alexandre SALOME <
alexandre.sal...@gmail.com> wrote:

> Hello,
>
>   You should reduce the number of URL, 3500 routes is not a normal
> behavior... maybe you didn't made the proper way.
>
>   You "generate" routes ???
>
> What are them ?
>
>
> 2009/10/19 Jacob Coby 
>
>>
>> Hi all,
>>
>> I've been working on a symfony 1.2 app that includes a CMS.
>> Unfortunately, the CMS system generates approximately 3000 routes
>> programmatically across 4 different module/actions.   Unfortunately
>> there is no sort of pattern to the routes and the cms uses the routing
>> system to generate the final url.  For example, cms/index?id=23 would
>> get translated to /about_us.  And cms/subpage?id=56 would get
>> translated to /another_page.
>>
>> This generates a 6.5mb routing cache which expands to well over 64mb
>> once running in PHP (I had to set the memory limit to 128mb just to
>> get it running).  With a small EC2 instance (256mb), the site
>> immediately starts to eat up the 200mb free and marches towards the
>> swap of death.
>>
>> I tried writing a custom routing object that would query the database
>> to do the routing, but it doesn't solve the problem of needing to
>> generate the urls from page IDs.
>>
>> Does anyone have suggestions on how to get this routing system under
>> control?
>>
>> Thanks,
>> --
>> Jacob Coby
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
>
> --
> Alexandre Salomé -- alexandre.sal...@gmail.com
>
>
> >
>


-- 
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)0748.543.798

--~--~-~--~~~---~--~~
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: Caching strategy: 'with_layout: true' + filter to add dynamics

2009-10-19 Thread Alexandre SALOME
Have you tried to cache only partials/fragments ?

If the cache.yml doesn't fill your needs, you can create more specific
caching in your partials with cache() and cache_save() methods.

Example :

http://www.php.net/md5>($user->getEmail()), 86400)): ?>
  
// Your amazingly huge iteration processes here
  
  



Alexandre

2009/10/19 SA 

>
> Hello,
> we are developing a news website which mostly consists of constantly
> changing, but fully cacheable content, the only dynamic parts are ads
> which have to be selected randomly and user panel.
>
> We couldn't cache the pages with layout and had to include these
> components in the layout. The layout includes other components and
> actions that are cached in memcached. Profiling shows that even if the
> component is cached its a pretty costly operation to include it when
> you have many.
>
> This gives an idea of caching an action with layout and replacing
> dynamic parts of the page in a filter. Dynamic parts are marked by
> markers such as  or  include_ad_slot:main_slot -->. We tried this strategy and overhead
> added by this filters preg_match and replace seems to be minor -
> site's performance increased by 50%. I can't see any drawback in this
> now and I don't feel comfortable with it. :)
>
> What do you think of this strategy? Are we reinventing the wheel? Can
> we achieve this in a more 'standard' way?
>
> Please comment. Thanks.
>
> >
>


-- 
Alexandre Salomé -- alexandre.sal...@gmail.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: loading old schema.yml with not existing table

2009-10-19 Thread Alexandre SALOME
Symfony 1.3 offers new tasks for removing old classes :

http://www.symfony-project.org/tutorial/1_3/en/whats-new#chapter_64a8dd2fac010cece60fe956d341725f_sub_new_tasks

Sure, you have to master your model, and know that when you're removing a
class from your schema, you have to remove the generated files.

But now you know ;)

Alexandre

2009/10/19 mini_alexander 

>
> I make that and then everything is ok but I thought that there is more
> comfortable way - maybe some command which I could write in console xD
>
> On 19 Paź, 16:19, Gareth McCumskey  wrote:
> > So go to your models folder and delete them. If you don't nothing bad
> > happens, those files just wont get used is all.
> >
> >
> >
> > On Mon, Oct 19, 2009 at 3:57 PM, mini_alexander 
> wrote:
> >
> > > Yes but Symfony doesn't delete old models.
> >
> > > On 19 Paź, 15:12, Gareth McCumskey  wrote:
> > > > Did you remember to clear cache after altering your schema.yml?
> >
> > > > On Mon, Oct 19, 2009 at 10:32 AM, mini_alexander <
> aoohra...@gmail.com
> > > >wrote:
> >
> > > > > In old schema.yml I had some table, then I deleted this table from
> > > > > schema.yml but this table is still creating when I write in
> console:
> > > > > php symfony doctrine:build-all-reload
> >
> > > > > I must delete from /lib/filter, /lib/form and /lib/model all files
> > > > > which have got in name, name this table and then after:
> > > > > php symfony doctrine:build-all-reload
> >
> > > > > everything is ok - I have in database tables from new schema.yml
> > > > > without this table, but it isn't comfortable - is other way ?
> >
> > > > --
> > > > Gareth McCumskeyhttp://garethmccumskey.blogspot.com
> > > > twitter: @garethmcc
> >
> > --
> > Gareth McCumskeyhttp://garethmccumskey.blogspot.com
> > twitter: @garethmcc
> >
>


-- 
Alexandre Salomé -- alexandre.sal...@gmail.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: i18n form layout

2009-10-19 Thread Alexandre SALOME
It's possible.

Create your form formatted. OK, it's done

Now, register it in your widgetSchema with addFormFormatter (or something
like this) and enable it with setFormFormatter (or something like this).


2009/10/19 HAUSa 

>
> It is possible to make an own formatter for my forms. See the example:
>
> class kmFormFormatter extends sfWidgetFormSchemaFormatterTable{
>
>protected $rowFormat = '%label%%field%
> %hidden_fields%%error%%help%';
>protected $errorListFormatInARow = '%errors%';
>protected $errorRowFormatInARow  = '%error%';
>protected $helpFormat= '%help%';
>
> }
>
> Is it possible to change the formatter that generates the i18n fields?
> And how do I do that?
> >
>


-- 
Alexandre Salomé -- alexandre.sal...@gmail.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: Unset i18n field

2009-10-19 Thread Alexandre SALOME
I18n fields are not in the form, the in the i18nform.

Example :

CmsPageForm has embed CmsPageI18nForm

So go to your CmsPageI18nForm and unset "title" or "content" field.

Alexandre

2009/10/19 HAUSa 

>
> In my form class, I can unset several fields.
> But how can I unset an i18n field?
> >
>


-- 
Alexandre Salomé -- alexandre.sal...@gmail.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: Why "Remember Me" stores the IP in the database?

2009-10-19 Thread HiDDeN

It is the Doctrine version.

On 19 oct, 18:37, Andrei Dziahel  wrote:
> Hi.
>
> Well, IP check *should* work. It looks like a bug. Which version? For Propel
> or Doctrine?
>
> 2009/10/19 HiDDeN 
>
>
>
>
>
>
>
> > I have tested this:
>
> > - I logged in marking the "remember me" option.
> > - I closed the browser
> > - I changed the IP field in the sf_guard_remember_key table
> > corresponding to my user
> > - I reopened the browser with the same url as before, and the session
> > continued
>
> > So, I can't yet understand why is it saving the IP...
>
> > On 19 oct, 14:38, Eno  wrote:
> > > On Mon, 19 Oct 2009, HiDDeN wrote:
> > > > I have a simple question: why is the "remember me" feature storing the
> > > > user IP in the database?
>
> > > > If I logout, change my IP, and login again, it is yet working well,
> > > > so... why is it storing the IP?? I can't understand it.
>
> > > Maybe so noone can hijack the session perhaps?
>
> > > --
>
> --
> With the best regards, Andy.
--~--~-~--~~~---~--~~
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: sfGuardAuth function Signin and StatusCode

2009-10-19 Thread Alexandre SALOME
symfony provides 2 special routes :

- signin
- secure

You can define them in "settings.yml" of your apps/.../config folder. They
will escape from the security filter, and you should consider them apart
from your website map.

These routes defines :

   - *signin* : You have to connect to continue. You will be redirected to
   referer, who redirected you to here, because you are Unauthorized.
   - *secure* : You don't have enough credentials. You already loggued in,
   but you are not "strong enough"

These pages are not aimed to be referenced.

If you want to create a referenceable page for signin/registering, an
"OK-page" you should create a new one who will not return the 401 code.

Default symfony/guardPlugin is 401.

** WARNING : This is just my opinion **

Alexandre


2009/10/19 Bertrand Zuchuat 

>
> Hi,
>
> Why, the signin page of sfGuardAuth module return a 401 status code
> and not 200 (on load -> /signin) ?
>
> For me, if the page is OK, the status returned is 200.
>
> Thank you.
>
> Bertrand
>
>
> >
>


-- 
Alexandre Salomé -- alexandre.sal...@gmail.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: Optimizing Lots of Routes

2009-10-19 Thread Eno

On Mon, 19 Oct 2009, Jacob Coby wrote:

> I've been working on a symfony 1.2 app that includes a CMS.   
> Unfortunately, the CMS system generates approximately 3000 routes  
> programmatically across 4 different module/actions.   Unfortunately  
> there is no sort of pattern to the routes and the cms uses the routing  
> system to generate the final url.  For example, cms/index?id=23 would  
> get translated to /about_us.  And cms/subpage?id=56 would get  
> translated to /another_page.

Sounds like a bad design. Using slugs would be a good way to refactor that 
stuff to use just a couple (one?) routing rule. There are a plenty of 
examples of this in the docs.



-- 



--~--~-~--~~~---~--~~
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: Routing with email addresses in URLs

2009-10-19 Thread Alexandre SALOME
And what about logs ?

Do they talk of your route ?

Does it works with an URL with some text instead of mail ?

/unsubscribe/email/test for example.

Alexandre

2009/10/19 Eno 

>
> On Mon, 19 Oct 2009, Alexandre SALOME wrote:
>
> > Does it enter the action ?
>
> Doesn't get that far, because the module and action name don't appear to
> get matched at all.
>
> > What does log files tell ? Which route did it matches ?
> >
> >
> > What kind of error do you have in development environment ? Stack trace ?
>
> Yeah, sfError404Exception:
>
> 404 | Not Found | sfError404Exception
> Empty module and/or action after parsing the URL
> "/unsubscribe/email/e...@example.com" (/).
> stack trace
>
>* at ()
>  in SF_SYMFONY_LIB_DIR/controller/sfFrontWebController.class.php line
> 44 ...
>  41.
>  42.   if (empty($moduleName) || empty($actionName))
>  43.   {
>  44. throw new sfError404Exception(sprintf('Empty
> module and/or action after parsing the URL "%s" (%s/%s).',
> $request->getPathInfo(), $moduleName, $actionName));
>  45.   }
>  46.
>  47.   // make the first request
>* at sfFrontWebController->dispatch() in
> SF_SYMFONY_LIB_DIR/util/sfContext.class.php line 159 ...
> 156.*/
> 157.   public function dispatch()
> 158.   {
> 159. $this->getController()->dispatch();
> 160.   }
> 161.
> 162.   /**
>* at sfContext->dispatch()
>  in /home/web/htdocs/index.php line 10 ...
>
>
>
> Which isn't very useful :-)
>
>
> --
>
>
>
> >
>


-- 
Alexandre Salomé -- alexandre.sal...@gmail.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: Optimizing Lots of Routes

2009-10-19 Thread Jacob Coby


On Oct 19, 2009, at 6:19 PM, Eno wrote:

>
> On Mon, 19 Oct 2009, Jacob Coby wrote:
>
>> I've been working on a symfony 1.2 app that includes a CMS.
>> Unfortunately, the CMS system generates approximately 3000 routes
>> programmatically across 4 different module/actions.   Unfortunately
>> there is no sort of pattern to the routes and the cms uses the  
>> routing
>> system to generate the final url.  For example, cms/index?id=23 would
>> get translated to /about_us.  And cms/subpage?id=56 would get
>> translated to /another_page.
>
> Sounds like a bad design. Using slugs would be a good way to  
> refactor that
> stuff to use just a couple (one?) routing rule. There are a plenty of
> examples of this in the docs.

It is a bad design, no doubt about it.  I had no part of the design or  
implementation, nor do I know the history of why it was been  
implemented this way.  I've only been tasked with deploying it and  
making sure it can stand up to the projected load.  I'm quite familiar  
with how symfony routing works.  I've been using symfony  
professionally since 0.63.

I'm trying to find any solution other than going through and redoing  
all of the url_for and link_to calls to support slugs.

>
>
>
> -- 
>
>
>
> >

--
Jacob Coby







--~--~-~--~~~---~--~~
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] Email address in URL leads to problem

2009-10-19 Thread Steve Sanyal

Hi,

In my registration module, I have a URL which has the username
embedded in it.  However, if the username itself is an email address
it does not seem that this approach works:

https://myapp/frontend_dev.php/registration/test%40example.com/xsdfsdfadsf098098098/confirm-registration.html

I get the following error:

Empty module and/or action after parsing the URL

Has anyone encountered this and is there a remedy other than not
allowing usernames with email addresses in them?

Thanks,
Steve
--~--~-~--~~~---~--~~
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: Email address in URL leads to problem

2009-10-19 Thread Steve Sanyal

Just a clarification.  This is a routing issue.  It does not seem like
symfony can parse the URL properly because it includes an email
address as one of the parameters.

Regards,
Steve

On Oct 19, 8:30 pm, Steve Sanyal  wrote:
> Hi,
>
> In my registration module, I have a URL which has the username
> embedded in it.  However, if the username itself is an email address
> it does not seem that this approach works:
>
> https://myapp/frontend_dev.php/registration/test%40example.com/xsdfsd...
>
> I get the following error:
>
> Empty module and/or action after parsing the URL
>
> Has anyone encountered this and is there a remedy other than not
> allowing usernames with email addresses in them?
>
> Thanks,
> Steve
--~--~-~--~~~---~--~~
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: Email address in URL leads to problem

2009-10-19 Thread Sid Bachtiar

http://bluehorn.co.nz/2008/12/04/how-to-handle-dot-in-symfony-url/

On Tue, Oct 20, 2009 at 1:47 PM, Steve Sanyal  wrote:
>
> Just a clarification.  This is a routing issue.  It does not seem like
> symfony can parse the URL properly because it includes an email
> address as one of the parameters.
>
> Regards,
> Steve
>
> On Oct 19, 8:30 pm, Steve Sanyal  wrote:
>> Hi,
>>
>> In my registration module, I have a URL which has the username
>> embedded in it.  However, if the username itself is an email address
>> it does not seem that this approach works:
>>
>> https://myapp/frontend_dev.php/registration/test%40example.com/xsdfsd...
>>
>> I get the following error:
>>
>> Empty module and/or action after parsing the URL
>>
>> Has anyone encountered this and is there a remedy other than not
>> allowing usernames with email addresses in them?
>>
>> Thanks,
>> Steve
> >
>



-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

--~--~-~--~~~---~--~~
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: Optimizing Lots of Routes

2009-10-19 Thread Eno

On Mon, 19 Oct 2009, Jacob Coby wrote:

> It is a bad design, no doubt about it.  I had no part of the design or  
> implementation, nor do I know the history of why it was been  
> implemented this way.  I've only been tasked with deploying it and  
> making sure it can stand up to the projected load.  I'm quite familiar  
> with how symfony routing works.  I've been using symfony  
> professionally since 0.63.
> 
> I'm trying to find any solution other than going through and redoing  
> all of the url_for and link_to calls to support slugs.

How about rewriting the link_to() and url_for() helpers to extract the ID, 
get the slug and rewrite the URL the right way?

(Though I think fixing the templates would be quicker).



-- 




--~--~-~--~~~---~--~~
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: Error creating database on ALTER TABLE..

2009-10-19 Thread Hong Kil Dong

The problem might be in autogenerated "id" field on "Category" - if
Doctrine generates its type different from "idCategory" field that
you've set explicitly. (integer might be mapped to TINYINT, SMALLINT,
MEDIUMINT, ... )
Try to set both explicitly the same type ( for instance integer(4) )

On Oct 17, 6:36 pm, cosmy  wrote:
> Hi all.
> I'm receving this error while i do doctrine:build-all or insert-sql:
> SQLSTATE[HY000]: General error: 1005 Can't create table
> 'ssm.#sql-9cc_12' (errno: 150). Failing Query: ALTER TABLE skill ADD
> CONSTRAINT skill_idcategory_category_id FOREIGN KEY (idcategory)
> REFERENCES category(id) ON DELETE SET NULL
>
> However it creates the tables (the first part of the generated SQL)
> and gets this error without going forward.
> Do you have an idea about this problem?
> Should this error be connected to another error i receive if i try to
> make a leftJoin between Interview and Category in my model?
>
> Thank you in advance
>
> P.S.: This is my schema:
> #schema modello
>
> Category:
>   actAs: { Timestampable: ~ }
>   columns:
>     name: { type: string(255), notnull: true, unique: true }
>
> Skill:
>   actAs: { Timestampable: ~ }
>   columns:
>     idCategory:    { type: integer, notnull: true }
>     tipo:          { type: string(255) }
>     question:      { type: string(255), notnull: true }
>     name:          { type: string(255) }
>   relations:
>     Category: { onDelete: SET NULL, local: idCategory, foreign: id,
> foreignAlias: Skills }
>
> Attitude:
>   actAs: { Timestampable: ~ }
>   columns:
>     tipo:          { type: string(255) }
>     question:      { type: string(255), notnull: true }
>     name:          { type: string(255) }
>
> PersonalInformation:
>   actAs: { Timestampable: ~ }
>   columns:
>     tipo:          { type: string(255) }
>     question:      { type: string(255), notnull: true }
>     name:          { type: string(255) }
>
> Answer:
>   actAs: { Timestampable: ~ }
>   columns:
>     idSkill:     { type: integer }
>     idAttitude:  { type: integer }
>     idPersonal:  { type: integer }
>     idInterview: { type: integer, notnull: true }
>     val:         { type: string(255) }
>   relations:
>     Skill:               { onDelete: SET NULL, local: idSkill,
> foreign: id }
>     PersonalInformation: { onDelete: SET NULL, local: idPersonal,
> foreign: id }
>     Attitude:            { onDelete: SET NULL, local: idAttitude,
> foreign: id }
>     Interview:           { onDelete: SET NULL, local: idInterview,
> foreign: id }
>
> Interview:
>   actAs: { Timestampable: ~ }
>   columns:
>     idCategory:   { type: integer, notnull: true }
>     author:       { type: string(255), notnull: true }
>     customer:     { type: string(255), notnull: true }
>     agency:       { type: string(255) }
>     candidate:    { type: string(255), notnull: true }
>   relations:
>     Category:     { onDelete: SET NULL, local: idCategory, foreign:
> id, foreignAlias: Interviews }
--~--~-~--~~~---~--~~
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: Optimizing Lots of Routes

2009-10-19 Thread Alexandru-Emil Lupu
"How about rewriting the link_to() and url_for() helpers to extract the ID,"
Bad ideea, 2 reasons.
1) you have to remove the url helper  from your symfony lib. (if you have
frozen the project ignor this step and check the 2nd step)
2) you would still have problems with this issue. I remember you that the
link_to and url_for is using the allready generated routes.

Alecs

On Tue, Oct 20, 2009 at 5:41 AM, Eno  wrote:

>
> On Mon, 19 Oct 2009, Jacob Coby wrote:
>
> > It is a bad design, no doubt about it.  I had no part of the design or
> > implementation, nor do I know the history of why it was been
> > implemented this way.  I've only been tasked with deploying it and
> > making sure it can stand up to the projected load.  I'm quite familiar
> > with how symfony routing works.  I've been using symfony
> > professionally since 0.63.
> >
> > I'm trying to find any solution other than going through and redoing
> > all of the url_for and link_to calls to support slugs.
>
> How about rewriting the link_to() and url_for() helpers to extract the ID,
> get the slug and rewrite the URL the right way?
>
> (Though I think fixing the templates would be quicker).
>
>
>
> --
>
>
>
>
> >
>


-- 
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)0748.543.798

--~--~-~--~~~---~--~~
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: Optimizing Lots of Routes

2009-10-19 Thread Frank Stelzer

Hi,
In my pretty easy CMS application i have written a own configuration  
handler, which is called very early during a request.
This request fetches all cms pages from the database and adds all  
according routes to the routing.
In this way you could use the link_to and url_for helpers as you are  
used to.
3000 routes, that hurts :) for this reason i split another application  
into smaller applications and share other code in there.

Frank


Am 19.10.2009 um 22:38 schrieb Jacob Coby:

>
> Hi all,
>
> I've been working on a symfony 1.2 app that includes a CMS.
> Unfortunately, the CMS system generates approximately 3000 routes
> programmatically across 4 different module/actions.   Unfortunately
> there is no sort of pattern to the routes and the cms uses the routing
> system to generate the final url.  For example, cms/index?id=23 would
> get translated to /about_us.  And cms/subpage?id=56 would get
> translated to /another_page.
>
> This generates a 6.5mb routing cache which expands to well over 64mb
> once running in PHP (I had to set the memory limit to 128mb just to
> get it running).  With a small EC2 instance (256mb), the site
> immediately starts to eat up the 200mb free and marches towards the
> swap of death.
>
> I tried writing a custom routing object that would query the database
> to do the routing, but it doesn't solve the problem of needing to
> generate the urls from page IDs.
>
> Does anyone have suggestions on how to get this routing system under
> control?
>
> Thanks,
> --
> Jacob Coby
>
>
>
>
>
>
>
> >


--~--~-~--~~~---~--~~
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: Optimizing Lots of Routes

2009-10-19 Thread Alexandre SALOME
Check if your symfony is up to date. Some improvements were made in routing
system.

Read carefully the reference guide about routing :
http://www.symfony-project.org/reference/1_2/en/05-Factories#chapter_05_routing

Identify what could be done to optimize the loading/caching of your routes.
(I don't have your factories.yml file in head).

Maybe rewriting the sfPatternRouting could be a solution.

Sure, this is an expert problem !

Alexandre

2009/10/20 Frank Stelzer 

>
> Hi,
> In my pretty easy CMS application i have written a own configuration
> handler, which is called very early during a request.
> This request fetches all cms pages from the database and adds all
> according routes to the routing.
> In this way you could use the link_to and url_for helpers as you are
> used to.
> 3000 routes, that hurts :) for this reason i split another application
> into smaller applications and share other code in there.
>
> Frank
>
>
> Am 19.10.2009 um 22:38 schrieb Jacob Coby:
>
> >
> > Hi all,
> >
> > I've been working on a symfony 1.2 app that includes a CMS.
> > Unfortunately, the CMS system generates approximately 3000 routes
> > programmatically across 4 different module/actions.   Unfortunately
> > there is no sort of pattern to the routes and the cms uses the routing
> > system to generate the final url.  For example, cms/index?id=23 would
> > get translated to /about_us.  And cms/subpage?id=56 would get
> > translated to /another_page.
> >
> > This generates a 6.5mb routing cache which expands to well over 64mb
> > once running in PHP (I had to set the memory limit to 128mb just to
> > get it running).  With a small EC2 instance (256mb), the site
> > immediately starts to eat up the 200mb free and marches towards the
> > swap of death.
> >
> > I tried writing a custom routing object that would query the database
> > to do the routing, but it doesn't solve the problem of needing to
> > generate the urls from page IDs.
> >
> > Does anyone have suggestions on how to get this routing system under
> > control?
> >
> > Thanks,
> > --
> > Jacob Coby
> >
> >
> >
> >
> >
> >
> >
> > >
>
>
> >
>


-- 
Alexandre Salomé -- alexandre.sal...@gmail.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: Email address in URL leads to problem

2009-10-19 Thread Alexandre SALOME
This discussion is similar to this one :
http://groups.google.com/group/symfony-users/browse_thread/thread/a001363810c7a5d5/efd5f207f46253ad?hl=en&lnk=gst&q=email+route#efd5f207f46253ad

Please continue the discussion in the foreign, to find a solution faster.

Thanks,

Alexandre

2009/10/20 Sid Bachtiar 

>
> http://bluehorn.co.nz/2008/12/04/how-to-handle-dot-in-symfony-url/
>
> On Tue, Oct 20, 2009 at 1:47 PM, Steve Sanyal 
> wrote:
> >
> > Just a clarification.  This is a routing issue.  It does not seem like
> > symfony can parse the URL properly because it includes an email
> > address as one of the parameters.
> >
> > Regards,
> > Steve
> >
> > On Oct 19, 8:30 pm, Steve Sanyal  wrote:
> >> Hi,
> >>
> >> In my registration module, I have a URL which has the username
> >> embedded in it.  However, if the username itself is an email address
> >> it does not seem that this approach works:
> >>
> >> https://myapp/frontend_dev.php/registration/test%40example.com/xsdfsd.
> ..
> >>
> >> I get the following error:
> >>
> >> Empty module and/or action after parsing the URL
> >>
> >> Has anyone encountered this and is there a remedy other than not
> >> allowing usernames with email addresses in them?
> >>
> >> Thanks,
> >> Steve
> > >
> >
>
>
>
> --
> Blue Horn Ltd - System Development
> http://bluehorn.co.nz
>
> >
>


-- 
Alexandre Salomé -- alexandre.sal...@gmail.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
-~--~~~~--~~--~--~---