[symfony-users] Weird cache issues under load, sf 1.4 as svn:external on Windows Server 2008 Standard

2010-08-10 Thread Alexander Deruwe
Hey all,

My current symfony project has recently become quite popular.  While this is 
obviously good, load on the server has increased in tandem.
Since about 2-3 weeks, we are experiencing very strange sf config cache issues. 
 They seem most likely to happen under heavy load.
The first few times the cache got corrupted, I was able to trace the cause back 
to project_autoload.cache - classes were not being found.
Deleting this file every 5 minutes solved our problem for a whole week.
Without warning, last Sunday the site went down again, again due to cache 
corruption - this time I traced it back to a permission denied error somewhere 
in the config cache.
As we are running on Windows Server 2008 Standard and IIS7, I made sure IUSR 
had proper rights to the cache dir, which again seemed to solve the problem.
(I don't really know how the cache could work without that user having rights 
in the first place... Probably IUSR is a member of Users or Authenticated Users 
or whatever, I am no Windows expert...)

Yesterday evening, and this morning, again we were affected by a corrupted 
config cache:

Yesterday:
[09-Aug-2010 17:31:39] PHP Fatal error:  Class 'ExceptionReportFilter' not 
found in 
D:\site\cache\frontend\prod\config\modules_inbox_config_filters.yml.php on line 
30
[09-Aug-2010 17:31:39] PHP Fatal error:  Class 'ExceptionReportFilter' not 
found in D:\site\cache\frontend\prod\config\modules_chat_config_filters.yml.php 
on line 30
[09-Aug-2010 17:31:39] PHP Fatal error:  Class 'ExceptionReportFilter' not 
found in D:\site\cache\frontend\prod\config\modules_chat_config_filters.yml.php 
on line 30
... etc ...

This morning:
[10-Aug-2010 05:12:09] PHP Fatal error:  Call to undefined function image_tag() 
in D:\site\apps\frontend\modules\profile\templates\_details.php on line 20
[10-Aug-2010 05:12:12] PHP Fatal error:  Call to undefined function 
include_http_metas() in D:\site\apps\frontend\templates\member-layout.php on 
line 4
[10-Aug-2010 05:12:16] PHP Fatal error:  Call to undefined function image_tag() 
in D:\site\apps\frontend\modules\profile\templates\_details.php on line 20
... etc ...

At this point I am no longer sure what is going on - yesterday's problem seems 
to indicate autoload problems again, maybe this morning's too - possibly 
deleting the project_autoload.cache file periodically has not solved the 
original problem at all.

We don't do any sort of heavy caching - the config cache and a couple of 
templates, and that is basically it - I used to cache files from the db using 
sfFileCache but it's disabled now to reduce external factors influencing the 
cache.

I am wondering if anyone else ever experienced anything like this?  I talked to 
Stefan (Koopmanschap), and he has seen similar problems on a client's site, but 
we were unable to narrow things down enough to be sure where the problem is.
It doesn't help his client's site is *nix and sf 1.2 while I run on Windows and 
sf 1.4.
Stefan did check with Fabien, who confirmed that no recent commit present in 
both 1.2 _and_ 1.4 could be the cause.

This morning, I made a backup copy of the corrupted cache dir on the server 
(including project_autoload.cache).  I created a virtual disk on my workstation 
to replicate the prod environment with exact same paths etc to try and 
reproduce the problem locally.
I had to modify cache/frontend/prod/config/config_databases.yml.php to connect 
to my dev database, but other than that the cache dir was exactly as it was on 
the server.
I could not reproduce the problem - everything worked just fine with that cache 
dir.

Any input is at this point much appreciated.


Thanks,


Alexander

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


RE: [symfony-users] Re: Weird cache issues under load, sf 1.4 as svn:external on Windows Server 2008 Standard

2010-08-10 Thread Alexander Deruwe
Hey Gabriel,

Thanks for your reply.  With regards to point 2 below, isn't the config cache 
always located on the filesystem?


Alexander

-Oorspronkelijk bericht-
Van: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] 
Namens pghoratiu
Verzonden: dinsdag 10 augustus 2010 15:55
Aan: symfony users
Onderwerp: [symfony-users] Re: Weird cache issues under load, sf 1.4 as 
svn:external on Windows Server 2008 Standard

Hi!

Have no idea what could this be, in my opinion it is something related
to locking at the FS level.

My suggestion is to try one of the following:
1. Use a different cache storage class - sfSQLiteCache,
sfMemcacheCache or sfAPCCache.
2. Run code on a different machine or on a Linux/Unix system

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


RE: [symfony-users] Virtual columns admin-generator fail

2010-03-25 Thread Alexander Deruwe
You are adding a virtual field to the list view - there is no form
there.
Your partial will have access to an object with the name of the model
the admin generator is for. (I.e. if you generated a module for your Car
model, your partial will have a $car object to work with.)

Sorry if I am expressing myself poorly... In a bit of a hurry.


A.

 -Oorspronkelijk bericht-
 Van: symfony-users@googlegroups.com
[mailto:symfony-us...@googlegroups.com]
 Namens Txus
 Verzonden: woensdag 24 maart 2010 11:43
 Aan: symfony users
 Onderwerp: [symfony-users] Virtual columns admin-generator fail
 
 Hi,
 
 I would like to add a Virtual column to an admin generator list. I
 add a field with _ before the name and I created a partial to render
 this field. All works OK with render, but I try to access the $form
 varaivle I got an error. How can I obtain a ID value of the object
 without the $form? Why it doesn't works?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


[symfony-users] Doctrine question

2010-03-12 Thread Alexander Deruwe
I have the following yaml schema:

Profile:
  # blah blah

Channel:
  actAs: { Timestampable: ~ }
  columns:
sender_id: { type: integer, notnull: true }
receiver_id: { type: integer, notnull: true }
  relations:
Profile: { local: sender_id, foreign: id }

How can I relate receiver_id to the same Profile table as sender_id?

Cheers,


A.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


RE: [symfony-users] Doctrine question

2010-03-12 Thread Alexander Deruwe
That worked just fine!  Thanks a bunch.


A.

 -Oorspronkelijk bericht-
 Van: symfony-users@googlegroups.com
[mailto:symfony-us...@googlegroups.com]
 Namens Syam
 Verzonden: vrijdag 12 maart 2010 15:14
 Aan: symfony-users@googlegroups.com
 Onderwerp: Re: [symfony-users] Doctrine question
 
 Hi,
 
 Try this :
 
 Channel:
   actAs: { Timestampable: ~ }
   columns:
 sender_id: { type: integer, notnull: true }
 receiver_id: { type: integer, notnull: true }
   relations:
 SenderProfile: { local: sender_id, foreign: id, class: Profile}
 ReceiverProfile: { local: receiver_id, foreign: id, class:
Profile}
 
 
 //Syam

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


[symfony-users] Admin generator, embedded forms not saving their many-many's

2010-03-11 Thread Alexander Deruwe
Hello everyone,

When I embed Form B into Form A in an admin module, where Form B
contains a many-many relation, the changes to the many-many table (with
the sfWidgetFormSelectDoubleList, or even with the default widget) are
not saved to the db.
If I create a separate admin module directly for Form B's model (i.e. no
nesting/embedding forms), the changes to the many-many field are saved.

I've got the feeling I must be missing something obvious here...

Any ideas?


A.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


RE: [symfony-users] Admin generator, embedded forms not saving their many-many's

2010-03-11 Thread Alexander Deruwe
http://trac.symfony-project.org/ticket/5867

I'm using symfony 1.4 and have the same problem, fixed the same way.
Any update on what is going on here? Is it supposed to be fixed and am I
missing something?


A.

 -Oorspronkelijk bericht-
 Van: symfony-users@googlegroups.com
[mailto:symfony-us...@googlegroups.com]
 Namens Alexander Deruwe
 Verzonden: donderdag 11 maart 2010 13:35
 Aan: symfony-users@googlegroups.com
 Onderwerp: [symfony-users] Admin generator, embedded forms not saving
their
 many-many's
 
 Hello everyone,
 
 When I embed Form B into Form A in an admin module, where Form B
 contains a many-many relation, the changes to the many-many table
(with
 the sfWidgetFormSelectDoubleList, or even with the default widget) are
 not saved to the db.
 If I create a separate admin module directly for Form B's model (i.e.
no
 nesting/embedding forms), the changes to the many-many field are
saved.
 
 I've got the feeling I must be missing something obvious here...
 
 Any ideas?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


[symfony-users] Line endings in filter/form/model

2010-03-02 Thread Alexander Deruwe
Hey all,

Today I switched from a *nix development machine to a Windows 7 one.
When I regenerated the filter/form/model stuff, in the base files the
line ending was changed to crlf instead of lf.
Not really a problem, just a little messy svn-wise - is there a way to
force it to a certain style?

Cheers,


A.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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


[symfony-users] symfony 1.4, doctrine, i18n, another question

2010-02-22 Thread Alexander Deruwe

Hello again,

I have a table with a index: unique field that needs translations.
Setting the index: unique option somehow makes it impossible to have identical 
translations for two languages.

Is there a solution to this?
IMO setting any index: unique on any field in a translated table should make 
unique the language/field combo...

Thanks!


Alexander

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



[symfony-users] Admin generator ymfony 1.4 i18n question

2010-02-22 Thread Alexander Deruwe

Hey everyone,

I understand how to show all required languages in the add/edit/filter 
admin-generator forms with embedI18n().
An issue I am facing is that in the list view, I only see non-i18n fields (only 
the 'id' primary key in my case)...
How can I show either the current culture translation or a default translation 
('en') or maybe even all translations in the list view?

The Book (http://www.symfony-project.org/jobeet/1_4/Doctrine/en/19) is unclear 
about this, it seems.

Thanks!


Alexander

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



RE: [symfony-users] Re: Admin generator ymfony 1.4 i18n question

2010-02-22 Thread Alexander Deruwe
Ugh, thank you very much.

I tried this before I added /:sf_culture to my routes and it gave an error - 
and I assumed it was unrelated to the /:sf_culture thing.
Assumption is the mother of all screw ups, never more true.

Thanks again,


Alexander


-Original Message-
From: symfony-users@googlegroups.com on behalf of Dimitar
Sent: Mon 2/22/2010 11:46 AM
To: symfony users
Subject: [symfony-users] Re: Admin generator ymfony 1.4 i18n question
 
you can setup the fields in the generator.yml ... for example:

fields: [title]

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

winmail.dat

[symfony-users] Doctrine many-to-many behaviors

2009-05-20 Thread Alexander Deruwe

Hey all,

Been getting extremely confused by 
http://www.doctrine-project.org/documentation/manual/1_1/en/behaviors#creating-behaviors
 
  - What I am trying to do is make 'Contactable' behavior for entity  
like tables:

Company:
   actAs: { Contactable: ~ }
   columns:
 name: { type: string(255), notnull: true, unique: true }

Contactable then should create a CompanyContact and Contact table,  
having many-to-many relation with both Company and Contact.

Following the doc above, all I manage is to add an 'email' field to  
Company...

?php

class Doctrine_Template_Contactable extends Doctrine_Template
{
   public function initOptions()
   {
 $this-setOption('className', '%CLASS%Contact');
   }

   public function buildRelation()
   {
 $this-buildForeignRelation('Contacts');
 $this-buildLocalRelation();
   }

   public function setTableDefinition()
   {
 $this-hasColumn('email', 'string', 255, array('email' = true));
   }
}

Is what I am trying to do possible?  I would guess so, but I am pretty  
sure I am fundamentally misunderstanding something about behaviors...

A pointer or two would be much appreciated.

Thanks!


Alexander

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



[symfony-users] i18n in yml files

2009-04-27 Thread Alexander Deruwe

Hello,

Been struggling with figuring out how to get literal strings from yml  
files into xliff files.  The admin generator's generator.yml comes to  
mind:

   edit:
 title:  Edit Operator '%%name%%'
   new:
 title:  New Operator

How would those two strings be translated?


Alexander

--~--~-~--~~~---~--~~
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] saving embedded forms in 1.2

2009-04-22 Thread Alexander Deruwe
Hey everyone,

I have a problem saving the main form in the case where the embedded  
form fails for whatever reason (in my test case a double UNIQUE  
value).  It will trigger an exception that the foreign key field  
cannot be NULL in the main record:

SQLSTATE[23000]: Integrity constraint violation: 1048 Column  
'file_data_id' cannot be null

Am I missing something?

Cheers,


Alexander
--~--~-~--~~~---~--~~
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: saving embedded forms in 1.2

2009-04-22 Thread Alexander Deruwe
Hey Jon,

I actually do this already.  I'm thinking this is a case of user  
error?  Do I need to specify the unique validator (forgot what it is  
called exactly) in the embedded form's class myself?  Or does the form  
know it has to use the unique validator because I specified it in the  
doctrine schema?

As an aside I have another question...  I need to update other form  
fields in one of my updateXXXColumn() methods, but using  
$this['field'] = some_value triggers an exception.  Anyone know how to  
do this?


Alexander

On 22 Apr 2009, at 15:51, Jonathan Wage wrote:
 Make sure that the embedded form does not have a widget/validator  
 specified for the foreign key, otherwise u'll get a blank value set  
 to the object. These foreign keys are not set by the form, they are  
 set automatically by your orm. Since you have the widget, you  
 override this automatically value with a null one from the form,  
 causing the error.

 In your form do this before embedding it.

 unset($embeddedForm['file_data_id']);

 - Jon

 On Wed, Apr 22, 2009 at 8:46 AM, Alexander Deruwe ader...@aqs-carcontrol.be 
  wrote:
 Hey everyone,

 I have a problem saving the main form in the case where the embedded  
 form fails for whatever reason (in my test case a double UNIQUE  
 value).  It will trigger an exception that the foreign key field  
 cannot be NULL in the main record:

 SQLSTATE[23000]: Integrity constraint violation: 1048 Column  
 'file_data_id' cannot be null


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



[symfony-users] Re: saving embedded forms in 1.2

2009-04-22 Thread Alexander Deruwe

Eh never mind this one, $this-getObject() does exactly what it says  
it does.


Alexander

On 22 Apr 2009, at 16:02, Alexander Deruwe wrote:
 As an aside I have another question...  I need to update other form  
 fields in one of my updateXXXColumn() methods, but using  
 $this['field'] = some_value triggers an exception.  Anyone know how  
 to do this?


--~--~-~--~~~---~--~~
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: blank screen of death: syntax errors not showing with custom controller using apache rewrite. Please help.

2009-04-16 Thread Alexander Deruwe

On 16 Apr 2009, at 10:52, Roland Cruse wrote:
 Since its a php syntax error symfony logs are not much help...or have
 not been for me.

Try checking your apache (or whatever you use) error log, if you have  
access - it probably has more info.


Alexander

--~--~-~--~~~---~--~~
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: Logging in production

2008-12-16 Thread Alexander Deruwe

On 13 Dec 2008, at 07:02, Sumedh wrote:
 Thanks Alexander...I think it looks like a great solution...

 How much performance overheard it will be you think, for normal  
 reqest-
 response flow when there is no exception...? On the whole, should we
 put something like this in production?

I am running this in production without any problems, is about all the  
feedback I can give. :)


Alexander

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

2008-12-16 Thread Alexander Deruwe

Should I open a ticket for this, or?  I just noticed this is still  
present in latest svn trunk.


Alexander

On 11 Dec 2008, at 10:09, Alexander Deruwe wrote:
 Some hunting lead me to a likely typo.
 Please see attached patch.


 Alexander

 On 10 Dec 2008, at 12:01, Alexander Deruwe wrote:
 Hey all,

 I'm encountering some problems extending DbFinder...  I have two
 databases, propel and an older database that I have generated a  
 schema
 for.
 In the 'propel' database I want to create some custom finder:

 so I have lib/model/propel/EntryFinder.php:

 ?php

 class EntryFinder extends DbFinder
 {
  protected $class = 'Entry';
 }

 ?

 However when calling:

 $results = DbFinder::from('Entry', $conn)-find();

 I get an exception Undefined method *s::sfModelFinder() - this
 should probably read Undefined method
 sfModelFinder::getsetConnection() when the *s is replaced by %s but
 anyway I don't quite get what I am doing wrong...

 Any hints?

 Cheers,


 Alexander



--~--~-~--~~~---~--~~
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: Use sfUser attribute in view.yml

2008-12-16 Thread Alexander Deruwe

On 16 Dec 2008, at 11:34, François CONSTANT wrote:
 I would like to get a user attribute in view.yml (in order to modify
 the title).

 I know that I can use some php in this file but what I don't know is
 how to access the sf_user object. Within an action I could use $this-
 getUser() and set up a new config variable but I'm sure there is a
 way to access this user object in the view.yml.

I think you'll need to get the context first (I'm talking about 1.0  
here, it's the only version I use):

$context = sfContext::getInstance();
$user = $context-getUser();

This should work I think but I've not tested it.


Alexander
--~--~-~--~~~---~--~~
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: Logging in production

2008-12-16 Thread Alexander Deruwe

On 15 Dec 2008, at 08:25, kusum wrote:
 Hi,
 I tried this filter ,but after sfException occur this email code
 is not  working.Even it is not logging any constant mess in log file.

I think that's to do with using the environment variable  
SF_ENVIRONMENT - I've defined this in my apache config with SetEnv()  
so I can use just one controller and set the environment in the server  
config.
You will probably need to find another way to check for the 'prod'  
environment to make this work.


Alexander

--~--~-~--~~~---~--~~
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: Logging in production

2008-12-12 Thread Alexander Deruwe


On 12 Dec 2008, at 12:11, Bernhard Schussek wrote:
 On Fri, Dec 12, 2008 at 11:48 AM, Sumedh sumedh.inam...@gmail.com  
 wrote:
 Looks like the plugin is available only for 1.1 ...whereas we are
 using 1.0 ... :|
 The plugin has very little code and thus is easy to adapt/rewrite if
 you need to. I did when there was no Doctrine version available yet,
 and it took little time.

 You should really try it. It's not hard.

Alternatively you could use a filter:

class ExceptionReportFilter extends sfFilter
{
   public function execute($filterChain)
   {
 // Only send mail on first call
 if (!$this-isFirstCall())
 {
   $filterChain-execute();

   return;
 }

 // First call handling below
 try
 {
   $filterChain-execute();
 }
 catch (sfStopException $e)
 {
   throw $e;
 }
 catch (Exception $e)
 {
   if (SF_ENVIRONMENT == 'prod')
   {
 // Send mail or do whatever
   }

   // Finally, continue as normal
   throw $e;
 }
   }
}

And use the filter like this in filters.yml:

rendering: ~
web_debug: ~
security:  ~

# generally, you will want to insert your own filters here
exception_report:
   class: ExceptionReportFilter
   param:
 # you might pass from/to addresses etc as parameters

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


Alexander

--~--~-~--~~~---~--~~
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] Extending DbFinder

2008-12-10 Thread Alexander Deruwe

Hey all,

I'm encountering some problems extending DbFinder...  I have two  
databases, propel and an older database that I have generated a schema  
for.
In the 'propel' database I want to create some custom finder:

so I have lib/model/propel/EntryFinder.php:

?php

class EntryFinder extends DbFinder
{
   protected $class = 'Entry';
}

?

However when calling:

$results = DbFinder::from('Entry', $conn)-find();

I get an exception Undefined method *s::sfModelFinder() - this  
should probably read Undefined method  
sfModelFinder::getsetConnection() when the *s is replaced by %s but  
anyway I don't quite get what I am doing wrong...

Any hints?

Cheers,


Alexander

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



[symfony-users] Re: DbFinder and subqueries

2008-10-17 Thread Alexander Deruwe

On 16 Oct 2008, at 16:29, Alexander Deruwe wrote:
 SELECT * FROM survey WHERE id NOT IN (SELECT id FROM selected_survey)

Ok, so to keep others from possibly being the same kind of stupid I  
have been for a few hours...
DbFinder allows you to simply use Criteria or Doctrine_Query stuff by  
calling getQueryObject() - and even that is not really needed as the  
relevant methods are proxied in the finder.


Alexander

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



[symfony-users] DbFinder and subqueries

2008-10-16 Thread Alexander Deruwe

Hey all,

Started using DbFinder a little while ago - great great great plugin!   
Thanks a bunch.
Got one question though...  Is it possible to do subqueries?

Ex:

SELECT * FROM survey WHERE id NOT IN (SELECT id FROM selected_survey)

(simplified example of what I'm trying to achieve)

Cheers,


Alexander

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



[symfony-users] Re: Problem with forwarding in filters

2008-10-01 Thread Alexander Deruwe

On 01 Oct 2008, at 15:28, Yohan 'rouKs' G. wrote:
 I've got a problem with forwarding from a filter in sf 1.1...

 I do $this-getContext()-getController()-forward($module, $action),
 but i've got header problem (the web debug toolbar is loaded 2  
 times...)
 and no rendering of my action...

According to the symfony book, you could write:

$this-getController()-forward($module, $action);

Does this work?


Alexander.

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



[symfony-users] Re: Problem with forwarding in filters

2008-10-01 Thread Alexander Deruwe


On 01 Oct 2008, at 15:58, Alexander Deruwe wrote:
 On 01 Oct 2008, at 15:28, Yohan 'rouKs' G. wrote:
 I've got a problem with forwarding from a filter in sf 1.1...

 I do $this-getContext()-getController()-forward($module, $action),
 but i've got header problem (the web debug toolbar is loaded 2
 times...)
 and no rendering of my action...

 According to the symfony book, you could write:

 $this-getController()-forward($module, $action);

 Does this work?

Oops I didn't see the 'sf 1.1' on time there...  I'm not sure if what  
I wrote above is correct in that context, sorry...


Alexander

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



[symfony-users] Re: Rich date field is diabled when using AJAX

2008-05-29 Thread Alexander Deruwe

On 29 May 2008, at 14:12, Grégoire wrote:
 echo object_input_date_tag ($user, 'getDob', 'rich=true');

 I want the form to be displayed in a DIV, loaded with AJAX. But when I
 do that, the button next to the field, which is supposed to display
 the calendar, is always disabled, with the disabled html attribute:

 input id=dob type=text size=12 value=2013-07-20 name=dob/
 button id=trigger_dob onclick=return false disabled=disabled
 type=button.../button

 But if I load this form directly in a simple page, without AJAX,
 everything works fine...

 input id=dob type=text size=12 value=2013-07-20 name=dob/
 button id=trigger_dob onclick=return false type=button.../
 button
 script type=text/javascript

I think you will need to allow javascript in your ajax call by  
passing 'script' = true to it or something like that.


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



[symfony-users] Re: Conexion SQL SERVER

2008-02-14 Thread Alexander Deruwe

On 14 Feb 2008, at 08:50, [EMAIL PROTECTED] wrote:
 all:
 propel:
   class:  sfPropelDatabase
   param:
   dsn: mssql://usuario:pass@nombreservidor\nombreinstancia/ 
 basededatos

 propel.database= mssql
 propel.database.createUrl  = mssql://usuario:pass@servidor 
 \instancia/basededatos
 propel.database.url= mssql://usuario:pass@servidor 
 \instancia/

I do not speak Spanish...  However I could find this for you to have a  
look at:

http://www.symfony-project.org/forum/index.php/m/44036/

One of the posts in the middle of the page has more information about  
connecting to MSSQL.


Cheers,


Alexander

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



[symfony-users] LOC count

2008-02-14 Thread Alexander Deruwe

Hey all,

How do you calculate the LOC count for your symfony project?  Is there  
perhaps a plugin I don't know about?
I've been sortof wondering, after a year of working on this ever- 
changing project, what size it has become. :)

Cheers,


Alexander

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



[symfony-users] Re: LOC count

2008-02-14 Thread Alexander Deruwe

On 14 Feb 2008, at 11:49, Nicolas Perriault wrote:
 $ find . -name *.php |cat |wc -l

A poor man's LOC count. ;)
You'll find that:

$ find ./ -name '*.php' -exec cat {} \; | wc -l

works better.

Since there doesn't really seem to be a tool (other than sloccount 
(http://www.dwheeler.com/sloccount/) 
) I might try to expand on this a bit and/or make some sort of  
'symfony config' for sloccount.


Cheers,


Alexander

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



[symfony-users] Re: LOC count

2008-02-14 Thread Alexander Deruwe

On 14 Feb 2008, at 12:02, Nicolas Perriault wrote:
 $ find . -type f -name *.php -print0 | xargs -0 wc -l | grep total

Yes, that does the trick too. :)


Alexander

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



[symfony-users] Re: [sfGuardPlugin] design problems

2008-02-14 Thread Alexander Deruwe

On 12 Feb 2008, at 18:32, Georg Sorst wrote:
 This table also has an is_super_admin-flag already.

I don't think it is wise to use that for the described purpose as it  
will effectively allow those users with that flag access to the entire  
application...


Alexander

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



[symfony-users] Re: Vertical Line

2008-02-06 Thread Alexander Deruwe

On 06 Feb 2008, at 12:52, Birchandra Sanasam wrote:
 I want to write some text on vertical line. Can I write it?
 Please guide me if someone knows.

Sounds like you need Google. ;)

http://www.google.com/search?q=html+vertical+text


Alexander

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



[symfony-users] Re: Deactivate CSS stylesheets

2008-01-14 Thread Alexander Deruwe

On 14 Jan 2008, at 15:07, Sylvain Deloux wrote:
 How could I deactivate these stylesheets from my action ?

Use view.yml in the corresponding module:

blahSuccess:
   stylesheets: [-StylesheetOfYourChoiseWithoutTheExtension]

Notice the '-' there which instructs symfony to remove the stylesheet  
from the response.

Alternatively, use the sfResponse methods to remove the stylesheet.

Cheers,


Alexander

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



[symfony-users] Error 500

2008-01-10 Thread Alexander Deruwe

Hey guys,

I'm getting frequent error 500's on production which I am so far  
unable to reproduce on my dev environment.  Is there any way I can  
disable this global error 500 page and show the actual exceptions  
which are (probably) being thrown and causing these error 500 pages in  
my production environment?

Thanks,


Alexander

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



[symfony-users] Re: Installation on Leopard

2007-12-18 Thread Alexander Deruwe

On 18 Dec 2007, at 01:09, Teck wrote:
 Is anybody working on Leopard version?

I found that on Leopard the easiest way out is to run a development  
environment in Parallels/VMware and 'symfony sync' to it.  PHP on  
Leopard is version 5.2.4, but with so many things missing it's not  
even funny.


Alexander

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



[symfony-users] Re: Installation on Leopard

2007-12-18 Thread Alexander Deruwe

On 18 Dec 2007, at 11:46, Stefan Koopmanschap wrote:
 just use macports. I have set up my php and mysql using macports, and
 things are running fine. :)

Ah, might have a look - is PostgreSQL 7.4 in there too?


Alexander

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



[symfony-users] Re: i18n and MySQL

2007-12-13 Thread Alexander Deruwe

On 12 Dec 2007, at 21:39, eax wrote:
 I would like to translate my website in many languages thanks to
 symfony's i18n and use MySQL to store the translation data.

 I didn't understood the poor informations on the official Symfony
 website. I would like to know if somebody could tell me where I can
 get these informations.

http://www.symfony-project.org/book/1_0/13-I18n-and-L10n

That should get you started, though if this is what you refer to as  
poor information I wouldn't know where else to look. ;)


Alexander

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



[symfony-users] Re: symfony on a mac - display question

2007-12-12 Thread Alexander Deruwe

On 10 Dec 2007, at 17:03, Wang David wrote:
 for instance : the [propel-om] lines aren't there, but i know they're
 there they just can't be seen , because i can cut and paste it.  I
 know this is trivial, buts its a pain in my ass to always cut and
 paste the output.

I have noticed this too - just selecting the output works for me, it  
becomes slightly less transparent then. ;)
Other than that, I've no clue what causes it - except maybe the  
Terminal.app transparency options?  Haven't played around with that  
though...


Alexander

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



[symfony-users] Re: Problems with MySQL Connection

2007-12-07 Thread Alexander Deruwe

On 07 Dec 2007, at 14:53, [EMAIL PROTECTED] wrote:
 [wrapped: connect failed [Native Error: Access denied for user
 'web1713'@'83.220.144.13' (using password: YES)] [User Info: Array]]

Seems like you did not tell mysql to accept connections from web1713  
to your database.  Or maybe you did, but not for the correct IP  
address / network address?


Alexander

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



[symfony-users] Re: Flash messages not disappearing

2007-11-14 Thread Alexander Deruwe

On 14 Nov 2007, at 14:02, Angelina Talley wrote:
 Hello folks!

Hey there,

 I have a symfony app that's puzzling me. Currently, as an action  
 executes I set a flash message saying the action succeeded or  
 failed. I then return sfView::SUCCESS or just let the action  
 complete and return the success template. I have a spot in the  
 layout.php that looks for the flash message and displays it (code  
 for that section is below). However, if the user then clicks on a  
 new link or is redirected somehow, the message doesn't disappear. I  
 would think that a new request would clear the messages? Or is it  
 because it's layout.php that's displaying the message that it  
 doesn't go away?

 snippet from layout.php:

It's actually the code in your action which is most interesting. ;)

Have a look at: 
http://www.symfony-project.com/api/1_0/sfComponent#method_setflash
setFlash() takes a $persist parameter (true by default), which  
determines if the message stays till the next request.


Alexander

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



[symfony-users] adBlueprintPlugin released

2007-11-12 Thread Alexander Deruwe

Hey all,

I've released the beta version of adBlueprintPlugin - more information  
about this:
http://trac.symfony-project.com/wiki/adBlueprintPlugin

This plugin wraps the Blueprint CSS Framework version 0.6 - more  
information about the framework itself:
http://code.google.com/p/blueprintcss/

It says about itself:

Blueprint is a CSS framework, which aims to cut down on your CSS  
development time. It gives you a solid CSS foundation to build your  
project on top of, with an easy-to-use grid, sensible typography, and  
even a stylesheet for printing.

Feedback is very much welcome as this is the first plugin I've released.
IE support is currently still a bit wonky.


Alexander

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



[symfony-users] Re: Meta tags losing correct closing tag on POST?

2007-11-02 Thread Alexander Deruwe

On 02 Nov 2007, at 12:27, Ian P. Christian wrote:
 Alexander Deruwe wrote:

 Thanks for your reply Ian.  I apologise for getting back to this
 rather late.
 Err, not to play firestarter or anything, but this effectively means
 it's not possible to create valid XHTML 1.0 code with symfony...

 I've not used FillIn it for a while, but I had a look at the code for
 you  [1]

 The key line is here, in sfFillInFormFilter

  $method =
 'fillIn'.ucfirst(strtolower($this-getParameter('content_type',  
 'Html')));


 If you set your content_type to 'Xml' in your fill in settings, all  
 will
 be fine.

 As for creating a ticket... please do - this should be documented :)

Ok, all of this made me realize this is not limited to the meta tags  
but to the difference between XML and HTML in general.
Now I was able to punch Google's buttons in the correct way and came  
up with the following:

http://trac.symfony-project.com/ticket/1687

Check http://symfoniac.wordpress.com/2007/08/16/getting- 
sffillinformfilter-to-output-valid-xhtml/ for some background on this.

Aaanyway...

As suggested on Symfoniac and by you and Marek in this thread, adding:

fillin:
   class: sfFillInFormFilter
   param:
 content_type: xml

to the application's filters.yml file does not work for some strange  
reason.  At least for me...  I need to add a param 'name' for the  
form name, so the filter should be defined per module at least.  And  
when I don't have more than one form on a page, I don't name them.
This seems far from ideal to me...

Patching sfFillInFormFilter.class.php to change the default value  
works.  Fillin works and the output is XHTML.

Is there any reason why the content_type should be 'Html' by default  
in a framework where everything else is XHTML?
I'd like to kickstart the discussion requested at the end of 1687  
(even though I realize that the issue there with Ajax is a bit more  
complicated than this) by suggesting that the default value for  
content_type by 'Xml'.

Cheers,


Alexander

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



[symfony-users] Re: Meta tags losing correct closing tag on POST?

2007-11-02 Thread Alexander Deruwe

On 31 Oct 2007, at 17:39, Ian P. Christian wrote:
 This is a problem with fillin filter

 I'm not sure if the fillin filter has now been fixed to resolve this
 issue - can anyone else comment?

 the technical reason for this is that the fillin filter uses libxml
 libraries to parse the output in HTML mode, and whne it outputs the  
 code
 (again in HTML mode), the code is altered like you are seeing.

Thanks for your reply Ian.  I apologise for getting back to this  
rather late.

Err, not to play firestarter or anything, but this effectively means  
it's not possible to create valid XHTML 1.0 code with symfony...

I didn't find a ticket on this - shall I create one?


Alexander

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



[symfony-users] Re: Anyone using MAMP

2007-11-02 Thread Alexander Deruwe

On 01 Nov 2007, at 18:42, Lee Bolding wrote:
 On 1 Nov 2007, at 13:07, Tom Haskins-Vaughan wrote:

 I'm intrigued. Tell me more...

 Umm... there isn't much more to tell.

 This is the setup I currently have - I have the MAMP stack installed
 locally on my MacBook Pro for quick-n-dirty testing, and use TextMate
 for editing. Unfortunately, there are some functions and binaries
 that just don't work on the Mac, and the Mac isn't my ultimate
 deployment platform, so I have several Linux VMs configured in
 Parallels (it's like VMWare if you don't already know). I deploy my
 code to those VMs for development and testing. It can be awfully
 handy to be able to create your own private mirror of a live server
 for testing purposes - and if you want to do something drastic to it
 that may trash it, just right click and copy the VM so you have a
 disposable VM you can trash :)

 You can also easily play about with different server architectures -
 load balancing, clustering, mysql replicas, memcached nodes, that
 kind of thing - that is providing that you have enough RAM to run all
 of your VMs concurrently.

 I've come to rely on it so much that just today I've decided to
 upgrade my MacBook to a 24 iMac with 4GB RAM - I have some VMs that
 need more than the 2GB the MacBook can offer (and a 24 screen is
 going to be gorgeous to develop with).

 Have I convinced everyone to rush out and buy a Mac? ;)

If I didn't already develop on Mac, you would have. :-P

As it is, I can only second this - I do the same, and it works a charm!


Alexander


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



[symfony-users] Meta tags losing correct closing tag on POST?

2007-10-31 Thread Alexander Deruwe

Hey everyone,

Both in my production and development environments, using symfony  
1.0.8, on a normal GET request, the layout's

?php include_http_metas(); ?
?php include_metas(); ?

calls will output:

meta name=title content=blah blah /
meta name=robots content=noindex, nofollow /

which is correct.  However, on a POST request, they will output  
(again, in both environments):

meta name=title content=blah blah
meta name=robots content=noindex, nofollow

I had a quick look at the tag() function in helper/TagHelper.php,  
where the 3rd parameter specifies how the tag should be closed; it  
defaults to false and neither include_metas() or include_http_metas()  
in helper/AssetHelper.php modify this parameter...

Am I the only one seeing this?


Alexander

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



[symfony-users] Re: Use of APC in symfony

2007-10-30 Thread Alexander Deruwe

On 30 Oct 2007, at 13:30, Marco Schierhorn wrote:
 Fatal error: Cannot run code from this file in conjunction with non  
 encoded files in /kunden/80049_40667/webseiten/dcytest/apps/ 
 frontend/modules/account/templates/_accountCompany.php on line 114

I've never encountered this myself...  But it seems http:// 
forums.deftechgroup.com/showthread.php?t=1033 might have a fix?

Hope to have helped,


Alexander

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



[symfony-users] Re: Anyone using MAMP

2007-10-30 Thread Alexander Deruwe

On 28 Oct 2007, at 23:42, Kris Wallsmith wrote:
 Could it be as simple as clearing the symfony cache? Other than that,
 my experience with blank screens when trying to access a symfony
 project is that the library and data folder variables in /config/
 config.php aren't configured accurately.

Yep, or maybe you have to run fix-perms?  I get blank pages sometimes  
when some permissions are not in the way symfony likes it...


Alexander

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



[symfony-users] Re: Flexy Templating Plugin?

2007-09-05 Thread Alexander Deruwe

On 05 Sep 2007, at 17:32, Kiril Angov wrote:
 I am sorry I will changing the topic a little but by reading your
 reasons to use Flexy and your concerns about it being developed and  
 PHP5
 compatible why not take a look at PHPTal. There is a not very recent
 symofny plugin for it that I took a look at some time ago.

 http://tracfort.jp/projects/symfony-phptal/wiki

 You get all the benefits of using WYSIWYG editors, you get the symfony
 php helpers, loops, etc. I am personally more into using template
 engines that do not depend on editors rather than Zend Studio so I am
 using the template engine I ported from Ruby
 (http://trac.symfony-project.com/trac/wiki/sfHamlViewPlugin).

 Again, sorry for the out of topic email :)

I'll take this opportunity to ask another related though off topic  
question...
Generally speaking, if the developer(s) are also the designer(s) (no  
matter how awful that may turn out to be ;) as in my case, would you  
still recommend using a template engine?

Cheers,


Alexander

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



[symfony-users] Re: automated code audit

2007-09-05 Thread Alexander Deruwe

On 29 Aug 2007, at 20:29, Tristan Rivoallan wrote:
 On 8/29/07, Jack Bates [EMAIL PROTECTED] wrote:
 I wonder if any code already exists for checking symfony's code
 standards?

 pear's codesniffer can provide a very good basis for implementing  
 this.

 http://pear.php.net/package/PHP_CodeSniffer

I'm using symfony's coding standards for my project too.  Jack, are  
you working on this?  If not, I might put some extra time in this -  
but I'd hate to be duplicating efforts.

Perhaps someone already has symfony coding standard Sniffs?


Alexander

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



[symfony-users] Migrations

2007-09-04 Thread Alexander Deruwe

Hello,

I've used the code from http://trac.symfony-project.com/trac/wiki/ 
Migrations to implement a basic migration system for my project.   
Even though (as mentioned in the page) it currently relies on a lot  
of handcoded SQL, it's working marvelously.

I'd now like to release this as a plugin...  But I don't know who  
wrote the original code and would like (or even need) permission  
before releasing.
Please, original author, speak up. :)  I'm currently using the code +  
my changes as part of my lib/ folder, and holding off on packaging as  
plugin until I hear back.

Cheers,


Alexander

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



[symfony-users] Re: Trac down

2007-08-21 Thread Alexander Deruwe

On 20 Aug 2007, at 03:41, Kiril Angov wrote:
 http://trac.symfony-project.com/trac

 500 - Internal Server Error

Anyone looking at this already?  I'd like to get to the plugins. ;)


Alexander

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



[symfony-users] Re: sfSimpleForumPlugin

2007-08-02 Thread Alexander Deruwe

On 02 Aug 2007, at 00:40, Stereo wrote:
 [propel-sql] Processing: generated-schema.xml
 [propel-sql] Processing: generated-sfGuardPlugin-schema.xml
 [propel-sql] Processing: generated-sfSimpleForumPlugin-schema.xml
 Execution of target sql-template failed for the following reason: /
 usr/local/php5/lib/php/symfony/vendor/propel-generator/build-
 propel.xml:187:1: ERROR!! Attempt to set foreign key to nonexistent
 table, sf_guard_user!
 [phingcall] /usr/local/php5/lib/php/symfony/vendor/propel-generator/
 build-propel.xml:187:1: ERROR!! Attempt to set foreign key to
 nonexistent table, sf_guard_user!

Add the following to your schema.yml:

propel:
   _attributes: { package: plugins.sfGuardPlugin.lib.model }
   sf_guard_user:
 _attributes: { phpName: sfGuardUser }
 id:

propel:
your own schema goes here 

Now you can link to sf_guard_user and 'propel-build-all' should work  
just fine.

Cheers,


Alexander

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



[symfony-users] Re: Started dutch translation of the symfony book - any help welcome

2007-08-02 Thread Alexander Deruwe

On 02 Aug 2007, at 13:19, Stefan Koopmanschap wrote:
 Hello everyone,

 I just made a start with the dutch translation of the book:
 http://trac.symfony-project.com/trac/wiki/Documentation/nl_NL/book/1.0

 If there are any other dutchies here that feel like helping me out,
 feel free to help. Preferably, to not work on the same things, start
 with a chapter that has yet to be translated.

If I find the time - or maybe on a weekend - I will definitely join  
in this effort!
(By the way...  I think this can be duplicated as nl_BE too (or is it  
be_NL?))


Alexander

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



[symfony-users] Re: Error in Symfony 1.0.6?

2007-08-01 Thread Alexander Deruwe

On 01 Aug 2007, at 16:57, Marc Torres wrote:
 I've just installed symfony from pear, and it installs version  
 1.0.6, but when I run the symfony command I get:

 Parse error: parse error in /Applications/xampp/xamppfiles/bin/ 
 symfony on line 34

 is it something break? Anyone out there has tried the 1.0.6 version?

Yup - no problem here.  And also on OSX, though not using XAMPP...
Have you checked what is on line 34?  (Or 35 possibly because of the  
hash-bang...)


Alexander

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



[symfony-users] Re: symfony sync broken

2007-07-30 Thread Alexander Deruwe

On 30 Jul 2007, at 13:43, Thierry wrote:
 i get the impression symfony sync is broken, at least it's not working
 for me and in the forums people seem to be also having trouble and
 using workarounds.

 what is the current status on sync?

Works for me.  Does 'plain' rsync and/or ssh work for you?  I've not  
done anything special to get sync to work.
What exactly is not working?  The 'sync' command itself, or does the  
result of the sync not function as it should?  If the latter, are you  
'freeze'ing your project before the sync and 'unfreeze'ing afterwards?


Alexander

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



[symfony-users] Re: symfony sync broken

2007-07-30 Thread Alexander Deruwe

On 30 Jul 2007, at 15:17, Thierry wrote:
 SSH is working fine,
 rsync command is available

 running as follows:

 C:\wamp\www\jobV2symfony sync production
 exec  rsync --progress --dry-run -azCnet:/home/topdown/ 
 symfony/job/

 stays nice and completely stuck there

That's launching a dry-run I think...

Can you try 'symfony sync production go'?


Alexander

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



[symfony-users] Re: symfony sync broken

2007-07-30 Thread Alexander Deruwe

On 30 Jul 2007, at 17:34, Thierry wrote:
 I've been trying to find the problem by seeing what rsync command
 symfony is actually using

 symfony production go, does the following:
 rsync --progress  -azC --force .../home/topdown/symfony/jobrsync
 rsync --progress  -azC --force --delete --exclude-from=config/
 rsync_exclude.txt
 -e ssh -p22 ./ [EMAIL PROTECTED]:/home/topdown/symfony/
 jobrsync

 I do not know anything about rsync but when i change it to
 rsync --progress  -azC --force [EMAIL PROTECTED]:/home/topdown/
 symfony/jobrsync

 it seems to do something

Without more details about the setup on your server and client it's  
impossible to debug this...
My final two observations...

Maybe you have some error in rsync_exclude.txt (doubtful, I guess, as  
it's just a listing of file patterns) or your ssh server is not on  
port 22 (doubtful too, I'm sure...)?

You are running symfony version 1.0.5, right?


Alexander

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



[symfony-users] Disabling default module

2007-07-25 Thread Alexander Deruwe

Hey everyone,

After disabling the default module, when trying to access it I get an  
exception 'default module not enabled' - on production this goes to a  
symfony error 500 page.
Why does this not just cause a 404?

I think I can change the error 500 page by updating web/error500.php,  
but that's beside the point - I've disabled the default module to get  
rid of it, not to get exceptions about it being disabled.

Is there any way around this?

Cheers,


Alexander

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



[symfony-users] Re: Disabling default module

2007-07-25 Thread Alexander Deruwe

On 25 Jul 2007, at 17:43, Stefan Koopmanschap wrote:
 Hi,

Hey there,

 Tried accessing the default module through the _dev version of your
 site? That will tell you which exception happens.

Yup.  The exception's message is 'default module not enabled' - not  
sure what exactly the type of the Exception object is...

 There's a fair chance though that you get the exception because the
 404 handling (IIRC) goes through the default module, unless you've
 created your own 404 handling. So it should give a 404 but the module
 handling the 404 is gone, resulting in a 500.

No, I have changed settings.yml so 404 is handled by one of my modules.

 keep in mind, I'm just thinking out loud here, I'm not entirely sure
 this is it, but this may just be it.

I think I have gone through the required changes for disabling the  
default module.  It is definitely disabled now (i.e. index.php/ 
default/index and such are gone), but replaced by this exception.
Thanks all the same for thinking along here, though. :)

Is this the desired behaviour or should I file a bug?  I'm tempted  
to, because this way totally disabling the default module is pretty  
much impossible.


Alexander


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



[symfony-users] observe_field()

2007-07-19 Thread Alexander Deruwe

Hey everyone,

Is there any easy way to have an observe_field() call also be  
triggered when an update is made through javascript?  In my case  
selecting a value in one select tag will update the next one (I chain  
4 together this way).  If by chance the next select tag only has to  
contain one element I do not wish to send an empty one also, but this  
means observe_field() doesn't see the change to the one element and  
my next select tag doesn't update.
All ideas are welcome.

Cheers,


Alexander

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



[symfony-users] Re: Class not autoloaded in plugin

2007-07-18 Thread Alexander Deruwe

On 18 Jul 2007, at 22:15, Nicolas CHARLOT wrote:
 The class MyTools is located at /apps/frontend/modules/mymodule/lib/ 
 MyTools.class.php.

 In an action of a plugin (/plugins/myplugin/modules/mymodule/ 
 actions/actions.class.php) , the class doesn't seems to be autoloaded.

I noticed the same.
In my action I do the following: require_once(dirname(__FILE__) .  
'/../lib/MyTools.class.php');

(FWIW, sfGuardPlugin follows the same strategy...)

Cheers,


Alexander

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



[symfony-users] Re: relation between select_tags

2007-07-11 Thread Alexander Deruwe

On 11 Jul 2007, at 16:36, Jony dos Santos Kostetzer wrote:
 that's a good ideia.. but not so simple..  did you create a  
 javascript to remove and after that add all new elements of the  
 select?
 there should be an easier way, does anybody know a fast way to do it?

My Ajax action returns a JSON array which is used by a javascript  
function to repopulate the second select tag, yes.

--
Alexander Deruwe - AQS CarControl CVBA
Network  System Administration, Software Development  Support

Bredabaan 528 - 2930 Brasschaat, Belgium
Mobile +32(0)474356372
Email [EMAIL PROTECTED]



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



[symfony-users] Re: relation between select_tags

2007-07-11 Thread Alexander Deruwe

On 11 Jul 2007, at 16:42, Alexander Deruwe wrote:
 Alexander Deruwe - AQS CarControl CVBA
 Network  System Administration, Software Development  Support

 Bredabaan 528 - 2930 Brasschaat, Belgium
 Mobile +32(0)474356372
 Email [EMAIL PROTECTED]

Oops, I don't like to post with signature attached.  Way to official. ;)


Alexander

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



[symfony-users] object_checkbox_tag() issue

2007-07-07 Thread Alexander Deruwe


'ello,

Using code from the Guide to easily update objects from the request  
like so:

   $object-fromArray($this-getRequest()-getParameterHolder()- 
 getAll(), BasePeer::TYPE_FIELDNAME);
   $object-save();

This seems to have problems with object_checkbox_tag() fields, in the  
sense that they do not appear in the parameter holder at all when  
they are not checked.  Is this the desired behaviour?  My edit  
operation will never set boolean fields to false this way as they are  
ignored and left on true.

Perhaps I am missing something?

Cheers,


Alexander

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



[symfony-users] Re: Conditional validation

2007-07-04 Thread Alexander Deruwe

On 04 Jul 2007, at 15:27, Matthias Nothhaft wrote:
 You should write one edit.yml with all your possible validators and  
 put
 these condition checks into your own validators.

 Simply return true in your validator if the field not needs to be
 checked. If you need required checks on conditional fields you  
 have to
 put these checks also in your own validators.

Thanks, Matthias, that could work indeed!  Will have a go at this.


Alexander

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



[symfony-users] Re: Workig with admin generator templates

2007-06-26 Thread Alexander Deruwe

On 26 Jun 2007, at 16:22, Haris Zukanovic' wrote:
 How can I make it regenerate the cache on each call without having to
 clear the cache?

I may be totally misreading you, but what you are asking seems to be  
how things work when caching is turned off...


Alexander

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



[symfony-users] Re: sfGMapsPlugin : google maps integration in Symfony

2007-06-15 Thread Alexander Deruwe

On 15 Jun 2007, at 14:24, Matthias Nothhaft wrote:
 elbouillon wrote:
 http://trac.symfony-project.com/trac/wiki/sfGMapsPlugin
 I did't have a look at it yet but I suggest to rename it to

 sfGoogleMapsPlugin

Seconded.

And this sounds really useful, and I could use it for my current  
project.  Won't be getting to it for a while, but will keep you  
updated. ;)


Alexander

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



[symfony-users] Re: SfGuardPlugin

2007-06-13 Thread Alexander Deruwe

On 13 Jun 2007, at 20:30, Nicolas CHARLOT wrote:
 nathieb a écrit :
 Hey, I try tu use sfGuardPlugin and to extend the sfGuardAuth with  
 the sfGuardUserProfile. But when i use the official documentation,  
 there is a trouble. the utilisation of an foreign key is  
 impossible with propel, if somebody can help me.
 As you should have seen : WARNING: You cannot define the foreign  
 key because the sf_guard_user table is not in the same schema file  
 (this is a Propel limitation)..

 So you have to use an unique index named as you want.

I'm not sure anymore who came up with this originally...  But you can  
link to the sf_guard_user table just fine by adding a second propel  
declaration to schema.yml as such:

propel:
   _attributes: { package: plugins.sfGuardPlugin.lib.model }
   sf_guard_user:
 _attributes: { phpName: sfGuardUser }
 id:

Now you can link to sf_guard_user as you normally would with any  
other foreign key.
I've been using this ever since it was first posted as a solution to  
this list without any problems whatsoever.

Hope to have helped,


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



[symfony-users] Re: Symfony over ssl

2007-05-14 Thread Alexander Deruwe

On 14 May 2007, at 17:11, David Hodgson wrote:
 Ah this is perfect! Thanks a lot for you help

 Matthias Nothhaft wrote:
 David Hodgson wrote:
 Hey there!

 I've scoured the documentation and forums but cant find a solution.

 My entire Symfony project is hosted on https. However, symfony keeps
 redirecting to http.

 Is there any way i can persuade symfony to use https for all urls?

 I could write an apache RewriteCond but this seems a bit hacky.

 Maybe the sfSslRequirementPlugin is what you are searching for:
 http://trac.symfony-project.com/trac/wiki/sfSslRequirementPlugin

Even though you solved your problem already, I'd like to note I run  
symfony over SSL without that plugin just fine, without any  
reconfiguration.
Actually, I have my dev environment on HTTP and prod on HTTPS, with  
the exact same configuration.  This is using symfony 1.0.2.


Alexander

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



[symfony-users] Re: Symfony over ssl

2007-05-14 Thread Alexander Deruwe

On 14 May 2007, at 18:10, David Hodgson wrote:
snip

I made no specific configuration changes.  My app just uses https on  
the prod server or http on my dev laptop.
Also, I don't see anything specific wrong with the code you  
pasted...  Sorry I can't be of more help!


Alexander


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



[symfony-users] Criteria problem?

2007-04-28 Thread Alexander Deruwe

Hey everyone,

I have the following code in a Peer method:

   $criteria-clearSelectColumns();

   self::addSelectColumns($criteria);
   sfGuardUserPeer::addSelectColumns($criteria);
   TableAdamPeer::addSelectColumns($criteria);
   TableBartPeer::addSelectColumns($criteria);
   TableClaricePeer::addSelectColumns($criteria);
   TableDavidPeer::addSelectColumns($criteria);
   TableInQuestionPeer::addSelectColumns($criteria);

   $criteria-addJoin(self::TABLE_ADAM_ID, TableAdamPeer::ID);
   $criteria-addJoin(TableAdamPeer::TABLE_BART_ID, TableBartPeer::ID);
   $criteria-addJoin(TableAdamPeer::TABLE_DAVID_ID,  
TableDavidPeer::ID);
   $criteria-addJoin(TableBartPeer::TABLE_CLARICE_ID,  
TableClaricePeer::ID);
   $criteria-addJoin(self::OWNER_ID, sfGuardUserPeer::ID);
   $criteria-addJoin(self::TABLE_IN_QUESTION_ID,  
TableInQuestionPeer::ID, Criteria::LEFT_JOIN);

The SQL that results from this keeps putting the LEFT JOIN with  
table_in_question after the last table in the FROM statement  
(sf_guard_user), which causes PostgreSQL to throw an error.
I'd expect it to appear as:

FROM self LEFT JOIN table_in_question ON (self.table_in_question_id  
= table_in_question.id), table_adam, table_bart, table_clarice,  
table_david, sf_guard_user ...

Instead what I'm getting is:

FROM self, table_adam, table_bart, table_clarice, table_david,  
sf_guard_user LEFT JOIN ...

I tried moving the addJoin() statement in question around, but that  
doesn't change anything...

Any pointers would be much appreciated. :)

Cheers,


Alexander




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



[symfony-users] Allow update only by owner

2007-04-26 Thread Alexander Deruwe

Hey everyone,

I found a forum thread on the subject of only allowing record edits  
by the owner from March 2006:
http://www.symfony-project.com/forum/index.php/m/6580/?srch=owner 
+credential

Is there by now perhaps a better way to achieve the same functionality?

Cheers,


Alexander

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



[symfony-users] Re: objects_for_select() question

2007-04-17 Thread Alexander Deruwe

On 17 Apr 2007, at 17:23, Jonathan H. Wage wrote:
 The options argument for object_for_select() accepts an option of
 include_blank=true.

 http://www.symfony-project.com/api/symfony/helper/ObjectHelper.html

Oh man...  I apologise...

Thanks a lot for the pointer!


Alexander

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



[symfony-users] objects_for_select() question

2007-04-17 Thread Alexander Deruwe

Hey everyone,

I was wondering if there is any way to have the objects_for_select()  
helper add an empty value as the first entry?
Right now it defaults to the first entry from the lot - which is  
somehow tricky when you want to observe this select tag and update  
some form element depending on the value, as this first selection  
will not trigger the observe_field() helper.

Or maybe I am missing something?  I've been known to do that  
sometimes...

Cheers,


Alexander

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



[symfony-users] Re: when the session expires and the browser is waiting for an asynchronous response...

2007-04-02 Thread Alexander Deruwe

On 02 Apr 2007, at 11:37, Hadrien Boyé wrote:
 Hello,

 i use the sfBasicSecurityUser for the management of the user  
 authentication. the session time is set to 1 hour (3600 sec.) my  
 application is configured in order to redirect to the login form  
 when session time has expired.

 the problem is : when the application performs a remote action  
 (via an asynchronous request) and find that the session time has  
 expired, the app returns the login form as an asynchronous response  
 to the client. then the javascript update a part of the DOM with  
 the login form... what appear on the screen can be quite funny and  
 disturbing.

 is there a simple way to force the browser reloading the whole page  
 with the redirected url even if it is waiting for an ajax response  
 from the server ?

 Thanks.

 Hadrien

I think this old thread should provide enough information:
http://groups.google.com/group/symfony-users/tree/browse_frm/month/ 
2007-2/85630912bd159e08?rnum=451start=250_done=%2Fgroup%2Fsymfony- 
users%2Fbrowse_frm%2Fmonth%2F2007-2%3Fstart%3D250%26sa%3DN% 
26#doc_6e916034551e194e

What a URL...  Hope it didn't get broken up there.


Alexander


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



[symfony-users] sfPropelPager and LEFT JOINs

2007-04-02 Thread Alexander Deruwe

Good afternoon,

I'm puzzled by something...  I'm using sfPropelPager to show data  
from a table.
The Criteria object I supply to sfPropelPager adds a few LEFT JOINs  
and selects some extra columns from the joined in tables.
How am I supposed to access these extra columns later on in the  
template?  Do I have to make sfPropelPager use doSelectRS() and if so  
how?
Or is there something else that I am overlooking?  I have the feeling  
the answer is going to be deadly obvious but I'm just not seeing it  
right now...

Any pointers are much appreciated...


Alexander


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



[symfony-users] Re: sfPropelPager and LEFT JOINs

2007-04-02 Thread Alexander Deruwe

On 02 Apr 2007, at 17:06, [EMAIL PROTECTED] wrote:
 You should use
 $pager-setPeerMethod('doSelectJoin') ;
 and probably:
 $pager-setPeerCountMethod('doCountJoinXXX') ;

Yep, that was it!  Thanks so much.


Alexander

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



[symfony-users] batches

2007-03-13 Thread Alexander Deruwe

Hey everyone,

Just a little question to add to my understanding of batches...
I created a batch with 'symfony init-batch skeleton batch name  
app name', which creates a file sortof like this in batch/

---
define('SF_ROOT_DIR',realpath(dirname(__FILE__).'/..'));
define('SF_APP', 'app name');
define('SF_ENVIRONMENT', 'dev');
define('SF_DEBUG',   1);

require_once 
(SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.SF_APP.DIREC 
TORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'config.php');
---

I can then add my batch code to this.
When run, this batch will run in the dev environment, which is ok  
while I'm working on my project.  Which leads me to my question...
When deploying, do I need to change all my batches to the prod  
environment? Or how is this commonly done?

The thing I'm trying to achieve is a symfony batch script that can be  
run from cron, and would be needed in production after it is developed.

Cheers,


Alexander Deruwe

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