[symfony-users] sf 1.2.0-DEV routing problem on IIS

2008-10-06 Thread kiszl

Hello all,

I'm developing an application using sf 1.2.0-DEV, running on Apache,
where everything works as expected.

When I ported the application to IIS, I added the "path_info_key:
HTTP_X_REWRITE_URL" to the settings file, as with earlier versions.

Now my routing only works if the url explicitly contains the php
script's name. Eg.
http://my.domain/index.php/whatever => routes to the correct module/
action, but
http://my.domain/whatever  => routes to the homepage action (or the
'/' route ?), no matter of what 'whatever' is

Any help is appreciated in how to solve this, or which sf classes I
should look into.

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



[symfony-users] Problem with $request->isMethod('post')

2008-10-06 Thread Cindy Cullen

I've recently upgraded to symfony 1.4.  I've installed the latest  
sfGuardUserPlugin.

Now, none of my users will authenticate.  Actually, some of them  
authenticate occasionally.  It seems to be sporadic and I'm having a  
hard time figuring it out.

It appears that the $request in BasesfGuardAuthActions.class.php is  
set to GET instead of POST even though I'm using this in my template:


   
 
   

   
   Forgot your  
password?


Users that I know are in the database are not getting authenticated.

Earlier, I was getting past that problem, but the validation was not  
passing even though I know that it should have.

Any help?

Thanks,

Cindy

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



[symfony-users] Re: Comet with symfony anyone?

2008-10-06 Thread Krasimir.Angelov

http://highscalability.com/new-facebook-chat-feature-scales-70-million-users-using-erlang

On Oct 7, 1:05 am, "Sid Bachtiar" <[EMAIL PROTECTED]> wrote:
> Yeah, I suspect they do it through an iframe but haven't look closely.
>
> On Tue, Oct 7, 2008 at 2:25 AM, Ian Christian <[EMAIL PROTECTED]> wrote:
>
> > 2008/10/6 Pablo Godel <[EMAIL PROTECTED]>:
>
> >> Maybe you could try some other web server, like lighttpd (or others).
>
> > That's still one child process per request.  I really think to handle
> > comet properly you need a language that supports threading. but
> > then... facebook do it I guess?  I've not looked at  how their chat
> > thing works.
>
> --
> Visit my website:http://onlinesid.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Problems with propel:build-forms

2008-10-06 Thread Fabien Potencier

Do you use a customized connection, which is not "propel"?

If this is the case, you need to specify it when launching the task:

./symfony propel:build-forms --connection="your_connection_name"

Fabien

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


Matías López wrote:
> Hello everyone,
> 
> I am in the same situation than Andreas, I'm upgrading my Symfony app 
> from 1.0 to 1.1 version. So far is working OK with the compatibility mode.
> 
> The problem is when I try to generate the new form classes with the 
> "symfony propel:build-forms" command. The script is only creating my 
> BaseFormPropel.class.php file, not a single class for the tables.
> 
> I am also using the schema.xml format as Andreas.
> 
> Is there any way to figure out what is "not" happening? I looked in the 
> apache logs and Symfony logs and they have absolute nothing, no error 
> messages.
> 
> This is the output of the command:
> 
> C:\work\php\Cina2>symfony propel:build-forms
>  >> propelgenerating form classes
> 
> Any help would be appreciated,
> 
> Regards,
> 
> Matías López
> 
> On Fri, Jul 4, 2008 at 9:49 AM, Andreas Hucks <[EMAIL PROTECTED] 
> > wrote:
> 
> 
> Hi all,
> 
> I am (for the first time) trying to generate base forms using "symfony
> propel:build-forms" as described in the new forms book.
> 
> However, all that is generated is a single, empty,
> BaseFormPropel.class.php file.
> 
> There a two things that are different in my setup: I use schema.xml, not
> .yml (personal preference) and my entire schema is in a plugin. From
> what I get from the docs, there should be no problems because of that,
> correct? The other propel tasks work as expected.
> 
> I checked the whole project directory if the classes may have been
> created in the plugin dir or elsewhere, but nothing.
> 
> Any ideas?
> 
> Thanks,
> Andreas
> 
> 
> 
> > 


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



[symfony-users] Re: Problems with redirection and sfGuard for Symfony 1.1

2008-10-06 Thread Yuretsz
Do you _REALLY_ think that your error log is readable?

Use http://paste.org/ instead.

Also you should try to login with dev environment
-- 

Regards...

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



[symfony-users] Re: Problems with propel:build-forms

2008-10-06 Thread Matías López
Hello everyone,

I am in the same situation than Andreas, I'm upgrading my Symfony app from
1.0 to 1.1 version. So far is working OK with the compatibility mode.

The problem is when I try to generate the new form classes with the "symfony
propel:build-forms" command. The script is only creating my
BaseFormPropel.class.php file, not a single class for the tables.

I am also using the schema.xml format as Andreas.

Is there any way to figure out what is "not" happening? I looked in the
apache logs and Symfony logs and they have absolute nothing, no error
messages.

This is the output of the command:

C:\work\php\Cina2>symfony propel:build-forms
>> propelgenerating form classes

Any help would be appreciated,

Regards,

Matías López

On Fri, Jul 4, 2008 at 9:49 AM, Andreas Hucks <[EMAIL PROTECTED]> wrote:

>
> Hi all,
>
> I am (for the first time) trying to generate base forms using "symfony
> propel:build-forms" as described in the new forms book.
>
> However, all that is generated is a single, empty,
> BaseFormPropel.class.php file.
>
> There a two things that are different in my setup: I use schema.xml, not
> .yml (personal preference) and my entire schema is in a plugin. From
> what I get from the docs, there should be no problems because of that,
> correct? The other propel tasks work as expected.
>
> I checked the whole project directory if the classes may have been
> created in the plugin dir or elsewhere, but nothing.
>
> Any ideas?
>
> Thanks,
> Andreas
>
> >
>

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



[symfony-users] Re: is this possible with Symfony 1.1 and Doctrine?

2008-10-06 Thread Lee Bolding

Thanks Thomas, that looks promising.

How do I bind sfGuard* to a different database though?

At the moment I've got something like this in my  
frontendConfiguration.class.php - but haven't yet tried it

class ProjectConfiguration extends sfProjectConfiguration
{
   public function setup()
   {
 Doctrine_Manager::connection('mysql://root:[EMAIL PROTECTED]/ 
global', 'global');
 Doctrine_Manager::bindComponent('sfGuardUser', 'global');
   }
}

Hopefully I'll be able to test that out tomorrow. Presumably, if I  
bind only sfGuardUser, the other objects in sfGuardPlugin will remain  
bound to my database containing all the other data? (this is what I  
want to happen).

Cheers

Lee

On 6 Oct 2008, at 16:07, Thomas Rabaix wrote:

>
> Hello,
>
> If you want to had custom fields into the model, you can overwrite the
> setTableDefinition and setUp method on the generated class.
>
> Thomas
>
> On Mon, Oct 6, 2008 at 4:38 PM, Lee Bolding <[EMAIL PROTECTED]> wrote:
>>
>> Hi gang,
>>
>> I've just taken the leap and upgraded to both Symfony 1.1 and  
>> Doctrine
>> for a new project I'm working on.
>>
>> So far, so good - learning curve for Doctrine doesn't seem that  
>> steep,
>> and haven't yet got to the point of having fun with the new forms and
>> validators stuff in Symfony 1.1
>>
>> Anyway, I'm using the sfGuardDoctrinePlugin - but, here's the catch -
>> my users data is stored in a separate database to the rest of the  
>> data
>> for my application, and it's a legacy database that I can't change  
>> the
>> schema on.
>>
>> So, what I really need to do is utilise the component binding
>> functionality of Doctrine, but also use the sfPropelAlternativeSchema
>> plugin to change the schema of the sfGuard plugin - but, it's a  
>> Propel
>> plugin, not a Doctrine one. I think to get around that I'll have to
>> bite the bullet and manually change the schema for the plugin...  
>> but I
>> can't see that I (or anyone else) will ever upgrade this plugin once
>> the application is deployed and working.
>>
>> So, my question is : how do I configure Doctrine component binding  
>> via
>> YAML? or do I need to do this in a config file such as
>> ProjectConfiguration.class.php?
>>
>> Once that's done, how do I make my 'users' component available to use
>> in my YAML for my other models?
>>
>> Thanks in advance
>>
>>
>>
>>>
>>
>
>
>
> -- 
> Thomas Rabaix
> Internet Consultant
>
> >


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



[symfony-users] Re: Encoding error on symfony blog

2008-10-06 Thread Yuretsz
Seems ok to me.

On Mon, Oct 6, 2008 at 7:05 PM, Eno <[EMAIL PROTECTED]> wrote:

>
>
> Im using FF3 and I get this error for
>
> http://www.symfony-project.org/blog/2008/10/05/a-week-of-symfony-92-29-september-5-october-2008
> :
>
> Content Encoding Error
>
> The page you are trying to view cannot be shown because it uses an invalid
> or unsupported form of compression.
>
>* Please contact the website owners to inform them of this problem.
>
> --
>
>
>
> >
>


-- 

Regards...

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



[symfony-users] Re: Problems with redirection and sfGuard for Symfony 1.1

2008-10-06 Thread Yuretsz
Do you have theese settings in routing.yml ?

sf_guard_signin:
  url:   /login
  param: { module: sfGuardAuth, action: signin }

sf_guard_signout:
  url:   /logout
  param: { module: sfGuardAuth, action: signout }

sf_guard_password:
  url:   /request_password
  param: { module: sfGuardAuth, action: password }


On Tue, Oct 7, 2008 at 7:19 AM, alvaro <[EMAIL PROTECTED]> wrote:

>
> Check inside the web folder of your project.
> There should be a frontend_dev.php file
>
> Instead of accessing the website through the normal index.php, try to
> do it with that one.
>
> Cheers,
>
> Alvaro
>
>
> On Oct 7, 2008, at 11:07 AM, Reynier Perez Mira wrote:
>
> >
> > Ok sorry about that bunch of code. Here is the code
> http://paste.org/index.php?id=3975
> >  also what you mean with try to login using DEV environment?
> >
> > Cheers and thanks in advance
> > Ing. Reynier Pérez Mira
> > Grupo de Soporte al Desarrollo - Dirección Técnica IP
> >
> >
> >> Do you _REALLY_ think that your error log is readable?
> >>
> >> Use http://paste.org/ instead.
> >>
> >> Also you should try to login with dev environment
> >> -
> >
> > >
>
>
> >
>


-- 

Regards...

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



[symfony-users] Re: Problems with redirection and sfGuard for Symfony 1.1

2008-10-06 Thread alvaro

Check inside the web folder of your project.
There should be a frontend_dev.php file

Instead of accessing the website through the normal index.php, try to  
do it with that one.

Cheers,

Alvaro


On Oct 7, 2008, at 11:07 AM, Reynier Perez Mira wrote:

>
> Ok sorry about that bunch of code. Here is the code 
> http://paste.org/index.php?id=3975 
>  also what you mean with try to login using DEV environment?
>
> Cheers and thanks in advance
> Ing. Reynier Pérez Mira
> Grupo de Soporte al Desarrollo - Dirección Técnica IP
>
>
>> Do you _REALLY_ think that your error log is readable?
>>
>> Use http://paste.org/ instead.
>>
>> Also you should try to login with dev environment
>> -
>
> >


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



[symfony-users] Re: Problems with redirection and sfGuard for Symfony 1.1

2008-10-06 Thread Reynier Perez Mira

Well I try this URL http://gestion.local/backend_dev.php and when I login 
inside the system I get this message error:

[InvalidArgumentException]
An internal URI must contain a module and an action (module/action) ("" given).

Also you can check the backend_dev.log content here 
http://paste.org/index.php?id=3976 

Why happen this?
Cheers and thanks in advance
Ing. Reynier Pérez Mira
Grupo de Soporte al Desarrollo - Dirección Técnica IP 

> Do you _REALLY_ think that your error log is readable?
> 
> Use http://paste.org/ instead.
> 
> Also you should try to login with dev environment
> --

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



[symfony-users] Re: Problems with redirection and sfGuard for Symfony 1.1

2008-10-06 Thread Reynier Perez Mira

Ok sorry about that bunch of code. Here is the code 
http://paste.org/index.php?id=3975 also what you mean with try to login using 
DEV environment?

Cheers and thanks in advance
Ing. Reynier Pérez Mira
Grupo de Soporte al Desarrollo - Dirección Técnica IP 


> Do you _REALLY_ think that your error log is readable?
> 
> Use http://paste.org/ instead.
> 
> Also you should try to login with dev environment
> -

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



[symfony-users] Problems with redirection and sfGuard for Symfony 1.1

2008-10-06 Thread Reynier Perez Mira

Hi every:
I'm using sfGuard plugin in one of my applications. When I login inside the 
application I get a server 500 response wich is a Internal Server Error. I see 
the Apache logs and I can see this:

[Mon Oct 06 20:17:00 2008] [error] [client 127.0.0.1] Empty module and/or 
action after parsing the URL "/images/platgestion.ico" (/).
[Mon Oct 06 20:17:00 2008] [error] [client 127.0.0.1] PHP Fatal error:  
Uncaught exception 'sfStopException' in 
D:\\Development\\symfony1.1\\lib\\filter\\sfBasicSecurityFilter.class.php:86\nStack
 trace:\n#0 
D:\\Development\\symfony1.1\\lib\\filter\\sfBasicSecurityFilter.class.php(50): 
sfBasicSecurityFilter->forwardToLoginAction()\n#1 
D:\\Development\\WWW\\gestion.local\\cache\\backend\\prod\\config\\config_core_compile.yml.php(1189):
 sfBasicSecurityFilter->execute(Object(sfFilterChain))\n#2 
D:\\Development\\WWW\\gestion.local\\cache\\backend\\prod\\config\\config_core_compile.yml.php(1152):
 sfFilterChain->execute()\n#3 
D:\\Development\\WWW\\gestion.local\\cache\\backend\\prod\\config\\config_core_compile.yml.php(1189):
 sfRenderingFilter->execute(Object(sfFilterChain))\n#4 
D:\\Development\\WWW\\gestion.local\\cache\\backend\\prod\\config\\config_core_compile.yml.php(734):
 sfFilterChain->execute()\n#5 
D:\\Development\\symfony1.1\\lib\\exception\\sfError404Exception.class.php(49): 
sfController->forward('default', 'error404')\n#6 
D:\\Development\\WWW\\gestion.local\\cache\\backend\\prod\\config\\config_core_compile.yml.php(2530):
 sfError404Excep in 
D:\\Development\\symfony1.1\\lib\\filter\\sfBasicSecurityFilter.class.php on 
line 86
[Mon Oct 06 20:17:03 2008] [error] [client 127.0.0.1] Empty module and/or 
action after parsing the URL "/images/platgestion.ico" (/).
[Mon Oct 06 20:17:03 2008] [error] [client 127.0.0.1] PHP Fatal error:  
Uncaught exception 'sfStopException' in 
D:\\Development\\symfony1.1\\lib\\filter\\sfBasicSecurityFilter.class.php:86\nStack
 trace:\n#0 
D:\\Development\\symfony1.1\\lib\\filter\\sfBasicSecurityFilter.class.php(50): 
sfBasicSecurityFilter->forwardToLoginAction()\n#1 
D:\\Development\\WWW\\gestion.local\\cache\\backend\\prod\\config\\config_core_compile.yml.php(1189):
 sfBasicSecurityFilter->execute(Object(sfFilterChain))\n#2 
D:\\Development\\WWW\\gestion.local\\cache\\backend\\prod\\config\\config_core_compile.yml.php(1152):
 sfFilterChain->execute()\n#3 
D:\\Development\\WWW\\gestion.local\\cache\\backend\\prod\\config\\config_core_compile.yml.php(1189):
 sfRenderingFilter->execute(Object(sfFilterChain))\n#4 
D:\\Development\\WWW\\gestion.local\\cache\\backend\\prod\\config\\config_core_compile.yml.php(734):
 sfFilterChain->execute()\n#5 
D:\\Development\\symfony1.1\\lib\\exception\\sfError404Exception.class.php(49): 
sfController->forward('default', 'error404')\n#6 
D:\\Development\\WWW\\gestion.local\\cache\\backend\\prod\\config\\config_core_compile.yml.php(2530):
 sfError404Excep in 
D:\\Development\\symfony1.1\\lib\\filter\\sfBasicSecurityFilter.class.php on 
line 86
[Mon Oct 06 20:17:08 2008] [error] [client 127.0.0.1] An internal URI must 
contain a module and an action (module/action) ("" given)., referer: 
http://gestion.local/
[Mon Oct 06 20:17:08 2008] [error] [client 127.0.0.1] Empty module and/or 
action after parsing the URL "/favicon.ico" (/).
[Mon Oct 06 20:17:11 2008] [error] [client 127.0.0.1] Empty module and/or 
action after parsing the URL "/favicon.ico" (/).

I made some changes in my routing.yml file and now look like this :

homepage:
  url:   /
  param: { module: geslicsoft, action: index }

And my action.class.php is this:

public function executeIndex($request)
{
$user = $this->getUser();
if (!$user->isAuthenticated()) {
return $this->redirect('@sf_guard_signin');
}
$this->culture = $user->getCulture();
return sfView::SUCCESS;
}

Where is the problem?

Cheers and thanks in advance
Ing. Reynier Pérez Mira
Grupo de Soporte al Desarrollo - Dirección Técnica IP 


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



[symfony-users] Re: Comet with symfony anyone?

2008-10-06 Thread Sid Bachtiar

Yeah, I suspect they do it through an iframe but haven't look closely.

On Tue, Oct 7, 2008 at 2:25 AM, Ian Christian <[EMAIL PROTECTED]> wrote:
>
> 2008/10/6 Pablo Godel <[EMAIL PROTECTED]>:
>>
>> Maybe you could try some other web server, like lighttpd (or others).
>>
>
> That's still one child process per request.  I really think to handle
> comet properly you need a language that supports threading. but
> then... facebook do it I guess?  I've not looked at  how their chat
> thing works.
>
> >
>



-- 
Visit my website: http://onlinesid.com

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



[symfony-users] How to read recieving-element content ?

2008-10-06 Thread pierrix

In other term's : I'use somme draggable element which are dropped into
a receiving element.

I want add these dropped element. Could I wait the end of the drop and
update my database when all the element are dropped ? In this case,
this mean that i could read my list of dropped element. But how read
them and how put them each one under the other ?

In other case i would have to create the lines in my database when I
drop each element ?

What is the best way to do ?

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



[symfony-users] Re: sfForms - group validator

2008-10-06 Thread Miloslav Kmeť

I would be glad to hear from symfony developers on this topic. I do not find 
any solution on this problem. 

I konow the global validators, but I do not know how can I get from 
preValidator the validatorScheme.

I would like to write my own global prevalidator GroupValidator, from this 
validator I would like to change 
option in validatorSchema of the form to set the requried option to true/false.

But it looks impossible.


Dňa Po 6. Október 2008 13:09 Drahpal napísal:
> 
> On 6 oct, 11:24, Miloslav Kmeť <[EMAIL PROTECTED]> wrote:
> > I think, that this validators chains validators only for one field (widget).
> 
> Yes, you're right!
> 
> maybe the global validators are more for that (in fact validators
> validate only one value, global validators are more... global)?
> http://www.symfony-project.org/book/forms/1_1/en/02-Form-Validation#Global%20Validators
> 
> maybe maybe hope this can help!
> 
> 
> > 
> 

-- 
Miloslav Kmeť

Banská Bystrica

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



[symfony-users] sfSslRequirement Doesn't Pickup Action Names

2008-10-06 Thread John L. Singleton
Hi All,

I'm having a little trouble with sfSslRequirementPlugin. Basically,  
the plugin works great, but I am running into an issue where, for some  
reason, one of my actions isn't picked up in the security  
configuration. I've looked into the issue a bit and simply seems as if  
my second action isn't getting parsed into the config.

Here's the relevant lines from my security.yml

signup:
require_ssl: true

login:
require_ssl: true

signupInternational:
require_ssl: true

Every other module works perfectly, so it's perplexing why this would  
be happening. Are the names too similar? As a temporary hack, I've  
edited sfSslRequirementActionMixin.class.php to contain the line:

if($actionName==="signupInternational"){
 return true;
}

Just after the other checks. It works fine, but it is obviously  
covering up another problem. You should note that other security  
descriptors, like "is_secure" *do* impact the page in question---just  
not sfSslRequirement.

What gives?

I am currently solving this requirement with Apache Rewrites, but I  
think doing it with this plugin is much more elegant, as it doesn't  
require me to reimplement new rules when it's moved between machines.  
Any insight would be greatly appreciated.

Best,
JLS

John L. Singleton




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



[symfony-users] Re: is this possible with Symfony 1.1 and Doctrine?

2008-10-06 Thread Lee Bolding

Excellent :)

Thanks Jonathan!

On 6 Oct 2008, at 16:58, Jonathan Wage wrote:

> If you simply copy your schema from your plugin to your project  
> schema folder then you can customize the schema.
>
> Then you can just add "connection: conn_name" to the top of the  
> schema file or within the models you wish to bind to a certain  
> connection.
>
> - Jon
>
> On Mon, Oct 6, 2008 at 10:53 AM, Thomas Rabaix <[EMAIL PROTECTED] 
> > wrote:
>
> Hello,
>
> I have not try this with doctrine. Cannot say...
>
> Thomas
>
> On Mon, Oct 6, 2008 at 5:34 PM, Lee Bolding <[EMAIL PROTECTED]> wrote:
> >
> > Thanks Thomas, that looks promising.
> >
> > How do I bind sfGuard* to a different database though?
> >
> > At the moment I've got something like this in my
> > frontendConfiguration.class.php - but haven't yet tried it
> >
> > class ProjectConfiguration extends sfProjectConfiguration
> > {
> >   public function setup()
> >   {
> > Doctrine_Manager::connection('mysql://root:[EMAIL PROTECTED]/
> > global', 'global');
> > Doctrine_Manager::bindComponent('sfGuardUser', 'global');
> >   }
> > }
> >
> > Hopefully I'll be able to test that out tomorrow. Presumably, if I
> > bind only sfGuardUser, the other objects in sfGuardPlugin will  
> remain
> > bound to my database containing all the other data? (this is what I
> > want to happen).
> >
> > Cheers
> >
> > Lee
> >
> > On 6 Oct 2008, at 16:07, Thomas Rabaix wrote:
> >
> >>
> >> Hello,
> >>
> >> If you want to had custom fields into the model, you can  
> overwrite the
> >> setTableDefinition and setUp method on the generated class.
> >>
> >> Thomas
> >>
> >> On Mon, Oct 6, 2008 at 4:38 PM, Lee Bolding <[EMAIL PROTECTED]>  
> wrote:
> >>>
> >>> Hi gang,
> >>>
> >>> I've just taken the leap and upgraded to both Symfony 1.1 and
> >>> Doctrine
> >>> for a new project I'm working on.
> >>>
> >>> So far, so good - learning curve for Doctrine doesn't seem that
> >>> steep,
> >>> and haven't yet got to the point of having fun with the new  
> forms and
> >>> validators stuff in Symfony 1.1
> >>>
> >>> Anyway, I'm using the sfGuardDoctrinePlugin - but, here's the  
> catch -
> >>> my users data is stored in a separate database to the rest of the
> >>> data
> >>> for my application, and it's a legacy database that I can't change
> >>> the
> >>> schema on.
> >>>
> >>> So, what I really need to do is utilise the component binding
> >>> functionality of Doctrine, but also use the  
> sfPropelAlternativeSchema
> >>> plugin to change the schema of the sfGuard plugin - but, it's a
> >>> Propel
> >>> plugin, not a Doctrine one. I think to get around that I'll have  
> to
> >>> bite the bullet and manually change the schema for the plugin...
> >>> but I
> >>> can't see that I (or anyone else) will ever upgrade this plugin  
> once
> >>> the application is deployed and working.
> >>>
> >>> So, my question is : how do I configure Doctrine component binding
> >>> via
> >>> YAML? or do I need to do this in a config file such as
> >>> ProjectConfiguration.class.php?
> >>>
> >>> Once that's done, how do I make my 'users' component available  
> to use
> >>> in my YAML for my other models?
> >>>
> >>> Thanks in advance
> >>>
> >>>
> >>>
> 
> >>>
> >>
> >>
> >>
> >> --
> >> Thomas Rabaix
> >> Internet Consultant
> >>
> >> >
> >
> >
> > >
> >
>
>
>
> --
> Thomas Rabaix
> Internet Consultant
>
>
>
>
>
> -- 
> Jonathan H. Wage
> Open Source Software Developer & Evangelist
> http://www.jwage.com
>
> >


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



[symfony-users] Re: is this possible with Symfony 1.1 and Doctrine?

2008-10-06 Thread Jonathan Wage
If you simply copy your schema from your plugin to your project schema
folder then you can customize the schema.

Then you can just add "connection: conn_name" to the top of the schema file
or within the models you wish to bind to a certain connection.

- Jon

On Mon, Oct 6, 2008 at 10:53 AM, Thomas Rabaix <[EMAIL PROTECTED]>wrote:

>
> Hello,
>
> I have not try this with doctrine. Cannot say...
>
> Thomas
>
> On Mon, Oct 6, 2008 at 5:34 PM, Lee Bolding <[EMAIL PROTECTED]> wrote:
> >
> > Thanks Thomas, that looks promising.
> >
> > How do I bind sfGuard* to a different database though?
> >
> > At the moment I've got something like this in my
> > frontendConfiguration.class.php - but haven't yet tried it
> >
> > class ProjectConfiguration extends sfProjectConfiguration
> > {
> >   public function setup()
> >   {
> > Doctrine_Manager::connection('mysql://root:[EMAIL PROTECTED]/
> > global', 'global');
> > Doctrine_Manager::bindComponent('sfGuardUser', 'global');
> >   }
> > }
> >
> > Hopefully I'll be able to test that out tomorrow. Presumably, if I
> > bind only sfGuardUser, the other objects in sfGuardPlugin will remain
> > bound to my database containing all the other data? (this is what I
> > want to happen).
> >
> > Cheers
> >
> > Lee
> >
> > On 6 Oct 2008, at 16:07, Thomas Rabaix wrote:
> >
> >>
> >> Hello,
> >>
> >> If you want to had custom fields into the model, you can overwrite the
> >> setTableDefinition and setUp method on the generated class.
> >>
> >> Thomas
> >>
> >> On Mon, Oct 6, 2008 at 4:38 PM, Lee Bolding <[EMAIL PROTECTED]> wrote:
> >>>
> >>> Hi gang,
> >>>
> >>> I've just taken the leap and upgraded to both Symfony 1.1 and
> >>> Doctrine
> >>> for a new project I'm working on.
> >>>
> >>> So far, so good - learning curve for Doctrine doesn't seem that
> >>> steep,
> >>> and haven't yet got to the point of having fun with the new forms and
> >>> validators stuff in Symfony 1.1
> >>>
> >>> Anyway, I'm using the sfGuardDoctrinePlugin - but, here's the catch -
> >>> my users data is stored in a separate database to the rest of the
> >>> data
> >>> for my application, and it's a legacy database that I can't change
> >>> the
> >>> schema on.
> >>>
> >>> So, what I really need to do is utilise the component binding
> >>> functionality of Doctrine, but also use the sfPropelAlternativeSchema
> >>> plugin to change the schema of the sfGuard plugin - but, it's a
> >>> Propel
> >>> plugin, not a Doctrine one. I think to get around that I'll have to
> >>> bite the bullet and manually change the schema for the plugin...
> >>> but I
> >>> can't see that I (or anyone else) will ever upgrade this plugin once
> >>> the application is deployed and working.
> >>>
> >>> So, my question is : how do I configure Doctrine component binding
> >>> via
> >>> YAML? or do I need to do this in a config file such as
> >>> ProjectConfiguration.class.php?
> >>>
> >>> Once that's done, how do I make my 'users' component available to use
> >>> in my YAML for my other models?
> >>>
> >>> Thanks in advance
> >>>
> >>>
> >>>
> 
> >>>
> >>
> >>
> >>
> >> --
> >> Thomas Rabaix
> >> Internet Consultant
> >>
> >> >
> >
> >
> > >
> >
>
>
>
> --
> Thomas Rabaix
> Internet Consultant
>
> >
>


-- 
Jonathan H. Wage
Open Source Software Developer & Evangelist
http://www.jwage.com

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



[symfony-users] Re: is this possible with Symfony 1.1 and Doctrine?

2008-10-06 Thread Thomas Rabaix

Hello,

I have not try this with doctrine. Cannot say...

Thomas

On Mon, Oct 6, 2008 at 5:34 PM, Lee Bolding <[EMAIL PROTECTED]> wrote:
>
> Thanks Thomas, that looks promising.
>
> How do I bind sfGuard* to a different database though?
>
> At the moment I've got something like this in my
> frontendConfiguration.class.php - but haven't yet tried it
>
> class ProjectConfiguration extends sfProjectConfiguration
> {
>   public function setup()
>   {
> Doctrine_Manager::connection('mysql://root:[EMAIL PROTECTED]/
> global', 'global');
> Doctrine_Manager::bindComponent('sfGuardUser', 'global');
>   }
> }
>
> Hopefully I'll be able to test that out tomorrow. Presumably, if I
> bind only sfGuardUser, the other objects in sfGuardPlugin will remain
> bound to my database containing all the other data? (this is what I
> want to happen).
>
> Cheers
>
> Lee
>
> On 6 Oct 2008, at 16:07, Thomas Rabaix wrote:
>
>>
>> Hello,
>>
>> If you want to had custom fields into the model, you can overwrite the
>> setTableDefinition and setUp method on the generated class.
>>
>> Thomas
>>
>> On Mon, Oct 6, 2008 at 4:38 PM, Lee Bolding <[EMAIL PROTECTED]> wrote:
>>>
>>> Hi gang,
>>>
>>> I've just taken the leap and upgraded to both Symfony 1.1 and
>>> Doctrine
>>> for a new project I'm working on.
>>>
>>> So far, so good - learning curve for Doctrine doesn't seem that
>>> steep,
>>> and haven't yet got to the point of having fun with the new forms and
>>> validators stuff in Symfony 1.1
>>>
>>> Anyway, I'm using the sfGuardDoctrinePlugin - but, here's the catch -
>>> my users data is stored in a separate database to the rest of the
>>> data
>>> for my application, and it's a legacy database that I can't change
>>> the
>>> schema on.
>>>
>>> So, what I really need to do is utilise the component binding
>>> functionality of Doctrine, but also use the sfPropelAlternativeSchema
>>> plugin to change the schema of the sfGuard plugin - but, it's a
>>> Propel
>>> plugin, not a Doctrine one. I think to get around that I'll have to
>>> bite the bullet and manually change the schema for the plugin...
>>> but I
>>> can't see that I (or anyone else) will ever upgrade this plugin once
>>> the application is deployed and working.
>>>
>>> So, my question is : how do I configure Doctrine component binding
>>> via
>>> YAML? or do I need to do this in a config file such as
>>> ProjectConfiguration.class.php?
>>>
>>> Once that's done, how do I make my 'users' component available to use
>>> in my YAML for my other models?
>>>
>>> Thanks in advance
>>>
>>>
>>>

>>>
>>
>>
>>
>> --
>> Thomas Rabaix
>> Internet Consultant
>>
>> >
>
>
> >
>



-- 
Thomas Rabaix
Internet Consultant

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



[symfony-users] Re: sfModerationPlugin - critical bug in last commit !

2008-10-06 Thread blacksun

Hi Fabrice,
I'm unconfortable with myself too.
I apologize for the inconvenience.

The bug should be fixed now.

Gabriele Santini

On Oct 6, 4:09 pm, Fabrice B <[EMAIL PROTECTED]> wrote:
> If you are using sfModerationPlugin as an external, you may have
> noticed a critical bug since the last commit by blacksun on Thursday.
>
> The introduction of the following new function produces a completely
> silent error :
> public static function getWatchedColumns(string $class)
>
> It uses type hinting with the string type, which is not supported by
> PHP
> "Traditional type hinting with int and string isn't supported. "
> source:http://fr2.php.net/manual/en/language.oop5.typehinting.php
>
> I encourage you not to update to the last version or change the guilty
> line in file lib/sfPropelModerationBehavior.class.php, line 438 to :
> public static function getWatchedColumns($class)
> which seemed to solve our problem for the moment. However I am not
> comfortable with the fact that blacksun's new commit uses unsupported
> features.
>
> This brings me to a new topic : how do you handle external plugins on
> your projects ? Clearly, this experience proves me that externals are
> too dangerous. But how do you keep track of security updates if you
> don't use externals ?
>
> Fabrice Bernhard
> --http://www.allomatch.com

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



[symfony-users] Re: is this possible with Symfony 1.1 and Doctrine?

2008-10-06 Thread Thomas Rabaix

Hello,

If you want to had custom fields into the model, you can overwrite the
setTableDefinition and setUp method on the generated class.

Thomas

On Mon, Oct 6, 2008 at 4:38 PM, Lee Bolding <[EMAIL PROTECTED]> wrote:
>
> Hi gang,
>
> I've just taken the leap and upgraded to both Symfony 1.1 and Doctrine
> for a new project I'm working on.
>
> So far, so good - learning curve for Doctrine doesn't seem that steep,
> and haven't yet got to the point of having fun with the new forms and
> validators stuff in Symfony 1.1
>
> Anyway, I'm using the sfGuardDoctrinePlugin - but, here's the catch -
> my users data is stored in a separate database to the rest of the data
> for my application, and it's a legacy database that I can't change the
> schema on.
>
> So, what I really need to do is utilise the component binding
> functionality of Doctrine, but also use the sfPropelAlternativeSchema
> plugin to change the schema of the sfGuard plugin - but, it's a Propel
> plugin, not a Doctrine one. I think to get around that I'll have to
> bite the bullet and manually change the schema for the plugin... but I
> can't see that I (or anyone else) will ever upgrade this plugin once
> the application is deployed and working.
>
> So, my question is : how do I configure Doctrine component binding via
> YAML? or do I need to do this in a config file such as
> ProjectConfiguration.class.php?
>
> Once that's done, how do I make my 'users' component available to use
> in my YAML for my other models?
>
> Thanks in advance
>
>
>
> >
>



-- 
Thomas Rabaix
Internet Consultant

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



[symfony-users] Encoding error on symfony blog

2008-10-06 Thread Eno


Im using FF3 and I get this error for 
http://www.symfony-project.org/blog/2008/10/05/a-week-of-symfony-92-29-september-5-october-2008:

Content Encoding Error

The page you are trying to view cannot be shown because it uses an invalid 
or unsupported form of compression.

* Please contact the website owners to inform them of this problem.

-- 



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



[symfony-users] Re: Render only a component(header/footer)

2008-10-06 Thread Eno

On Mon, 6 Oct 2008, gimler wrote:

> i want to render a header and footer file for other applications on a
> subdomain.
> the header has a user specified content block and i must have absolute
> links (main app not on a subdomain)
> 
> i want simple include the header and footer in my other applications
> 
> so how can i render the header and footer files?

AFAIK, you can only share components if they are in a plugin.


-- 



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



[symfony-users] Re: sfModerationPlugin - critical bug in last commit !

2008-10-06 Thread Francois Zaninotto
Hi Fabrice,

If the plugin doesn't support tags, I advise you to use an externals
reference with a release number:

> svn propedit svn:externals plugins/

sfModerationPlugin -r6228
http://svn.symfony-project.com/plugins/sfModerationPlugin

As a side note, blacksun has been advised of the bug and will soon fix it.

Cheers,

François

2008/10/6 Fabrice B <[EMAIL PROTECTED]>

>
> If you are using sfModerationPlugin as an external, you may have
> noticed a critical bug since the last commit by blacksun on Thursday.
>
> The introduction of the following new function produces a completely
> silent error :
> public static function getWatchedColumns(string $class)
>
> It uses type hinting with the string type, which is not supported by
> PHP
> "Traditional type hinting with int and string isn't supported. "
> source: http://fr2.php.net/manual/en/language.oop5.typehinting.php
>
> I encourage you not to update to the last version or change the guilty
> line in file lib/sfPropelModerationBehavior.class.php, line 438 to :
> public static function getWatchedColumns($class)
> which seemed to solve our problem for the moment. However I am not
> comfortable with the fact that blacksun's new commit uses unsupported
> features.
>
> This brings me to a new topic : how do you handle external plugins on
> your projects ? Clearly, this experience proves me that externals are
> too dangerous. But how do you keep track of security updates if you
> don't use externals ?
>
> Fabrice Bernhard
> --
> http://www.allomatch.com
> >
>

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



[symfony-users] is this possible with Symfony 1.1 and Doctrine?

2008-10-06 Thread Lee Bolding

Hi gang,

I've just taken the leap and upgraded to both Symfony 1.1 and Doctrine  
for a new project I'm working on.

So far, so good - learning curve for Doctrine doesn't seem that steep,  
and haven't yet got to the point of having fun with the new forms and  
validators stuff in Symfony 1.1

Anyway, I'm using the sfGuardDoctrinePlugin - but, here's the catch -  
my users data is stored in a separate database to the rest of the data  
for my application, and it's a legacy database that I can't change the  
schema on.

So, what I really need to do is utilise the component binding  
functionality of Doctrine, but also use the sfPropelAlternativeSchema  
plugin to change the schema of the sfGuard plugin - but, it's a Propel  
plugin, not a Doctrine one. I think to get around that I'll have to  
bite the bullet and manually change the schema for the plugin... but I  
can't see that I (or anyone else) will ever upgrade this plugin once  
the application is deployed and working.

So, my question is : how do I configure Doctrine component binding via  
YAML? or do I need to do this in a config file such as  
ProjectConfiguration.class.php?

Once that's done, how do I make my 'users' component available to use  
in my YAML for my other models?

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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re : [symfony-users] sfModerationPlugin - critical bug in last commit !

2008-10-06 Thread Loïc Vernet
Hi Fabrice,

You are true, i have always thought that externals are indeed a little bit 
dangerous.
Perhaps we should also TAG plugins in order to have stable releases as svn 
external.

Loïc.


- Message d'origine 
De : Fabrice B <[EMAIL PROTECTED]>
À : symfony users 
Envoyé le : Lundi, 6 Octobre 2008, 16h09mn 55s
Objet : [symfony-users] sfModerationPlugin - critical bug in last commit !


If you are using sfModerationPlugin as an external, you may have
noticed a critical bug since the last commit by blacksun on Thursday.

The introduction of the following new function produces a completely
silent error :
public static function getWatchedColumns(string $class)

It uses type hinting with the string type, which is not supported by
PHP
"Traditional type hinting with int and string isn't supported. "
source: http://fr2.php.net/manual/en/language.oop5.typehinting.php

I encourage you not to update to the last version or change the guilty
line in file lib/sfPropelModerationBehavior.class.php, line 438 to :
public static function getWatchedColumns($class)
which seemed to solve our problem for the moment. However I am not
comfortable with the fact that blacksun's new commit uses unsupported
features.

This brings me to a new topic : how do you handle external plugins on
your projects ? Clearly, this experience proves me that externals are
too dangerous. But how do you keep track of security updates if you
don't use externals ?

Fabrice Bernhard
--
http://www.allomatch.com


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



[symfony-users] sfModerationPlugin - critical bug in last commit !

2008-10-06 Thread Fabrice B

If you are using sfModerationPlugin as an external, you may have
noticed a critical bug since the last commit by blacksun on Thursday.

The introduction of the following new function produces a completely
silent error :
public static function getWatchedColumns(string $class)

It uses type hinting with the string type, which is not supported by
PHP
"Traditional type hinting with int and string isn't supported. "
source: http://fr2.php.net/manual/en/language.oop5.typehinting.php

I encourage you not to update to the last version or change the guilty
line in file lib/sfPropelModerationBehavior.class.php, line 438 to :
public static function getWatchedColumns($class)
which seemed to solve our problem for the moment. However I am not
comfortable with the fact that blacksun's new commit uses unsupported
features.

This brings me to a new topic : how do you handle external plugins on
your projects ? Clearly, this experience proves me that externals are
too dangerous. But how do you keep track of security updates if you
don't use externals ?

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



[symfony-users] Re : [symfony-users] Re: file name changed after upload

2008-10-06 Thread Loïc Vernet
Humm i didn't know (remember) that, thanks. It's great for a basic file naming, 
but for an advanced one i think the save will have to be overridden.


- Message d'origine 
De : julien meyer <[EMAIL PROTECTED]>
À : symfony-users@googlegroups.com
Envoyé le : Dimanche, 5 Octobre 2008, 16h42mn 31s
Objet : [symfony-users] Re: file name changed after upload


Hello Julien,
The file name is changed since he's encoded via sha1() function 
(http://fr2.php.net/manual/en/function.sha1.php) by default.

I think it's not recommended to keep the original file name (name conflict, 
security...), but you can customise the filename via the generator.yml :

generator:
  class:sfPropelAdminGenerator
  param:
model_class:  Example
theme:default

edit:
  fields:
pdf:
  type:  admin_input_file_tag
  upload_dir:   pdf_files
  filename:  pdf_%%id%%
  params:include_link=user_pics include_remove=true


For the third record of your database, the filename will be "pdf_3.pdf".

Take a look here :
http://www.symfony-project.org/forum/index.php/m/54777








2008/10/5 julien <[EMAIL PROTECTED]>


Hi,
I have generated an admin backend.
Some fields are type of "admin_input_file_tag".
It works fine. Except that the file name is changed.
For instance, uploading "fake_article.pdf" becomes
"1e0d5f6621b2a5a05dffdbfcd787ed31.pdf"

Is it possible to keep the original file name?

Thanks,

Julien





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



[symfony-users] Re: Comet with symfony anyone?

2008-10-06 Thread Ian Christian

2008/10/6 Pablo Godel <[EMAIL PROTECTED]>:
>
> Maybe you could try some other web server, like lighttpd (or others).
>

That's still one child process per request.  I really think to handle
comet properly you need a language that supports threading. but
then... facebook do it I guess?  I've not looked at  how their chat
thing works.

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



[symfony-users] Render only a component(header/footer)

2008-10-06 Thread gimler

Hello,

i want to render a header and footer file for other applications on a
subdomain.
the header has a user specified content block and i must have absolute
links (main app not on a subdomain)

i want simple include the header and footer in my other applications

so how can i render the header and footer files?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfForms - group validator

2008-10-06 Thread Thomas Rabaix
Hello,

Have you try to overwrite the bind method ?

The idea is to remove/add validator depends on the values provided by
the request.

Thomas

2008/10/6 Miloslav Kmeť <[EMAIL PROTECTED]>:
>
> I would be glad to hear from symfony developers on this topic. I do not find 
> any solution on this problem.
>
> I konow the global validators, but I do not know how can I get from 
> preValidator the validatorScheme.
>
> I would like to write my own global prevalidator GroupValidator, from this 
> validator I would like to change
> option in validatorSchema of the form to set the requried option to 
> true/false.
>
> But it looks impossible.
>
>
> Dňa Po 6. Október 2008 13:09 Drahpal napísal:
>>
>> On 6 oct, 11:24, Miloslav Kmeť <[EMAIL PROTECTED]> wrote:
>> > I think, that this validators chains validators only for one field 
>> > (widget).
>>
>> Yes, you're right!
>>
>> maybe the global validators are more for that (in fact validators
>> validate only one value, global validators are more... global)?
>> http://www.symfony-project.org/book/forms/1_1/en/02-Form-Validation#Global%20Validators
>>
>> maybe maybe hope this can help!
>>
>>
>> >
>>
>
> --
> Miloslav Kmeť
>
> Banská Bystrica
>
> >
>



-- 
Thomas Rabaix
Internet Consultant

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



[symfony-users] Re: Comet with symfony anyone?

2008-10-06 Thread Pablo Godel

Maybe you could try some other web server, like lighttpd (or others).

Pablo

On Mon, Oct 6, 2008 at 5:46 AM, Ian Christian <[EMAIL PROTECTED]> wrote:
>
> 2008/10/6 Sid Bachtiar <[EMAIL PROTECTED]>:
>>
>> Has anyone tried this?
>>
>> http://en.wikipedia.org/wiki/Comet_(programming)
>>
>> I'm implementing browser based chat with symfony and wonders if comet
>> would be better than ajax for it.
>
> You can do it - I've done it in java and used ActiveMQ to push
> messages out.  However... I really don't tihnk PHP is the right
> technology to use to do this kind of thing.  In Java, it's just
> another thread, in PHP, it's a whole new process that's sitting around
> waiting for data.  IIRC, Apache has a max clients limit of 256 of 512
> that's compiled in, and requires source modification to change.  I
> would personally consider using something else to service Comet
> requests.
>
> >
>

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



[symfony-users] Re: How to install the Form Framework (plugin?) for symfony 1.0.x

2008-10-06 Thread [EMAIL PROTECTED]

As no-one answered, i think i found somethings,
now the symforc website is not down anymore,
one can check
http://symforc.com/post/2008/01/07/sfForms11Plugin:-use-symfony-11-form/validation-framework-in-symfony-10-or-non-symfony-project
out for more informations.
One other tool that one can check out is the sfFormBuilderPlugin,
which seems to be interesting but was obviously developped before the
form framework.
++

On 2 oct, 22:15, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hi everyone,
> I read for a few days that hartym developped a backport for symfony
> 1.0 of the form framework used in symfony 1.1 and 1.2. Unfortunately i
> can only get more information on symforc.org which is down for a few
> days now.
> Therefore i'm asking for information, because i can't find it on the
> plugin list of the symfony-project website.
> Thanks everyone for helping me out,
>
> Olivier.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfForms - group validator

2008-10-06 Thread Drahpal

On 6 oct, 11:24, Miloslav Kmeť <[EMAIL PROTECTED]> wrote:
> I think, that this validators chains validators only for one field (widget).

Yes, you're right!

maybe the global validators are more for that (in fact validators
validate only one value, global validators are more... global)?
http://www.symfony-project.org/book/forms/1_1/en/02-Form-Validation#Global%20Validators

maybe maybe hope this can help!


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



[symfony-users] Re: Comet with symfony anyone?

2008-10-06 Thread Ian Christian

2008/10/6 Sid Bachtiar <[EMAIL PROTECTED]>:
>
> Has anyone tried this?
>
> http://en.wikipedia.org/wiki/Comet_(programming)
>
> I'm implementing browser based chat with symfony and wonders if comet
> would be better than ajax for it.

You can do it - I've done it in java and used ActiveMQ to push
messages out.  However... I really don't tihnk PHP is the right
technology to use to do this kind of thing.  In Java, it's just
another thread, in PHP, it's a whole new process that's sitting around
waiting for data.  IIRC, Apache has a max clients limit of 256 of 512
that's compiled in, and requires source modification to change.  I
would personally consider using something else to service Comet
requests.

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



[symfony-users] Strange rewrite issue

2008-10-06 Thread amit

Hi,

 I am trying to install an application on a new server and url
rewriting is giving me problems.

http://www.server.com/index.php/login/submit - gives 404

#tail /var/log/httpd/error_log
 File does not exist: /var/www/Project/web/index.php/login/submit

http://www.server.com/login/submit works fine.

# apachectl -v
Server version: Apache/2.2.3
Server built:   Jan 11 2008 08:20:08

# php -v
PHP 5.2.6 (cli) (built: Oct  6 2008 13:29:28)

]# uname -ar
Linux 2.6.18-92.1.6.el5 #1 SMP Fri Jun 20 02:36:06 EDT 2008 x86_64
x86_64 x86_64 GNU/Linux

Is this an apache issue? mod_rewrite is loaded. Any pointers?

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



[symfony-users] Re: sfForms - group validator

2008-10-06 Thread Miloslav Kmeť

I think, that this validators chains validators only for one field (widget).


Dňa Po 6. Október 2008 09:09 raphael Davaillaud wrote:
> Maybe you can use the logical validator Or/And?

-- 
Miloslav Kmeť

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



[symfony-users] Comet with symfony anyone?

2008-10-06 Thread Sid Bachtiar

Has anyone tried this?

http://en.wikipedia.org/wiki/Comet_(programming)

I'm implementing browser based chat with symfony and wonders if comet
would be better than ajax for it.

-- 
Visit my website: http://onlinesid.com

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



[symfony-users] Re: sfForms - group validator

2008-10-06 Thread raphael Davaillaud

On 3 oct, 18:27, adrive <[EMAIL PROTECTED]> wrote:
> What is the best way to implement on two forms like this such
> conditional validators:
> If is_review in ArticleForm is set, rating from ArticleReviewForm is
> required.
> If one of opposite_ fields is set, the other ones are required.

Maybe you can use the logical validator Or/And?

http://www.symfony-project.org/book/forms/1_1/en/02-Form-Validation#Logical%20Validators



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