Re : [symfony-users] manual upgrade from 1.1.1 to 1.1.7

2009-02-23 Thread Loïc Vernet
Having symfony as a SVN external (in lib/vendor) is generally the fastest 
option to upgrade, just modify the tag used, update, clear the cache, and you 
are done...

++ COil





De : RaV inad...@gmail.com
À : symfony-users@googlegroups.com
Envoyé le : Lundi, 23 Février 2009, 1h06mn 24s
Objet : [symfony-users] manual upgrade from 1.1.1 to 1.1.7

Hi

I want to upgrade my sandbox from 1.1.1 to 1.1.7. I don't have a pear. Can I 
only replace files in  \lib\symfony dir ? How can I do it properly?

Thank you!

Rafał



  
--~--~-~--~~~---~--~~
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: Session Timeout

2009-02-23 Thread DeepakBhatia

Hi James,

I checked the file tool/prod/config/config_factories.yml.php.

The value is set to 1800 in this file.

Please let me know if I am wrong somewhere.

Regards

Deepak Bhatia

On Feb 23, 12:41 pm, James thenet...@gmail.com wrote:
 did you clear the cache?

 James

 On Feb 23, 2009, at 2:34 AM, DeepakBhatia wrote:





  Hi,

  I have changed the session time out to 32400 in the factories.yml file
  in

  apps/front/config/factories.yml

  But still session timeout is happening after the default 30 Minutes
  (1800 Sec).

  ==
   user:
     class: myUser
     param:
       timeout:          32400
  ==

  Kindly help me in resolving this.

  Thanks

  Deepak Bhatia- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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: Session Timeout

2009-02-23 Thread Lee Bolding

I haven't really looked at this properly, but it sounds like the timeout is 
still set to 30 minutes in your php.ini

AFAIK, Symfony can't override this setting - but if the Symfony setting is 
LOWER than that specified in php.ini, then it will expire the session according 
to the Symfony setting. If the Symfony setting is HIGHER than that specified in 
php.ini, then php.ini wins.

- Original Message -
From: DeepakBhatia toreachdee...@gmail.com
To: symfony users symfony-users@googlegroups.com
Sent: Monday, February 23, 2009 9:21:19 AM GMT +00:00 GMT Britain, Ireland, 
Portugal
Subject: [symfony-users] Re: Session Timeout


Hi James,

I checked the file tool/prod/config/config_factories.yml.php.

The value is set to 1800 in this file.

Please let me know if I am wrong somewhere.

Regards

Deepak Bhatia

On Feb 23, 12:41 pm, James thenet...@gmail.com wrote:
 did you clear the cache?

 James

 On Feb 23, 2009, at 2:34 AM, DeepakBhatia wrote:





  Hi,

  I have changed the session time out to 32400 in the factories.yml file
  in

  apps/front/config/factories.yml

  But still session timeout is happening after the default 30 Minutes
  (1800 Sec).

  ==
   user:
     class: myUser
     param:
       timeout:          32400
  ==

  Kindly help me in resolving this.

  Thanks

  Deepak Bhatia- Hide quoted text -

 - Show quoted text -


--~--~-~--~~~---~--~~
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: extending doctrine schema with SQL views

2009-02-23 Thread Simon Gow

Despite that, if you're running on MYSQL, remember that view support
is really REALLY bad.

If you've got more than one sub-select. or nested joins, mysql won't
use any indexes.

On Feb 23, 4:32 am, Damien Lepage damienlep...@gmail.com wrote:
 Thanks for your suggestion Lawrence. But I don't like it because it requires
 an extra step and breaks the built-in task
 doctrine:build-all-reload-test-all (because I need my views created between
 DB build and tests).

 Thanks to the tutorial published on symfony blog yesterday, I found a way to
 get a more integrated solution, using the Event System.

 In my project configuration I register a new listener on post_command event
 (which is a built-in event of sfTask)
 $this-dispatcher-connect('command.post_command', array('DatabaseInit',
 'createViews'));

 Then I have a hook to create my views exactly where I want:
 class DatabaseInit {
   static public function createViews(sfEvent $event)  {
     if( $event-getSubject() instanceof sfDoctrineInsertSqlTask ) {
       // create views here
     }
   }

 }

 Damien

 2009/2/21 Lawrence Krubner lkrub...@geocities.com



  Damien Lepage wrote:
   Thanks for your help David.
   However, it seems to be different for doctrine. I tried it and it doesn't
   work.

   The help for *propel:insert-sql* says:
   The task connects to the database and executes all SQL statements found
  in
   [config/sql/*schema.sql|COMMENT] files.

   But the help for *doctrine:insert-sql* says:
   The task connects to the database and creates tables for all the
   lib/model/doctrine/*.php files.

   Anybody knows how to execute custom SQL script with Doctrine ?

  Why not just put this in a shell script and call it from the command
  line? That's really all that the above mentioned propel or doctrine
  commands do. It would take you, what, 5 minutes to write your own script?

  --- lawrence

   2009/2/17 David Herrmann d...@okto.tv

   Damien Lepage schrieb:
   I would like to know if there is an easy way to automatically create
   views each time I rebuild my database.
   In other words, is there a place where I can put a custom script which
   will create my views and will be triggered when my database is built
  (by
   doctrine:build-db I think).

   I read about using Views with Doctrine here:

 http://www.doctrine-project.org/documentation/manual/1_0/en/component...
   But I miss information about how to integrate views when using doctrine
   in symfony.
   I can only tell how I did it for Propel but I suppose it will work for
   Doctrine, too: just put the SQL to generate your view into something
   like /data/sql/my_view.sql and it will automatically be included during
   DB build/create execution.
   If there's a folder /data/sql/doctrine (can't find out atm) then that's
   your place of course.

   Just make sure your view code gets executed after all the other SQL
   statements (so all tables exist). Symfony will order the SQL files by
   name, so you can use the file name to change the order.

   Hope that helps

   David
--~--~-~--~~~---~--~~
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: sfDynamicFormsPlugin [was: Symfony/Doctrine/Forms with EAV model?]

2009-02-23 Thread Lee Bolding

Kind of got sidetracked at the weekend, but started on schemas for both Propel 
and Doctrine.

Hope to have those finished tomorrow night, for check in to SVN. Unfortunately, 
at the moment, I can only work on this plugin during my spare time (but that's 
also the reason I can make it a public plugin).

Something else that occurred to me is that a logical extension of this would be 
the ability to dynamically add custom fields into existing models/forms. Not 
sure exactly how difficult that would be, but I think that's the direction I'll 
head in once I've got it working for creating fully dynamic forms from scratch.

- Original Message -
From: Lee Bolding l...@leesbian.net
To: symfony-users@googlegroups.com
Sent: Saturday, February 21, 2009 11:01:18 AM GMT +00:00 GMT Britain, Ireland, 
Portugal
Subject: [symfony-users] sfDynamicFormsPlugin [was: Symfony/Doctrine/Forms with 
EAV model?]

  This whole thing of course screams for being developed as a generic
  dynamic form plugin, even if you don't want to (or can't) make it
  public - when it's a plugin, you can test it and make sure there  
 are no
  dependecies and maximum reusage options in the future.

I'll make it a plugin... I've just created sfDynamicFormsPlugin. I'll  
base it on DbFinder, so it works with both Doctrine and Propel

If anybody that wants to join it, please do - i'd like to see some  
demo's of the different concepts that have been suggested :)

I think this will be one of those plugins that nobody knew they wanted  
until it existed... it opens up a few possibilities, you no longer  
need 1 module per model for CRUD, in some apps, you may not even need  
ANY models anymore...




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-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: sfDynamicFormsPlugin [was: Symfony/Doctrine/Forms with EAV model?]

2009-02-23 Thread David Herrmann

Lee Bolding schrieb:
 Hope to have those finished tomorrow night, for check in to SVN.
 Unfortunately, at the moment, I can only work on this plugin during
 my spare time (but that's also the reason I can make it a public
 plugin).

I'd love to take a look at it, too. Perhaps we can join our (spare time)
efforts for that one.

 Something else that occurred to me is that a logical extension of
 this would be the ability to dynamically add custom fields into
 existing models/forms. Not sure exactly how difficult that would be,
 but I think that's the direction I'll head in once I've got it
 working for creating fully dynamic forms from scratch.

Sounds interesting, although I miss a typical use case at the moment
(perhaps you can give me one). I think I'll have to breed a little over
this...

David

--~--~-~--~~~---~--~~
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: sfDynamicFormsPlugin [was: Symfony/Doctrine/Forms with EAV model?]

2009-02-23 Thread Lee Bolding

Just apply to join the plugin on the plugin page, and I'll accept you. I think 
that then gives you SVN commit access to the repo.

I guess the typical use case for adding custom fields would be where the 
specification or requirements change after the project has been released - more 
attributes for a model are required, but it's not searchable data, so doesn't 
warrant changing the model and an entirely new code release. I've been in that 
situation before - where 1 new field is needed, and we've needed to change the 
schema, rebuild the model etc - not a big hassle, but it needs a whole release 
cycle just for 1 additional piece of information which we just need recorded. 
Also, there could be a case where you have a base object - say vehicle and 
you'd dynamically change it for other psuedo-concrete classes by adding custom 
fields - create mpv by adding attributes for 4wd, locking diff, etc. To be 
honest, I haven't really thought about the use cases - it was just a wouldn't 
it be cool if... idea, based on the fact that I could have used that 
functionality in the past.

Still, as I said - that's something to consider in the future, once the initial 
functionality for fully dynamic forms/models has been created :)

- Original Message -
From: David Herrmann d...@okto.tv
To: symfony-users@googlegroups.com
Sent: Monday, February 23, 2009 10:19:52 AM GMT +00:00 GMT Britain, Ireland, 
Portugal
Subject: [symfony-users] Re: sfDynamicFormsPlugin [was: Symfony/Doctrine/Forms 
with EAV model?]


Lee Bolding schrieb:
 Hope to have those finished tomorrow night, for check in to SVN.
 Unfortunately, at the moment, I can only work on this plugin during
 my spare time (but that's also the reason I can make it a public
 plugin).

I'd love to take a look at it, too. Perhaps we can join our (spare time)
efforts for that one.

 Something else that occurred to me is that a logical extension of
 this would be the ability to dynamically add custom fields into
 existing models/forms. Not sure exactly how difficult that would be,
 but I think that's the direction I'll head in once I've got it
 working for creating fully dynamic forms from scratch.

Sounds interesting, although I miss a typical use case at the moment
(perhaps you can give me one). I think I'll have to breed a little over
this...

David



--~--~-~--~~~---~--~~
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] How to escape global site layout for an action?

2009-02-23 Thread SeeVik

Hello all,

In one of the actions I have defined in controller, I do not want to
use the global template file layout.php. How config should I use in
this situation?

Like I am creating a webapp and I have a link which opens in new
window. In this window, I don't want to display the site header and
footers. But they are included in the layout of the website. How can I
escape them?

Thanks and Regards
Vikram
--~--~-~--~~~---~--~~
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: How to escape global site layout for an action?

2009-02-23 Thread Andy Dziahel'
Hi.

$this-setLayout('layoutName')?


On Mon, Feb 23, 2009 at 12:48, SeeVik vikramvmalhotra1...@gmail.com wrote:


 Hello all,

 In one of the actions I have defined in controller, I do not want to
 use the global template file layout.php. How config should I use in
 this situation?

 Like I am creating a webapp and I have a link which opens in new
 window. In this window, I don't want to display the site header and
 footers. But they are included in the layout of the website. How can I
 escape them?

 Thanks and Regards
 Vikram
 



-- 
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: How to escape global site layout for an action?

2009-02-23 Thread Thomas Dedericks

Hi,

Just set the layout name to false in the action:

$this-setLayout(false);

 

Thomas Dedericks

tho...@tequila-studio.com
GSM: +32 (0) 499 23 60 22
http://tequila-studio.com


Le lundi 23 février 2009 à 02:48 -0800, SeeVik a écrit :
 Hello all,
 
 In one of the actions I have defined in controller, I do not want to
 use the global template file layout.php. How config should I use in
 this situation?
 
 Like I am creating a webapp and I have a link which opens in new
 window. In this window, I don't want to display the site header and
 footers. But they are included in the layout of the website. How can I
 escape them?
 
 Thanks and Regards
 Vikram
  
 


--~--~-~--~~~---~--~~
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: Session Timeout

2009-02-23 Thread shahin

i don`t think so Lee
symfony can change session time at run time by this PHP function
ini_set()
this can has priority over php.ini
--~--~-~--~~~---~--~~
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: Session Timeout

2009-02-23 Thread Lee Bolding

But does Symfony use ini_set() ? you'll have to dig around the session handling 
classes to check.

Obviously, that doesn't work with safe mode either ;)

- Original Message -
From: shahin zabeti.sha...@gmail.com
To: symfony users symfony-users@googlegroups.com
Sent: Monday, February 23, 2009 11:01:35 AM GMT +00:00 GMT Britain, Ireland, 
Portugal
Subject: [symfony-users] Re: Session Timeout


i don`t think so Lee
symfony can change session time at run time by this PHP function
ini_set()
this can has priority over php.ini


--~--~-~--~~~---~--~~
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: How to escape global site layout for an action?

2009-02-23 Thread SeeVik

Hello Thomas,

Setting the layout to false completely ruins the css as well. But it
works for sure.

Thanks
Vikram

On Feb 23, 7:56 pm, Thomas Dedericks tho...@tequila-studio.com
wrote:
 Hi,

 Just set the layout name to false in the action:

         $this-setLayout(false);

 Thomas Dedericks

 tho...@tequila-studio.com
 GSM: +32 (0) 499 23 60 22http://tequila-studio.com

 Le lundi 23 février 2009 à 02:48 -0800, SeeVik a écrit :

  Hello all,

  In one of the actions I have defined in controller, I do not want to
  use the global template file layout.php. How config should I use in
  this situation?

  Like I am creating a webapp and I have a link which opens in new
  window. In this window, I don't want to display the site header and
  footers. But they are included in the layout of the website. How can I
  escape them?

  Thanks and Regards
  Vikram
--~--~-~--~~~---~--~~
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: How to escape global site layout for an action?

2009-02-23 Thread Lee Bolding

Actually, you don't need to do this in code at all.

You can specify the layout to use in the modules view.yml

- Original Message -
From: Thomas Dedericks tho...@tequila-studio.com
To: symfony-users@googlegroups.com
Sent: Monday, February 23, 2009 10:56:51 AM GMT +00:00 GMT Britain, Ireland, 
Portugal
Subject: [symfony-users] Re: How to escape global site layout for an action?


Hi,

Just set the layout name to false in the action:

$this-setLayout(false);

 

Thomas Dedericks

tho...@tequila-studio.com
GSM: +32 (0) 499 23 60 22
http://tequila-studio.com


Le lundi 23 février 2009 à 02:48 -0800, SeeVik a écrit :
 Hello all,
 
 In one of the actions I have defined in controller, I do not want to
 use the global template file layout.php. How config should I use in
 this situation?
 
 Like I am creating a webapp and I have a link which opens in new
 window. In this window, I don't want to display the site header and
 footers. But they are included in the layout of the website. How can I
 escape them?
 
 Thanks and Regards
 Vikram
  
 




--~--~-~--~~~---~--~~
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: How to escape global site layout for an action?

2009-02-23 Thread SeeVik

Hello Andy. Thanks for that handy trick.

I wanted to know whether there is any way we can escape the layout for
a set of actions without everytime writing in the action $this-
setLayout('layoutname');

Thanks and Regards
Vikram

On Feb 23, 7:54 pm, Andy Dziahel' trickster...@gmail.com wrote:
 Hi.

 $this-setLayout('layoutName')?





 On Mon, Feb 23, 2009 at 12:48, SeeVik vikramvmalhotra1...@gmail.com wrote:

  Hello all,

  In one of the actions I have defined in controller, I do not want to
  use the global template file layout.php. How config should I use in
  this situation?

  Like I am creating a webapp and I have a link which opens in new
  window. In this window, I don't want to display the site header and
  footers. But they are included in the layout of the website. How can I
  escape them?

  Thanks and Regards
  Vikram

 --
 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: How to escape global site layout for an action?

2009-02-23 Thread Andy Dziahel'
Hmm. As long as I remember, you may edit modulename/config/view.yml like
this:

firstaction:
   layout:  customLayoutName
 secondaction:
   layout:  customLayoutName


On Mon, Feb 23, 2009 at 13:08, SeeVik vikramvmalhotra1...@gmail.com wrote:


 Hello Andy. Thanks for that handy trick.

 I wanted to know whether there is any way we can escape the layout for
 a set of actions without everytime writing in the action $this-
 setLayout('layoutname');

 Thanks and Regards
 Vikram

 On Feb 23, 7:54 pm, Andy Dziahel' trickster...@gmail.com wrote:
  Hi.
 
  $this-setLayout('layoutName')?
 
 
 
 
 
  On Mon, Feb 23, 2009 at 12:48, SeeVik vikramvmalhotra1...@gmail.com
 wrote:
 
   Hello all,
 
   In one of the actions I have defined in controller, I do not want to
   use the global template file layout.php. How config should I use in
   this situation?
 
   Like I am creating a webapp and I have a link which opens in new
   window. In this window, I don't want to display the site header and
   footers. But they are included in the layout of the website. How can I
   escape them?
 
   Thanks and Regards
   Vikram
 
  --
  With the best regards, Andy.
 



-- 
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: How to escape global site layout for an action?

2009-02-23 Thread Andy Dziahel'
Vikram,

Looks like I was wrong.

firstaction*Success*:
   layout:  customLayoutName
 secondaction*Success*:
   layout:  customLayoutName


Of course, if you want custom layout for firstactionError.php template, you
shoud refer them in view.yml accordingly.

On Mon, Feb 23, 2009 at 13:08, SeeVik vikramvmalhotra1...@gmail.com wrote:


 Hello Andy. Thanks for that handy trick.

 I wanted to know whether there is any way we can escape the layout for
 a set of actions without everytime writing in the action $this-
 setLayout('layoutname');

 Thanks and Regards
 Vikram

 On Feb 23, 7:54 pm, Andy Dziahel' trickster...@gmail.com wrote:
  Hi.
 
  $this-setLayout('layoutName')?
 
 
 
 
 
  On Mon, Feb 23, 2009 at 12:48, SeeVik vikramvmalhotra1...@gmail.com
 wrote:
 
   Hello all,
 
   In one of the actions I have defined in controller, I do not want to
   use the global template file layout.php. How config should I use in
   this situation?
 
   Like I am creating a webapp and I have a link which opens in new
   window. In this window, I don't want to display the site header and
   footers. But they are included in the layout of the website. How can I
   escape them?
 
   Thanks and Regards
   Vikram
 
  --
  With the best regards, Andy.
 



-- 
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: How to escape global site layout for an action?

2009-02-23 Thread SeeVik

Hello Andy.

This doesn't work. It doesn't display the customized layout. I tried
with this view.yml

modules/firstModule/config/view.yml

default:
  showQa:
layout: popupLayout


modules/firstModule/actions.class.php
--
public function executeShowQa()
{
 $this-mesg = This is a new layout;
}

Thanks and regards
Vikram

On Feb 23, 8:16 pm, Andy Dziahel' trickster...@gmail.com wrote:
 Hmm. As long as I remember, you may edit modulename/config/view.yml like
 this:

 firstaction:



    layout:  customLayoutName
  secondaction:
    layout:  customLayoutName

 On Mon, Feb 23, 2009 at 13:08, SeeVik vikramvmalhotra1...@gmail.com wrote:

  Hello Andy. Thanks for that handy trick.

  I wanted to know whether there is any way we can escape the layout for
  a set of actions without everytime writing in the action $this-
  setLayout('layoutname');

  Thanks and Regards
  Vikram

  On Feb 23, 7:54 pm, Andy Dziahel' trickster...@gmail.com wrote:
   Hi.

   $this-setLayout('layoutName')?

   On Mon, Feb 23, 2009 at 12:48, SeeVik vikramvmalhotra1...@gmail.com
  wrote:

Hello all,

In one of the actions I have defined in controller, I do not want to
use the global template file layout.php. How config should I use in
this situation?

Like I am creating a webapp and I have a link which opens in new
window. In this window, I don't want to display the site header and
footers. But they are included in the layout of the website. How can I
escape them?

Thanks and Regards
Vikram

   --
   With the best regards, Andy.

 --
 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: sfDynamicFormsPlugin [was: Symfony/Doctrine/Forms with EAV model?]

2009-02-23 Thread Gandalf

Hello,

Once, long time ago, I made a framework, php4, that included this
feature, I didn't made it with an EAV model, I modified the tables
directly, using alter sql and such. that allowed me to have full
control over the schema without losing data during modifications.

Please try not to hardcode the EAV model in this plugin, try to
include the xml case I sent, not all forms need to go to a table.

Also, the plugins name shouldnt be dynamic form, model will be more appropriate.

Best,

Pablo


On 2/23/09, Lee Bolding l...@leesbian.net wrote:

 Just apply to join the plugin on the plugin page, and I'll accept you. I
 think that then gives you SVN commit access to the repo.

 I guess the typical use case for adding custom fields would be where the
 specification or requirements change after the project has been released -
 more attributes for a model are required, but it's not searchable data, so
 doesn't warrant changing the model and an entirely new code release. I've
 been in that situation before - where 1 new field is needed, and we've
 needed to change the schema, rebuild the model etc - not a big hassle, but
 it needs a whole release cycle just for 1 additional piece of information
 which we just need recorded. Also, there could be a case where you have a
 base object - say vehicle and you'd dynamically change it for other
 psuedo-concrete classes by adding custom fields - create mpv by adding
 attributes for 4wd, locking diff, etc. To be honest, I haven't really
 thought about the use cases - it was just a wouldn't it be cool if...
 idea, based on the fact that I could have used that functionality in the
 past.

 Still, as I said - that's something to consider in the future, once the
 initial functionality for fully dynamic forms/models has been created :)

 - Original Message -
 From: David Herrmann d...@okto.tv
 To: symfony-users@googlegroups.com
 Sent: Monday, February 23, 2009 10:19:52 AM GMT +00:00 GMT Britain, Ireland,
 Portugal
 Subject: [symfony-users] Re: sfDynamicFormsPlugin [was:
 Symfony/Doctrine/Forms with EAV model?]


 Lee Bolding schrieb:
 Hope to have those finished tomorrow night, for check in to SVN.
 Unfortunately, at the moment, I can only work on this plugin during
 my spare time (but that's also the reason I can make it a public
 plugin).

 I'd love to take a look at it, too. Perhaps we can join our (spare time)
 efforts for that one.

 Something else that occurred to me is that a logical extension of
 this would be the ability to dynamically add custom fields into
 existing models/forms. Not sure exactly how difficult that would be,
 but I think that's the direction I'll head in once I've got it
 working for creating fully dynamic forms from scratch.

 Sounds interesting, although I miss a typical use case at the moment
 (perhaps you can give me one). I think I'll have to breed a little over
 this...

 David



 


--~--~-~--~~~---~--~~
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] Prefix /:sf_culture to sfDoctrineRouteCollection

2009-02-23 Thread sikk

routename:
  class:   sfDoctrineRouteCollection
  options: { model: JobeetJob }


Hi,

Does someone have any idea how to make this route having a prefix to
prevent creating the seven restful routes by hand ? I can't find the
right syntax at the moment.

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] Re: sfDynamicFormsPlugin [was: Symfony/Doctrine/Forms with EAV model?]

2009-02-23 Thread Lee Bolding

Nice idea - but I'm talking about millions of rows here. Creating millions of 
XML files, or even 1 file for each form TYPE, with millions of records in it 
just isn't on.

Besides, I think manipulating those XML files, in RAM would kill any server. 
XML manipulation is just too damned heavy on resources, and not at all 
appropriate once you're talking about even hundreds of records.

Lastly, once we get onto dynamically adding custom fields to existing models... 
mixing XML and DB? er... that's bad news.

As for the name - Dynamic Form is more true, Dynamic model isn't. In Symfony, 
users expect models to relate directly to forms and modules, and this blatantly 
isn't the case with this plugin - you can't even SEE a specific model, it's 
just inferred from the context of a form, and the collection of fields it 
contains - models are created as a direct result from the defined and included 
fields. 

Call it model and you'd be expected to find ways to dynamically add methods, 
behaviors etc to the models too, which I'm not at all interested in doing. 

form is the overall driver (and the scope of the plugin) - hence the name :)

- Original Message -
From: Gandalf ganda...@gmail.com
To: symfony-users@googlegroups.com
Sent: Monday, February 23, 2009 11:37:04 AM GMT +00:00 GMT Britain, Ireland, 
Portugal
Subject: [symfony-users] Re: sfDynamicFormsPlugin [was:  Symfony/Doctrine/Forms 
with EAV model?]


Hello,

Once, long time ago, I made a framework, php4, that included this
feature, I didn't made it with an EAV model, I modified the tables
directly, using alter sql and such. that allowed me to have full
control over the schema without losing data during modifications.

Please try not to hardcode the EAV model in this plugin, try to
include the xml case I sent, not all forms need to go to a table.

Also, the plugins name shouldnt be dynamic form, model will be more appropriate.

Best,

Pablo


On 2/23/09, Lee Bolding l...@leesbian.net wrote:

 Just apply to join the plugin on the plugin page, and I'll accept you. I
 think that then gives you SVN commit access to the repo.

 I guess the typical use case for adding custom fields would be where the
 specification or requirements change after the project has been released -
 more attributes for a model are required, but it's not searchable data, so
 doesn't warrant changing the model and an entirely new code release. I've
 been in that situation before - where 1 new field is needed, and we've
 needed to change the schema, rebuild the model etc - not a big hassle, but
 it needs a whole release cycle just for 1 additional piece of information
 which we just need recorded. Also, there could be a case where you have a
 base object - say vehicle and you'd dynamically change it for other
 psuedo-concrete classes by adding custom fields - create mpv by adding
 attributes for 4wd, locking diff, etc. To be honest, I haven't really
 thought about the use cases - it was just a wouldn't it be cool if...
 idea, based on the fact that I could have used that functionality in the
 past.

 Still, as I said - that's something to consider in the future, once the
 initial functionality for fully dynamic forms/models has been created :)

 - Original Message -
 From: David Herrmann d...@okto.tv
 To: symfony-users@googlegroups.com
 Sent: Monday, February 23, 2009 10:19:52 AM GMT +00:00 GMT Britain, Ireland,
 Portugal
 Subject: [symfony-users] Re: sfDynamicFormsPlugin [was:
 Symfony/Doctrine/Forms with EAV model?]


 Lee Bolding schrieb:
 Hope to have those finished tomorrow night, for check in to SVN.
 Unfortunately, at the moment, I can only work on this plugin during
 my spare time (but that's also the reason I can make it a public
 plugin).

 I'd love to take a look at it, too. Perhaps we can join our (spare time)
 efforts for that one.

 Something else that occurred to me is that a logical extension of
 this would be the ability to dynamically add custom fields into
 existing models/forms. Not sure exactly how difficult that would be,
 but I think that's the direction I'll head in once I've got it
 working for creating fully dynamic forms from scratch.

 Sounds interesting, although I miss a typical use case at the moment
 (perhaps you can give me one). I think I'll have to breed a little over
 this...

 David



 




--~--~-~--~~~---~--~~
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: Session Timeout

2009-02-23 Thread cokker

have you uncommented the all above the mentioned section?

greets
Sven

DeepakBhatia schrieb:
 Hi,
 
 I have changed the session time out to 32400 in the factories.yml file
 in
 
 apps/front/config/factories.yml
 
 But still session timeout is happening after the default 30 Minutes
 (1800 Sec).
 
 ==
   user:
 class: myUser
 param:
   timeout:  32400
 ==
 
 Kindly help me in resolving this.
 
 Thanks
 
 Deepak Bhatia
 
  


--~--~-~--~~~---~--~~
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: jobeet : Day 3 : schema and relationship

2009-02-23 Thread Puentes Diaz, Roberto G.

Hi Kris...

You're right!. it's rare, but what happen, if yes?

I write this because, ( 
http://groups.google.com.ar/group/symfony-docs/browse_thread/thread/fc7b080386ac07a3#
)
i continue with a fragment of day too:

The onDelete attribute defines the ON DELETE behavior of foreign keys,
and
Propel supports CASCADE, SETNULL, and RESTRICT. For instance, when a
jobrecord is deleted, all the
jobeet_category_affiliate related records will be automatically
deleted by
the database or by Propel if the underlying engine does not support
this
functionality.

I propose, this:

The onDelete attribute defines the ON DELETE behavior of foreign keys,
and
Propel supports CASCADE, SETNULL, and RESTRICT. For instance, when a
affiliate or category record is deleted, all the
jobeet_category_affiliate related records (and
jobeet_job related records) will be automatically deleted by the
database or
by Propel if the underlying engine does not support this
functionality.

Then I'm have this particular question about requiere and onDelete,
with another schemas too.
I think, for educational goals of Jobeet. We could give more
transparency to this TIP.

I want know how i can deal with this, i'm fix spanish tranalate of
Jobeet, and I plan give a tutorial at my city.
Therefor, i want deal now with this questions ;) and give a better and
more simple tutorial.

Cheers

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



[symfony-users] Symfony and Zend Studio for Eclipse?

2009-02-23 Thread blue92877

Hello,

I just got a copy of Zend studio for eclipse, and I'm having some
trouble setting up symfony within.  Is there someone who is familiar
with this process or is using Zend for their Symfony projects who can
tell what the best way to set it up would be?

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



[symfony-users] Re: Symfony and Zend Studio for Eclipse?

2009-02-23 Thread Andy Dziahel'
Hi.

Follow this guide -
http://trac.symfony-project.org/wiki/SymfonyAndPDT#Method2:CreatevirtualfolderthatpointstoSymfonylibraries

On Mon, Feb 23, 2009 at 15:21, blue92877 bluepres...@gmail.com wrote:


 Hello,

 I just got a copy of Zend studio for eclipse, and I'm having some
 trouble setting up symfony within.  Is there someone who is familiar
 with this process or is using Zend for their Symfony projects who can
 tell what the best way to set it up would be?

 Thanks
 blue92877
 



-- 
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: Symfony and Zend Studio for Eclipse?

2009-02-23 Thread Puentes Diaz, Roberto G.

Hi, I set SF1.2 like a PHP Project Include Path. Its really better.
Cheers

Rober

On 23 feb, 11:21, blue92877 bluepres...@gmail.com wrote:
 Hello,

 I just got a copy of Zend studio for eclipse, and I'm having some
 trouble setting up symfony within.  Is there someone who is familiar
 with this process or is using Zend for their Symfony projects who can
 tell what the best way to set it up would be?

 Thanks
 blue92877
--~--~-~--~~~---~--~~
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: How to escape global site layout for an action?

2009-02-23 Thread SeeVik

Oh yes. It does work. I just had to remove the default and use the
{$view_name}Success as u told Andy. Thanks a lot.

Vikram

On Feb 23, 8:32 pm, SeeVik vikramvmalhotra1...@gmail.com wrote:
 Hello Andy.

 This doesn't work. It doesn't display the customized layout. I tried
 with this view.yml

 modules/firstModule/config/view.yml
 
 default:
   showQa:
     layout: popupLayout

 modules/firstModule/actions.class.php
 --
 public function executeShowQa()
 {
      $this-mesg = This is a new layout;

 }

 Thanks and regards
 Vikram

 On Feb 23, 8:16 pm, Andy Dziahel' trickster...@gmail.com wrote:

  Hmm. As long as I remember, you may edit modulename/config/view.yml like
  this:

  firstaction:

     layout:  customLayoutName
   secondaction:
     layout:  customLayoutName

  On Mon, Feb 23, 2009 at 13:08, SeeVik vikramvmalhotra1...@gmail.com wrote:

   Hello Andy. Thanks for that handy trick.

   I wanted to know whether there is any way we can escape the layout for
   a set of actions without everytime writing in the action $this-
   setLayout('layoutname');

   Thanks and Regards
   Vikram

   On Feb 23, 7:54 pm, Andy Dziahel' trickster...@gmail.com wrote:
Hi.

$this-setLayout('layoutName')?

On Mon, Feb 23, 2009 at 12:48, SeeVik vikramvmalhotra1...@gmail.com
   wrote:

 Hello all,

 In one of the actions I have defined in controller, I do not want to
 use the global template file layout.php. How config should I use in
 this situation?

 Like I am creating a webapp and I have a link which opens in new
 window. In this window, I don't want to display the site header and
 footers. But they are included in the layout of the website. How can I
 escape them?

 Thanks and Regards
 Vikram

--
With the best regards, Andy.

  --
  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: Sporadic ERROR: Unable to read cache file

2009-02-23 Thread Luciano A. Andrade

I have a similiar problem, but only on an old debian box, with was
partially updated ¿Is that your case?

2009/2/22 colnector (colnect.com) webmas...@colnect.com:

 Recently, I have begun to sporadically see the following error
 messages in my error log:

 Unable to read cache file /cache/frontend/prod/config/routing/
 symfony.routing.data.cache.


 Obviously, this file can be read since otherwise the entire site
 wouldn't work. What could be the reasons for this error? Is symphony
 sometimes trying to update it?

 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] Re: Prefix /:sf_culture to sfDoctrineRouteCollection

2009-02-23 Thread Damien Lepage
Try this:

routename:
  class:   sfDoctrineRouteCollection
  options: { model: JobeetJob }
  prefix_path: /:sf_culture/



2009/2/23 sikk sik...@gmail.com


 routename:
  class:   sfDoctrineRouteCollection
  options: { model: JobeetJob }


 Hi,

 Does someone have any idea how to make this route having a prefix to
 prevent creating the seven restful routes by hand ? I can't find the
 right syntax at the moment.

 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] Re: Adding a file upload control

2009-02-23 Thread Schorsch

Hey,

maybe you need to allow the extra-fields in your form definition
class.

$this-validatorSchema-setOption('allow_extra_fields', true);

Check this out: 
http://www.symfony-project.org/book/forms/1_1/en/02-Form-Validation

Greets

--~--~-~--~~~---~--~~
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] Company Intranet System on symfony.

2009-02-23 Thread shuxer

Hi folks.

I am developing intranet system for large company(5000-1 employs)
and i would like to hear any comments or advices from the community.

The system consists of 2 part:

1. Main Intranet system: Based on Company local server and all access
will be within company local network.
2. Web site for company members: Company members can access from
internet and thus use any available services.

The minor issue is to design right solution for  2 nd part, and by far
i have considered those 2 ideas:

1. First thought was to have installed the main intranet system on
company local network and have subsystem(for members access) on remote
web hosting provider side. But in this case i will face to replicate
part of DB into remote web hosting which breaks up the data integrity
and privacy(financial reports ...).

2 .Second thought was to have companies own hardware infrastructure at
company office and to host the website for company members on its own.
So company members can access to web site and request and view reports
and perform other actions. But im not so sure about technical part for
this case. Like how to put company own web server and serve requests
from WWW and i would like to hear any info about this also.

Any advice or suggestion would be highly appreciated.

Shuxer
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] Re: setWebDir sets also sf_upload_dir?

2009-02-23 Thread Tomasz Ignatiuk
I had to use this in order to make it working:

sfConfig::set('sf_upload_dir', 'public_html'.DIRECTORY_SEPARATOR.'uploads');

2009/2/17 Tomasz Ignatiuk tomek.ignat...@gmail.com

 home/domains/myproject/public_html/uploads/scans has 777
 home/domains/myproject/public_html/uploads has 777

 :(

 2009/2/17 Alexandru-Emil Lupu gang.al...@gmail.com


 hi!
 i might believe that is a permission issue...
 run a symfony fix-perms ... task or chmod 777 -R uploads

 Alecs


 On Tue, Feb 17, 2009 at 9:08 PM, Tomasz Ignatiuk 
 tomek.ignat...@gmail.com wrote:


 Hi

 I have this situation on my server

 A have symfony project instaled in: home/domain/mydomain/myproject
 And web directory in: home/domain/mydomain/public_html

 In ProjectConfiguration.class.php I set everything like this:
  public function setup()
  {
$this-enableAllPluginsExcept(array('sfDoctrinePlugin',
 'sfCompat10Plugin'));
$this-setWebDir('/home/domains/myproject/public_html/');
$this-setCacheDir('/home/domains/mydomain/myproject/cache/');
$this-setRootDir('/home/domains/mydomain/myproject/');
  }

 In API I read that setWebDir sets also sf_upload_dir.

  public function setWebDir($webDir)
sfConfig::add(array(
  'sf_web_dir'= $webDir,
  'sf_upload_dir' = $webDir.DIRECTORY_SEPARATOR.'uploads',
));
  }

 But when I use file field in form like this:
$this-setWidgets(array('file' = new sfWidgetFormInputFile()));
$this-setValidators(array('file' = new sfValidatorFile(array
 ('required' = false,'path' = sfConfig::get('sf_upload_dir').'/
 scans';

 It uploads files but not to: home/domains/myproject/public_html/
 uploads/scans
 as I expect but to: home/domains/mydomain/myproject/web/uploads/scans'

 Can You tell me why?



 



--~--~-~--~~~---~--~~
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] Language Selector

2009-02-23 Thread Paul Jones

My company support both Traditional and Simplified Chinese languages
as well as others. I tried to use the sfFormLanguage selector from the
sfFormExtraPlugin but the sfWidgetFormI18nSelectLanguage and
sfValidatorI18nChoiceLanguage used by the form only allow for setting
the language, not the language and Country. In other words, with the
above I can allow a user to select zh as the language, but not zh_CN
or zh_TW. I can build my own form, but am I missing something? I
really need to set the culture when they select their language to a
full culture value including both the language and the country. Is
there a way already built to allow me to set the complete culture
value based on a form?

paul

--~--~-~--~~~---~--~~
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: problems installing the sfGuardPlugin

2009-02-23 Thread ckemmler

I'm not sure.

But... how do I recover from this situation now?

On Feb 22, 8:35 pm, Lee Bolding l...@leesbian.net wrote:
 Did you edit apps/your app/lib/myUser.class.php to extend  
 sfGuardSecurityUser?

 *THEN* clear the cache?

 On 22 Feb 2009, at 18:36, ckemmler wrote:



  yep, and now everytime I try to (re-) install the plugin it just says:
  plugin    installing plugin sfGuardPlugin

  but that's it

  On Feb 22, 7:31 pm, Tom Haskins-Vaughan t...@templestreetmedia.com
  wrote:
  Have you tried clearing the cache?

  $ ./symfony cc

  ckemmler wrote:
  (I'm using the tutorial for symphony 1.2)

  following, the whole output of installing the sfGuardPlugin for me,
  i.e. it doesn't give me the

  sfSymfonyPluginManager Installation successful for plugin  
  sfGuardPlugin

  message

  I also get the following message when trying to connect to my
  application:

  Class 'sfGuardSecurityUser' not found in /eclipse/workspace/
  playtype/
  apps/backend/lib/myUser.class.php on line 3

  any idea?

  sfPearFrontendPlugin Attempting to discover channel  
  pear.symfony-project.com...
  sfPearFrontendPlugin downloading channel.xml ...
  sfPearFrontendPlugin Starting to download channel.xml (663 bytes)
  sfPearFrontendPlugin .
  sfPearFrontendPlugin ...done: 663 bytes
  sfPearFrontendPlugin Auto-discovered channel pear.symfony-
  project.com, alias
  sfPearFrontendPlugin symfony, adding to registry
  sfPearFrontendPlugin Attempting to discover channel
  sfPearFrontendPlugin plugins.symfony-project.org...
  sfPearFrontendPlugin downloading channel.xml ...
  sfPearFrontendPlugin Starting to download channel.xml (639 bytes)
  sfPearFrontendPlugin ...done: 639 bytes
  sfPearFrontendPlugin Auto-discovered channel plugins.symfony-
  project.org, alias
  sfPearFrontendPlugin symfony-plugins, adding to registry

  --
  Tom Haskins-Vaughan
  Temple Street Media: Design and Development for the Web
  t...@templestreetmedia.com |www.templestreetmedia.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] sfGuardPlugin login action gives error no. 500

2009-02-23 Thread zabbasi

Hi Everyone

I see the same problem as mentioned by this post (http://
groups.google.com/group/symfony-users/browse_thread/thread/
41f54b8c71ce607f/ad08bf3766215dce?lnk=gstq=user
+profile#ad08bf3766215dce - I have noted something strange about
sfGuard 3.1.1.

I created a table UserProfile for my project. Which is the
profile_class for sfGuardUser.

I get an error 500 everytime someone logins with a user that is
created directly from sfGuardUser's admin pages.) but the solution (re-
build the filters) does not work.

The reason I think the solution does not work is because none of the
filter files change (SVN does not detect a modification).

Note: I created the table first then ran propel:build-all-load, I then
created a config/app.yml file and included the following -
all:
  sf_guard_plugin:
success_signout_url: @homepage
profile_class: UserProfile

Then I ran the propel:build-all-load command again followed by
propel:build-forms and propel:build-filters because propel:build-all-
load gave the following warning:

 Phing was run before and used many custom classes that might conflict
with
 your model classes. In case of errors try running propel:build-
forms and
 propel:build-filters alone. This is due to a PHP limitation that
cannot be
 fixed in symfony.

A stack trace of the 500 error:

500 | Internal Server Error | PropelException
Unable to execute INSERT statement. [wrapped: SQLSTATE[HY000]: General
error: 1364 Field 'first_name' doesn't have a default value]
stack trace

* at ()
  in SF_ROOT_DIR\lib\vendor\symfony\lib\plugins\sfPropelPlugin\lib
\vendor\propel\util\BasePeer.php line 299 ...
 296.
 297. } catch (Exception $e) {
 298. Propel::log($e-getMessage(),
Propel::LOG_ERR);
 299. throw new PropelException(Unable to
execute INSERT statement., $e);
 300. }
 301.
 302. // If the primary key column is auto-
incremented, get the id now.
* at BasePeer::doInsert(object('Criteria'), object('DebugPDO'))
  in SF_ROOT_DIR\lib\model\om\BaseUserProfilePeer.php line 819 ...
 816. // use transaction because $criteria
could contain info
 817. // for more than one table (I guess,
conceivably)
 818. $con-beginTransaction();
 819. $pk = BasePeer::doInsert($criteria,
$con);
 820. $con-commit();
 821. } catch(PropelException $e) {
 822. $con-rollBack();
* at BaseUserProfilePeer::doInsert(object('UserProfile'), object
('DebugPDO'))
  in SF_ROOT_DIR\lib\model\om\BaseUserProfile.php line 1010 ...
1007. // If this object has been modified,
then save it to the database.
1008. if ($this-isModified()) {
1009. if ($this-isNew()) {
1010. $pk = UserProfilePeer::doInsert
($this, $con);
1011. $affectedRows += 1; // we are
assuming that there is only 1 row per doInsert() which
1012.  // should
always be true here (even though technically
1013.  //
BasePeer::doInsert() can insert multiple rows).
* at BaseUserProfile-doSave(object('DebugPDO'))
  in SF_ROOT_DIR\lib\model\om\BaseUserProfile.php line 959 ...
 956.
 957. $con-beginTransaction();
 958. try {
 959. $affectedRows = $this-doSave($con);
 960. $con-commit();
 961. foreach (sfMixer::getCallables
('BaseUserProfile:save:post') as $callable)
 962. {
* at BaseUserProfile-save(object('DebugPDO'))
  in SF_ROOT_DIR\plugins\sfGuardPlugin\lib\model\om
\BasesfGuardUser.php line 847 ...
 844. if ($this-collUserProfiles !== null) {
 845. foreach ($this-collUserProfiles as
$referrerFK) {
 846. if (!$referrerFK-isDeleted()) {
 847. $affectedRows += $referrerFK-
save($con);
 848. }
 849. }
 850. }
* at BasesfGuardUser-doSave(object('DebugPDO'))
  in SF_ROOT_DIR\plugins\sfGuardPlugin\lib\model\om
\BasesfGuardUser.php line 790 ...
 787.
 788. $con-beginTransaction();
 789. try {
 790. $affectedRows = $this-doSave($con);
 791. $con-commit();
 792. foreach (sfMixer::getCallables
('BasesfGuardUser:save:post') as $callable)
 793. {
* at BasesfGuardUser-save(null)
  in SF_ROOT_DIR\plugins\sfGuardPlugin\lib\user
\sfGuardSecurityUser.class.php 

[symfony-users] Rebuilding Data Model

2009-02-23 Thread slinky66

Hello,

I just added a column to my table. What are the Symfony command
linecommands that cause the data model to be updated?

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] Re: Rebuilding Data Model

2009-02-23 Thread Sid Bachtiar

symfony propel-build-model to build your model classes
symfony propel-build-sql to rebuild the sql script
symfony propel-insert-sql to execute the sql script in the database
(warning: this will delete all the data in your database)

On Tue, Feb 24, 2009 at 9:40 AM, slinky66 tcasto...@comcast.net wrote:

 Hello,

 I just added a column to my table. What are the Symfony command
 linecommands that cause the data model to be updated?

 Thanks
 




-- 
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: Rebuilding Data Model

2009-02-23 Thread zabbasi

php symfony cc
php symfony propel:build-model

You could just do php symfony propel:build-all-load --noconfirmation
instead of php symfony propel:build-model it will do the later and
much more.

You should check out the symfony documentation 
http://www.symfony-project.org/doc/1_2/

Zain


On Feb 24, 1:40 am, slinky66 tcasto...@comcast.net wrote:
 Hello,

 I just added a column to my table. What are the Symfony command
 linecommands that cause the data model to be updated?

 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] Re: sfGuardPlugin login action gives error no. 500

2009-02-23 Thread zabbasi

Sorry
I am using sfGuardPlugin 3.1.3 not 3.1.1

An update: I changed the table PHP name from UserProfile to
sfGuardUserProfile in the schema file. No Luck.

Thanks
Zain



On Feb 24, 12:39 am, zabbasi zainul.abb...@gmail.com wrote:
 Hi Everyone

 I see the same problem as mentioned by this post (http://
 groups.google.com/group/symfony-users/browse_thread/thread/
 41f54b8c71ce607f/ad08bf3766215dce?lnk=gstq=user
 +profile#ad08bf3766215dce - I have noted something strange about
 sfGuard 3.1.1.

 I created a table UserProfile for my project. Which is the
 profile_class for sfGuardUser.

 I get an error 500 everytime someone logins with a user that is
 created directly from sfGuardUser's admin pages.) but the solution (re-
 build the filters) does not work.

 The reason I think the solution does not work is because none of the
 filter files change (SVN does not detect a modification).

 Note: I created the table first then ran propel:build-all-load, I then
 created a config/app.yml file and included the following -
 all:
   sf_guard_plugin:
     success_signout_url: @homepage
     profile_class: UserProfile

 Then I ran the propel:build-all-load command again followed by
 propel:build-forms and propel:build-filters because propel:build-all-
 load gave the following warning:

  Phing was run before and used many custom classes that might conflict
 with
  your model classes. In case of errors try running propel:build-
 forms and
  propel:build-filters alone. This is due to a PHP limitation that
 cannot be
  fixed in symfony.

 A stack trace of the 500 error:

 500 | Internal Server Error | PropelException
 Unable to execute INSERT statement. [wrapped: SQLSTATE[HY000]: General
 error: 1364 Field 'first_name' doesn't have a default value]
 stack trace

     * at ()
       in SF_ROOT_DIR\lib\vendor\symfony\lib\plugins\sfPropelPlugin\lib
 \vendor\propel\util\BasePeer.php line 299 ...
              296.
              297.         } catch (Exception $e) {
              298.             Propel::log($e-getMessage(),
 Propel::LOG_ERR);
              299.             throw new PropelException(Unable to
 execute INSERT statement., $e);
              300.         }
              301.
              302.         // If the primary key column is auto-
 incremented, get the id now.
     * at BasePeer::doInsert(object('Criteria'), object('DebugPDO'))
       in SF_ROOT_DIR\lib\model\om\BaseUserProfilePeer.php line 819 ...
              816.             // use transaction because $criteria
 could contain info
              817.             // for more than one table (I guess,
 conceivably)
              818.             $con-beginTransaction();
              819.             $pk = BasePeer::doInsert($criteria,
 $con);
              820.             $con-commit();
              821.         } catch(PropelException $e) {
              822.             $con-rollBack();
     * at BaseUserProfilePeer::doInsert(object('UserProfile'), object
 ('DebugPDO'))
       in SF_ROOT_DIR\lib\model\om\BaseUserProfile.php line 1010 ...
             1007.             // If this object has been modified,
 then save it to the database.
             1008.             if ($this-isModified()) {
             1009.                 if ($this-isNew()) {
             1010.                     $pk = UserProfilePeer::doInsert
 ($this, $con);
             1011.                     $affectedRows += 1; // we are
 assuming that there is only 1 row per doInsert() which
             1012.                                          // should
 always be true here (even though technically
             1013.                                          //
 BasePeer::doInsert() can insert multiple rows).
     * at BaseUserProfile-doSave(object('DebugPDO'))
       in SF_ROOT_DIR\lib\model\om\BaseUserProfile.php line 959 ...
              956.
              957.         $con-beginTransaction();
              958.         try {
              959.             $affectedRows = $this-doSave($con);
              960.             $con-commit();
              961.     foreach (sfMixer::getCallables
 ('BaseUserProfile:save:post') as $callable)
              962.     {
     * at BaseUserProfile-save(object('DebugPDO'))
       in SF_ROOT_DIR\plugins\sfGuardPlugin\lib\model\om
 \BasesfGuardUser.php line 847 ...
              844.             if ($this-collUserProfiles !== null) {
              845.                 foreach ($this-collUserProfiles as
 $referrerFK) {
              846.                     if (!$referrerFK-isDeleted()) {
              847.                         $affectedRows += 
 $referrerFK-save($con);

              848.                     }
              849.                 }
              850.             }
     * at BasesfGuardUser-doSave(object('DebugPDO'))
       in SF_ROOT_DIR\plugins\sfGuardPlugin\lib\model\om
 \BasesfGuardUser.php line 790 ...
              787.
              788.         $con-beginTransaction();
              789.         try {
              790.  

[symfony-users] RESTfull post: CSRF attack detected

2009-02-23 Thread Joel Cuevas

Hi list!

Is there any way to avoid (or delude) the CSRF attack protection (sf
1.2) when submiting a form via REST but without disabling it for
normal web browser requests (I mean, directly in the form)? I'm using
exactly the same action for both requests (just with diferent
sf_format).

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] Re: Company Intranet System on symfony.

2009-02-23 Thread Eno

On Feb 23, 10:45 am, shuxer dr.crea...@gmail.com wrote:

 2 .Second thought was to have companies own hardware infrastructure at
 company office and to host the website for company members on its own.
 So company members can access to web site and request and view reports
 and perform other actions. But im not so sure about technical part for
 this case. Like how to put company own web server and serve requests
 from WWW and i would like to hear any info about this also.

So what's your specific question?

Seems to me that hosting a web server is not a symfony programming
question...


--


--~--~-~--~~~---~--~~
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: Prefix /:sf_culture to sfDoctrineRouteCollection

2009-02-23 Thread sikk

routename GET/routename.:sf_format
routename_new GET/routename/new.:sf_format
routename_create  POST   /routename.:sf_format
routename_editGET/routename/:id/edit.:sf_format
routename_update  PUT/routename/:id.:sf_format
routename_delete  DELETE /routename/:id.:sf_format
routename_showGET/routename/:id.:sf_format


symfony app:route routename_new


Name routename_new
Pattern  /routename/new.:sf_format
ClasssfDoctrineRoute
Defaults action: 'new'
 module: 'routename'
 sf_format: 'html'
Requirements id: '\\d+'
 sf_format: '[^/\\.]+'
 sf_method: 'get'
Options  context: array ()
 debug: false
 extra_parameters_as_query_string: true
 generate_shortest_url: true
 load_configuration: false
 logging: false
 model: 'JobeetJob'
 object_model: 'JobeetJob'
 segment_separators: array (0 = '/',1 = '.',)
 segment_separators_regex: '(?:/|\\.)'
 suffix: ''
 text_regex: '.+?'
 type: 'object'
 variable_content_regex: '[^/\\.]+'
 variable_prefix_regex: '(?:\\:)'
 variable_prefixes: array (0 = ':',)
 variable_regex: '[\\w\\d_]+'
Regex#^
 /routename
 /new
 (?:\.(?Psf_format[^/\.]+)
 )?
 $#x
Tokens   separator  array (0 = '/',1 = NULL,)
 text   array (0 = 'routename',1 = NULL,)
 separator  array (0 = '/',1 = NULL,)
 text   array (0 = 'new',1 = NULL,)
 separator  array (0 = '.',1 = NULL,)
 variable   array (0 = ':sf_format',1 = 'sf_format',)


Doesnt seem to work realy.

Someone have an idea ?

On Feb 23, 9:44 am, Damien Lepage damienlep...@gmail.com wrote:
 Try this:

 routename:
   class:   sfDoctrineRouteCollection
   options: { model: JobeetJob }
   prefix_path: /:sf_culture/

 2009/2/23 sikk sik...@gmail.com



  routename:
   class:   sfDoctrineRouteCollection
   options: { model: JobeetJob }

  Hi,

  Does someone have any idea how to make this route having a prefix to
  prevent creating the seven restful routes by hand ? I can't find the
  right syntax at the moment.

  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] Re: problems installing the sfGuardPlugin

2009-02-23 Thread Sherif

Try to deleve everything in your lib folder, and re-install the plugin

On Feb 24, 5:00 am, ckemmler ckemm...@gmail.com wrote:
 I'm not sure.

 But... how do I recover from this situation now?

 On Feb 22, 8:35 pm, Lee Bolding l...@leesbian.net wrote:

  Did you edit apps/your app/lib/myUser.class.php to extend  
  sfGuardSecurityUser?

  *THEN* clear the cache?

  On 22 Feb 2009, at 18:36, ckemmler wrote:

   yep, and now everytime I try to (re-) install the plugin it just says:
   plugin    installing plugin sfGuardPlugin

   but that's it

   On Feb 22, 7:31 pm, Tom Haskins-Vaughan t...@templestreetmedia.com
   wrote:
   Have you tried clearing the cache?

   $ ./symfony cc

   ckemmler wrote:
   (I'm using the tutorial for symphony 1.2)

   following, the whole output of installing the sfGuardPlugin for me,
   i.e. it doesn't give me the

   sfSymfonyPluginManager Installation successful for plugin  
   sfGuardPlugin

   message

   I also get the following message when trying to connect to my
   application:

   Class 'sfGuardSecurityUser' not found in /eclipse/workspace/
   playtype/
   apps/backend/lib/myUser.class.php on line 3

   any idea?

   sfPearFrontendPlugin Attempting to discover channel  
   pear.symfony-project.com...
   sfPearFrontendPlugin downloading channel.xml ...
   sfPearFrontendPlugin Starting to download channel.xml (663 bytes)
   sfPearFrontendPlugin .
   sfPearFrontendPlugin ...done: 663 bytes
   sfPearFrontendPlugin Auto-discovered channel pear.symfony-
   project.com, alias
   sfPearFrontendPlugin symfony, adding to registry
   sfPearFrontendPlugin Attempting to discover channel
   sfPearFrontendPlugin plugins.symfony-project.org...
   sfPearFrontendPlugin downloading channel.xml ...
   sfPearFrontendPlugin Starting to download channel.xml (639 bytes)
   sfPearFrontendPlugin ...done: 639 bytes
   sfPearFrontendPlugin Auto-discovered channel plugins.symfony-
   project.org, alias
   sfPearFrontendPlugin symfony-plugins, adding to registry

   --
   Tom Haskins-Vaughan
   Temple Street Media: Design and Development for the Web
   t...@templestreetmedia.com |www.templestreetmedia.com


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



[symfony-users] sfDoctrineGuardPlugin credential problem symfony 1.2

2009-02-23 Thread eljam

hi,

i've got a problem with the credential check of sfDoctrineGuardPlugin.
In fact, i have a permission called cp which is perfectly had in the
credential when i check the log.
But when i do a simple test like ?php if($sf_user-hasCredential
('admin')) echo 'ok'; ?. it returns ok or the connected user doesn't
have the admin permission.

NB: myUser already extends sfGuardSecurityUser and i clear the cache
if people wondering.

Thx 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: Company Intranet System on symfony.

2009-02-23 Thread Fabian Lange
10k Employee Company having IT staff asking such questions on a PHP
framework mailing list?
Strange things happen in this world :-)
Fabian
PS: you should consider giving money to a company that claims to solve such
problems for those who cannot. and hope you are not in such a company
already

On Mon, Feb 23, 2009 at 4:45 PM, shuxer dr.crea...@gmail.com wrote:


 Hi folks.

 I am developing intranet system for large company(5000-1 employs)
 and i would like to hear any comments or advices from the community.

 The system consists of 2 part:

 1. Main Intranet system: Based on Company local server and all access
 will be within company local network.
 2. Web site for company members: Company members can access from
 internet and thus use any available services.

 The minor issue is to design right solution for  2 nd part, and by far
 i have considered those 2 ideas:

 1. First thought was to have installed the main intranet system on
 company local network and have subsystem(for members access) on remote
 web hosting provider side. But in this case i will face to replicate
 part of DB into remote web hosting which breaks up the data integrity
 and privacy(financial reports ...).

 2 .Second thought was to have companies own hardware infrastructure at
 company office and to host the website for company members on its own.
 So company members can access to web site and request and view reports
 and perform other actions. But im not so sure about technical part for
 this case. Like how to put company own web server and serve requests
 from WWW and i would like to hear any info about this also.

 Any advice or suggestion would be highly appreciated.

 Shuxer
 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] Re: Could Symfony be easier to use?

2009-02-23 Thread Eno

On Sat, 21 Feb 2009, Lawrence Krubner wrote:

 But there are a lot of situations where you want to integrate some of 
 the functionality of a framework with pre-existing code, and for those 
 situations, something lighter weight, with less assumptions, is better.

One of the sites Ive been working on has lots of legacy stuff. We've been 
able to gradually replace small pieces bit-by-bit by dropping symfony 
controllers into each folder connected to a symfony app that replaces the 
legacy app functionality. All of the symfony apps are in a single tree 
with each controller pointing to a specific app. Worked well so far as a 
way of migrating a site slowly towards symfony.


-- 



--~--~-~--~~~---~--~~
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: Cache question

2009-02-23 Thread Eno

On Sun, 22 Feb 2009, James Cauwelier wrote:

 It wouldn 't be slower, but come with other difficulties.  Think about
 what happens when you want to clear the cache.  You would have to
 remove a huge number of files which would take quite a while.  This
 does not have to be a problem, but it may be that you won't be able to
 clear the cache with the symfony command.  Instead you would have to
 do it manually on the command line with find commands and stuff like
 that.
 
 So, you would have faster pages, but a cache that is less manageable.
 You could remove the cache periodically with a cronjob or you could
 use some other form of caching.  Maybe you should opt for memcached
 instead of HTML file cache.

There are other ways to clear cache...

What we did was to write a 'clear cache' module, so updating a single item 
will automatically clear all associated pages by calling a specific URL in 
our 'cc' module with parameters specifying the object in question (since 
we know what cache keys we have used this is easy to do). Typically, 
thanks to globbing, the actual call to clear a cached object is just one 
or two method calls. Since partials are used across the site, clearing it 
once, clears it for all pages that use it, and the next request for it 
generates cache once for all pages that use it.

The actions in the cc module are built from primitives that clear a 
specific object (like a template fragment or a partial), so a page 
clearing action might call a few primitives to update the whole page.

In our case, our site is heavy wth content, so we have actions in the cc 
module to clear pages, category pages, specific partials on the home page, 
the whole homepage, etc etc. We used a filter to secure the module, so 
only HTTP GET requests from our backend app (on a separate secure server) 
is allowed to access those 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: Company Intranet System on symfony.

2009-02-23 Thread Lee Bolding

heh.

... and they say the French don't have a sense of humour ;)


On 23 Feb 2009, at 23:18, Fabian Lange wrote:

 10k Employee Company having IT staff asking such questions on a PHP  
 framework mailing list?
 Strange things happen in this world :-)
 Fabian
 PS: you should consider giving money to a company that claims to  
 solve such problems for those who cannot. and hope you are not in  
 such a company already

 On Mon, Feb 23, 2009 at 4:45 PM, shuxer dr.crea...@gmail.com wrote:

 Hi folks.

 I am developing intranet system for large company(5000-1 employs)
 and i would like to hear any comments or advices from the community.

 The system consists of 2 part:

 1. Main Intranet system: Based on Company local server and all access
 will be within company local network.
 2. Web site for company members: Company members can access from
 internet and thus use any available services.

 The minor issue is to design right solution for  2 nd part, and by far
 i have considered those 2 ideas:

 1. First thought was to have installed the main intranet system on
 company local network and have subsystem(for members access) on remote
 web hosting provider side. But in this case i will face to replicate
 part of DB into remote web hosting which breaks up the data integrity
 and privacy(financial reports ...).

 2 .Second thought was to have companies own hardware infrastructure at
 company office and to host the website for company members on its own.
 So company members can access to web site and request and view reports
 and perform other actions. But im not so sure about technical part for
 this case. Like how to put company own web server and serve requests
 from WWW and i would like to hear any info about this also.

 Any advice or suggestion would be highly appreciated.

 Shuxer
 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] Re: Could Symfony be easier to use?

2009-02-23 Thread Lee Bolding

Hmmm... I may have to do something similar with my current project.

I may bug you for more details about that.

On 23 Feb 2009, at 23:32, Eno wrote:


 On Sat, 21 Feb 2009, Lawrence Krubner wrote:

 But there are a lot of situations where you want to integrate some of
 the functionality of a framework with pre-existing code, and for  
 those
 situations, something lighter weight, with less assumptions, is  
 better.

 One of the sites Ive been working on has lots of legacy stuff. We've  
 been
 able to gradually replace small pieces bit-by-bit by dropping symfony
 controllers into each folder connected to a symfony app that  
 replaces the
 legacy app functionality. All of the symfony apps are in a single tree
 with each controller pointing to a specific app. Worked well so far  
 as a
 way of migrating a site slowly towards symfony.


 -- 



 


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



[symfony-users] Symfony Deployment

2009-02-23 Thread Patrick Fong
Hi Guys,

 

I'm interested to know what deployment methods everyone is using to deploy
there SF projects ?

 

I'm currently using svn checkouts but I'm not very happy with that and am
looking for something a bit more advanced. I've had a quick read about
Capistrano (rails deployment) which can also be used for php and am looking
into using that possibly. Does anyone else have some suggestions or advice ?

 

Cheers,

Pat

 


--~--~-~--~~~---~--~~
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: Prefix /:sf_culture to sfDoctrineRouteCollection

2009-02-23 Thread Damien Lepage
The prefix_path is really the way to go.
You can see it in Culture in the URL here:
http://www.symfony-project.org/jobeet/1_2/Doctrine/en/19
Have you tried adding something after the culture ?
prefix_path: /:sf_culture/prefix


2009/2/23 sikk sik...@gmail.com


 routename GET/routename.:sf_format
 routename_new GET/routename/new.:sf_format
 routename_create  POST   /routename.:sf_format
 routename_editGET/routename/:id/edit.:sf_format
 routename_update  PUT/routename/:id.:sf_format
 routename_delete  DELETE /routename/:id.:sf_format
 routename_showGET/routename/:id.:sf_format


 symfony app:route routename_new


 Name routename_new
 Pattern  /routename/new.:sf_format
 ClasssfDoctrineRoute
 Defaults action: 'new'
 module: 'routename'
 sf_format: 'html'
 Requirements id: '\\d+'
 sf_format: '[^/\\.]+'
 sf_method: 'get'
 Options  context: array ()
 debug: false
 extra_parameters_as_query_string: true
 generate_shortest_url: true
 load_configuration: false
 logging: false
 model: 'JobeetJob'
 object_model: 'JobeetJob'
 segment_separators: array (0 = '/',1 = '.',)
 segment_separators_regex: '(?:/|\\.)'
 suffix: ''
 text_regex: '.+?'
 type: 'object'
 variable_content_regex: '[^/\\.]+'
 variable_prefix_regex: '(?:\\:)'
 variable_prefixes: array (0 = ':',)
 variable_regex: '[\\w\\d_]+'
 Regex#^
 /routename
 /new
 (?:\.(?Psf_format[^/\.]+)
 )?
 $#x
 Tokens   separator  array (0 = '/',1 = NULL,)
 text   array (0 = 'routename',1 = NULL,)
 separator  array (0 = '/',1 = NULL,)
 text   array (0 = 'new',1 = NULL,)
 separator  array (0 = '.',1 = NULL,)
 variable   array (0 = ':sf_format',1 = 'sf_format',)


 Doesnt seem to work realy.

 Someone have an idea ?

 On Feb 23, 9:44 am, Damien Lepage damienlep...@gmail.com wrote:
  Try this:
 
  routename:
class:   sfDoctrineRouteCollection
options: { model: JobeetJob }
prefix_path: /:sf_culture/
 
  2009/2/23 sikk sik...@gmail.com
 
 
 
   routename:
class:   sfDoctrineRouteCollection
options: { model: JobeetJob }
 
   Hi,
 
   Does someone have any idea how to make this route having a prefix to
   prevent creating the seven restful routes by hand ? I can't find the
   right syntax at the moment.
 
   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] Re: Symfony Deployment

2009-02-23 Thread Eno

On Tue, 24 Feb 2009, Patrick Fong wrote:

 I'm currently using svn checkouts but I'm not very happy with that and am
 looking for something a bit more advanced. I've had a quick read about
 Capistrano (rails deployment) which can also be used for php and am looking
 into using that possibly. Does anyone else have some suggestions or advice ?

Ive been plaing around with Capistrano - I saw a post somewhere where they 
had adapted it for deployment of PHP apps. In my case, I had to override 
pretty much all the methods because our the default methods where no use 
to our deployment methods.

Apart from that, its very cool :-)


-- 



--~--~-~--~~~---~--~~
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] How to include some helpers in a template?

2009-02-23 Thread SeeVik

Hello all,

I want to include some helpers by default in some of my templates. I
don't want them to be loaded in all of the templates, just some of
them.

I found out that [standard_helpers] setting in my settings.yml file
has been commented out.

Can do something like this?

/modules/$module_name/config/view.yml
---
all:
  standard_helpers:  [Form, Object, Tag]

Is this correct if I want to include the Form, Object and Tag helpers
in all the templates of one of my modules?

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



[symfony-users] Re: Symfony Deployment

2009-02-23 Thread Sid Bachtiar

svn export, symfony freeze, symfony sync ... basic stuffs

I wonder how easy/hard it is to make symfony sync a bit more advanced,
like adding ability to sync to multiple servers at once, execute
tasks/batches, etc.

On Tue, Feb 24, 2009 at 2:21 PM, Patrick Fong patr...@ddns.com.au wrote:
 Hi Guys,



 I’m interested to know what deployment methods everyone is using to deploy
 there SF projects ?



 I’m currently using svn checkouts but I’m not very happy with that and am
 looking for something a bit more advanced. I’ve had a quick read about
 Capistrano (rails deployment) which can also be used for php and am looking
 into using that possibly. Does anyone else have some suggestions or advice ?



 Cheers,

 Pat



 




-- 
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: Symfony Deployment

2009-02-23 Thread Tom Haskins-Vaughan

Sid,

Why do you do an svn export rather than sync directly from your working 
copy? I'm not criticizing, just curious.

Tom

Sid Bachtiar wrote:
 svn export, symfony freeze, symfony sync ... basic stuffs
 
 I wonder how easy/hard it is to make symfony sync a bit more advanced,
 like adding ability to sync to multiple servers at once, execute
 tasks/batches, etc.
 
 On Tue, Feb 24, 2009 at 2:21 PM, Patrick Fong patr...@ddns.com.au wrote:
 Hi Guys,



 I’m interested to know what deployment methods everyone is using to deploy
 there SF projects ?



 I’m currently using svn checkouts but I’m not very happy with that and am
 looking for something a bit more advanced. I’ve had a quick read about
 Capistrano (rails deployment) which can also be used for php and am looking
 into using that possibly. Does anyone else have some suggestions or advice ?



 Cheers,

 Pat



 
 
 

-- 
Tom Haskins-Vaughan
Temple Street Media: Design and Development for the Web
t...@templestreetmedia.com | www.templestreetmedia.com


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



[symfony-users] Re: Symfony Deployment

2009-02-23 Thread Yevgeniy A. Viktorov


+1 capistrano.

I have used this post for beginning:
http://blog.codingspree.net/2008/5/12/deploying-symfony-project-with-capistrano/
seems to be down, maybe temporary...

Then google for q's and write your sets of tasks ;)

p.s.
http://wiki.capify.org/index.php?title=Understanding_Deployment_Strategies
http://weblog.jamisbuck.org/2007/7/23/capistrano-multistage


On Tue, 2009-02-24 at 12:21 +1100, Patrick Fong wrote:
 Hi Guys,
 
  
 
 I’m interested to know what deployment methods everyone is using to
 deploy there SF projects ?
 
  
 
 I’m currently using svn checkouts but I’m not very happy with that and
 am looking for something a bit more advanced. I’ve had a quick read
 about Capistrano (rails deployment) which can also be used for php and
 am looking into using that possibly. Does anyone else have some
 suggestions or advice ?
 
  
 
 Cheers,
 
 Pat
 
  
 
 
 
  


--~--~-~--~~~---~--~~
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: Complex Credential Handling through a sfBasicSecurityFilter child ...

2009-02-23 Thread Shinkan

Hi there ...
Just to tell ...
I achieved this by doing $route = $this-getContext-getRequest-
getAttribute('sf_route').
Then, if corresponding result instanceof sfPropelRoute, $route-
getObject().

On 23 fév, 07:17, Shinkan shin...@gmail.com wrote:
 Hi !

 My application needs a complex credential handling that sfGuardPlugin
 or basic Symfony credentials handling can't deal with.
 I need each user to have differents credentials on different
 domains.
 Each current domain is defined dynamically as it's part of the
 application data.
 For instance, user A will click on a link concerning an object on data
 model (through sfPropelRoute), and this object belongs to a domain.
 According to user's credentials, I need to permit or not the action
 behind the link.

 So I thing that I need to extends sfBasicSecurityFilter.
 On each sfPropelRoute triggered, I want to get the object in my
 extended filter.
 According to the object class, I will be able to get the domain to
 which this object belongs.
 I can also get the user instance in the filter.
 If the user has a permission (that's an internal concept of my
 extended user class) for this domain, I will dynamically and temporary
 give the according credential to this user, so that he will be able to
 do the subsequent action on the current object because the user has
 permission for the domain of this object.

 The problem is that I don't know how to get the equivalent of 
 $this-getRoute()-getObject() from an action triggered by a sfPropelRoute

 on my extended filter.
 How can I get the current's route object on a filter ?
 And as a subsidiary question, am I doing good ?

 NB: I'm using Symfony 1.2.

 Many thanks in advance to everybody.
--~--~-~--~~~---~--~~
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: Session Timeout

2009-02-23 Thread DeepakBhatia

Hi Sven,

Thanks for the help, yes I was missing the all:

Regards

Deepak Bhatia

On Feb 23, 5:21 pm, cokker cokker...@googlemail.com wrote:
 have you uncommented the all above the mentioned section?

 greets
 Sven

 DeepakBhatia schrieb:



  Hi,

  I have changed the session time out to 32400 in the factories.yml file
  in

  apps/front/config/factories.yml

  But still session timeout is happening after the default 30 Minutes
  (1800 Sec).

  ==
    user:
      class: myUser
      param:
        timeout:          32400
  ==

  Kindly help me in resolving this.

  Thanks

  Deepak Bhatia- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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: Session Timeout

2009-02-23 Thread DeepakBhatia

Hi Sven,

Thanks for the help, it is working now.

Regards

Deepak Bhatia

On Feb 23, 5:21 pm, cokker cokker...@googlemail.com wrote:
 have you uncommented the all above the mentioned section?

 greets
 Sven

 DeepakBhatia schrieb:



  Hi,

  I have changed the session time out to 32400 in the factories.yml file
  in

  apps/front/config/factories.yml

  But still session timeout is happening after the default 30 Minutes
  (1800 Sec).

  ==
    user:
      class: myUser
      param:
        timeout:          32400
  ==

  Kindly help me in resolving this.

  Thanks

  Deepak Bhatia- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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: Does sfDoctrineAdminGeneratorWithShowPlugin support table_method?

2009-02-23 Thread XinJia

Another request, could the show template add actions option, thanks.

- XJ

On Feb 23, 1:48 pm, jukea jkea...@gmail.com wrote:
 I don't know, i've never tried it :)

 as I said, go on the #symfony channel on freenode and look for
 pcahard

 On Feb 22, 7:50 pm, XinJia xinjia...@gmail.com wrote:

  Voila after svn update. Thanks Jukea. But there should be a little
  problem with _show.php, field name can't be shown. It seems the label
  of field must be set, isn't it? Thanks.

  - XJ

  On Feb 22, 8:14 am, jukea jkea...@gmail.com wrote:

   I remember talking to the developer about that and asked him to add
   table_method, which he told me he did. Are you checking in the svn
   repository ?

   the developper is pcahard and is hanging on irc . check freenode's
   #symfony

   On Feb 21, 8:58 am, XinJia xinjia...@gmail.com wrote:

Hi,

I don't know if you agree with me on admin generator has show . So
this plugin is very helpful, but I found table_method is not
available. Please help me. Thanks.

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



[symfony-users] Re: Symfony Deployment

2009-02-23 Thread Sid Bachtiar

Hey Tom,

I svn export to a folder locally (so I can test few things) then sync
that folder to the live server.

On Tue, Feb 24, 2009 at 6:18 PM, Tom Haskins-Vaughan
t...@templestreetmedia.com wrote:

 Sid,

 Why do you do an svn export rather than sync directly from your working
 copy? I'm not criticizing, just curious.

 Tom

 Sid Bachtiar wrote:
 svn export, symfony freeze, symfony sync ... basic stuffs

 I wonder how easy/hard it is to make symfony sync a bit more advanced,
 like adding ability to sync to multiple servers at once, execute
 tasks/batches, etc.

 On Tue, Feb 24, 2009 at 2:21 PM, Patrick Fong patr...@ddns.com.au wrote:
 Hi Guys,



 I’m interested to know what deployment methods everyone is using to deploy
 there SF projects ?



 I’m currently using svn checkouts but I’m not very happy with that and am
 looking for something a bit more advanced. I’ve had a quick read about
 Capistrano (rails deployment) which can also be used for php and am looking
 into using that possibly. Does anyone else have some suggestions or advice ?



 Cheers,

 Pat







 --
 Tom Haskins-Vaughan
 Temple Street Media: Design and Development for the Web
 t...@templestreetmedia.com | www.templestreetmedia.com


 




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