[symfony-users] sql join

2008-05-06 Thread kusum
hi i am joining two table a and b.i want to print the data of b table.how i can do this in symfony. it is giving error. Object of class "b" cannot be converted to string (Please create a __toString() method) --~--~-~--~~~---~--~~ You received this message b

[symfony-users] Re: Turning off session auto_start causes flash to not work

2008-05-06 Thread Balaji Srinivasan
Thanks for your reply Eno. I check if the session exists (ie I create a new session only if session_id() returns an empty string). I didnt know that getAttribute and setAttribute will not work if i turn off session auto_start. What should I do to have it persist the complete session informa

[symfony-users] Re: Turning off session auto_start causes flash to not work

2008-05-06 Thread Eno
On Mon, 5 May 2008, Balaji Srinivasan wrote: > So I turned off session. auto_start in factories.yml. > In my preExecute method, I set up a session using session_id() call. > > Now it looks like the flash parameters are no longer being carried > from one call to the next. Also somehow the sessi

[symfony-users] How to filter admin_double_list content?

2008-05-06 Thread rafix
I´m developing an app that has a relationship m:n, one of the entities of this relationship contains a compound key. How can I show in an admin_double_list a listing of elements of the entity of the compound key, filtered by one of their keys? My schema.xml

[symfony-users] Re: How I get the Database Connection ...

2008-05-06 Thread Reynier Perez Mira
Yes it is, I founded few hours ago when I post the message, anyway thanks Ing. Reynier Pérez Mira Grupo Soporte al Desarrollo - Dirección Técnica IP > -Original Message- > From: symfony-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of Whisller > Sent: Tuesday, May 06, 2

[symfony-users] Re: How I get the Database Connection ...

2008-05-06 Thread Whisller
Propel::getConnection(); Is it, what you want? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group,

[symfony-users] Loosing partial after validate

2008-05-06 Thread Reynier Perez Mira
Hi every: I have the following code at preExecute() function: [code] public function preExecute() { if ( $this->getModuleName() == "geslicsoft") { $this->mostrar_parcial = "geslicsoft"; } } Then in the "layout.php" I have this other code: [code] When I execute the action, normally,

[symfony-users] Re: Accessing model from helper

2008-05-06 Thread Tom Haskins-Vaughan
Ah, of course! I knew I'd seen it somewhere! Cheers, Nicolas! Nicolas Perriault wrote: > Le 6 mai 08 à 22:28, Tom Haskins-Vaughan a écrit : > >> So I there shouldn't be any problem accessing the model (having a peer >> method) inside the helper? > > > Nope, just have a look to symfony's Objec

[symfony-users] Re: problem in batch script

2008-05-06 Thread Hadubard
yeah, you're right. It's working now. I knew it was something stupid ;-) thanks, Pierre Am 06.05.2008 um 22:13 schrieb Zsolt Takacs: > > Hi > > I think you have php4 installed too, and php points to it. > check 'php -v' to see the version or just try 'php5 batch_name.php' > > Zs. > > Hadubard w

[symfony-users] Symfony and credentials

2008-05-06 Thread Reynier Perez Mira
Hi every: I've been reading this "Action Security" but I can't find what I'm looking for. Any here know if is possible use credentials for secure a entire module or application (backend)? For now my modules are small, at least 20 actions, but they are growing up and really faster: I use sfGuard

[symfony-users] How to cache differently based on parameters not in the request?

2008-05-06 Thread Dennis Verspuij
The sfViewCacheManager creates cache keys based on parameters that appear in the request. Is there any way to apply some custom parameters to each cached action, component and/or partial, without messing with the internal uri? For example, I keep currently selected language and time zone for a vi

[symfony-users] Re: Accessing model from helper

2008-05-06 Thread Tom Haskins-Vaughan
Yes, that's what I was thinking, but I want to be able to only pass the photo_id rather than have to pass the src, the alt and the href. Jorge Vargas wrote: > On Tue, May 6, 2008 at 4:15 PM, Tom Haskins-Vaughan > <[EMAIL PROTECTED]> wrote: >> Well, here's what I want to do. I want to be able to

[symfony-users] Re: Accessing model from helper

2008-05-06 Thread Jorge Vargas
On Tue, May 6, 2008 at 4:15 PM, Tom Haskins-Vaughan <[EMAIL PROTECTED]> wrote: > > Well, here's what I want to do. I want to be able to upload photos to my > website. Then I can display them in a gallery. Fairly straightforward. > But I'd also like to be able to hard code some of the uploaded p

[symfony-users] Re: Accessing model from helper

2008-05-06 Thread Nicolas Perriault
Le 6 mai 08 à 22:28, Tom Haskins-Vaughan a écrit : > So I there shouldn't be any problem accessing the model (having a peer > method) inside the helper? Nope, just have a look to symfony's ObjectHelper.php functions to reassure yourself :) ++ -- Nicolas Perriault http://prendreuncafe.com Té

[symfony-users] Re: Accessing model from helper

2008-05-06 Thread Tom Haskins-Vaughan
Merci, Nicolas. So I there shouldn't be any problem accessing the model (having a peer method) inside the helper? Nicolas Perriault wrote: > On Tue, May 6, 2008 at 10:15 PM, Tom Haskins-Vaughan > <[EMAIL PROTECTED]> wrote: > >> So the question is, do I use a peer method to output the html or

[symfony-users] Re: Accessing model from helper

2008-05-06 Thread Nicolas Perriault
On Tue, May 6, 2008 at 10:15 PM, Tom Haskins-Vaughan <[EMAIL PROTECTED]> wrote: > So the question is, do I use a peer method to output the html or create > a helper to do this? To me, templating should never sit in the model. I'd rather make a helper, a partial or a component for that purpose.

[symfony-users] Re: Accessing model from helper

2008-05-06 Thread Tom Haskins-Vaughan
Well, here's what I want to do. I want to be able to upload photos to my website. Then I can display them in a gallery. Fairly straightforward. But I'd also like to be able to hard code some of the uploaded photos into my website. So I'd have the following: New House Which would outp

[symfony-users] Re: problem in batch script

2008-05-06 Thread Zsolt Takacs
Hi I think you have php4 installed too, and php points to it. check 'php -v' to see the version or just try 'php5 batch_name.php' Zs. Hadubard wrote: > Hi, > > might be a stupid problem, but can anybody tell me, why I get the > following error when trying to run a batch script directly from t

[symfony-users] Re: Accessing model from helper

2008-05-06 Thread Thomas Rabaix
Hello, I am not sure what you mean by access the model. but an helper can have model as argument to perform a specific task. You cannot do any logic in a helper. Thomas On Tue, May 6, 2008 at 9:58 PM, Tom Haskins-Vaughan <[EMAIL PROTECTED]> wrote: > > I'm about to start writing a helper. Is

[symfony-users] Accessing model from helper

2008-05-06 Thread Tom Haskins-Vaughan
I'm about to start writing a helper. Is there any reason why I shouldn't access the model from a helper? TIA Tom --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send e

[symfony-users] Re: symfony propel-dump-data - Maximum function nesting level

2008-05-06 Thread Marco Schierhorn
Thanks for your help. I have increased now the memory limit and disabled the xdebugger. Now i get this message : [EMAIL PROTECTED]:~/workspace/decayenne$ symfony propel-dump-data frontend mokosch.yml >> propeldumping data to "/home/marco/wo...enne/data/fixtures/mokosch.yml" Segmentation faul

[symfony-users] Re: problem in batch script

2008-05-06 Thread Eno
On Tue, 6 May 2008, Hadubard wrote: > Problem arises due to the execution of config.php as far as I found out. What does config.php look like? Which version of PHP5? -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[symfony-users] problem in batch script

2008-05-06 Thread Hadubard
Hi, might be a stupid problem, but can anybody tell me, why I get the following error when trying to run a batch script directly from the command line with "php batch_name.php" from the symfony/batch directory? Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR'

[symfony-users] Re: symfony propel-dump-data - Maximum function nesting level

2008-05-06 Thread Thomas Rabaix
try to remove your debugger ... Thomas On Tue, May 6, 2008 at 6:24 PM, Olivier LOYNET <[EMAIL PROTECTED]> wrote: > > Hi, > > Try in your php.ini to increase your memory. > Be careful, there are two php.ini, one for apache, on for cli mode. > This is the cli for your command line. > > Olivier

[symfony-users] Re: symfony propel-dump-data - Maximum function nesting level

2008-05-06 Thread Olivier LOYNET
Hi, Try in your php.ini to increase your memory. Be careful, there are two php.ini, one for apache, on for cli mode. This is the cli for your command line. Olivier > -Original Message- > From: symfony-users@googlegroups.com [mailto:symfony- > [EMAIL PROTECTED] On Behalf Of Marco Schierh

[symfony-users] Re: GPLed plugins

2008-05-06 Thread Fabien POTENCIER
As of r8813, symfony 1.1 plugin:install task checks the license of the plugin. If the plugin is not licensed under a LGPL, MIT, BSD, Apache, or PHP license, the task won't install it except if you pass a --force-license option. Fabien Lukas Kahwe Smith wrote: > Hi, > > I wonder if its reall

[symfony-users] Re: SF 1.1.: Zend framework integration and session managing problem

2008-05-06 Thread gestadieu
can you share your finding to everyone? you probably have to modify send to use symfony session instead of starting a new one... On May 6, 6:54 pm, paulo_graca <[EMAIL PROTECTED]> wrote: > Thanks! > > Yes! it works, with some adaptations, I'm using the OpenId Plugin. > > On May 5, 5:57 pm, Eno <

[symfony-users] Re: Environment dependent settings in view.yml

2008-05-06 Thread Lee Bolding
I've just run into a similar requirement... I want to enable FireBug Lite (http://www.getfirebug.com/lite.html) when in dev... but want to be able to add/remove it in a single location, not in every template (or even every layout). Any ideas how I can do this? On 30 Mar 2008, at 17:20, Ped

[symfony-users] Re: Validating a non-required field

2008-05-06 Thread Rytis Daugirdas
Thanks. On May 6, 3:30 pm, Lee Bolding <[EMAIL PROTECTED]> wrote: > In your validate.yml just set required: false for the field > > On 6 May 2008, at 13:10, Rytis Daugirdas wrote: > > > > > Hello, > > > Is it possible to define a validator that would be executed with each > > request, no matter i

[symfony-users] Re: Validating a non-required field

2008-05-06 Thread Lee Bolding
In your validate.yml just set required: false for the field On 6 May 2008, at 13:10, Rytis Daugirdas wrote: > > Hello, > > Is it possible to define a validator that would be executed with each > request, no matter if the field it validates is empty or not? Or is my > only option to do that in t

[symfony-users] Validating a non-required field

2008-05-06 Thread Rytis Daugirdas
Hello, Is it possible to define a validator that would be executed with each request, no matter if the field it validates is empty or not? Or is my only option to do that in the validate() method of my action? Regards, Rytis --~--~-~--~~~---~--~~ You received this

[symfony-users] How to set background for sfThumbnailPlugin

2008-05-06 Thread Gunnar Lium
Hi! When uploading gif-files with transparent background, the rendered background is black. Is it possible to change this? Either keeping it transparent or setting to another color? My code: $thumbnail = new sfThumbnail(190, 190); $thumbnail->loadFile($this->getRequest()->getFilePath('file')

[symfony-users] input_date_tag odd behavior

2008-05-06 Thread Lee Bolding
Hi All, I'm having some trouble with input_date_tag - I can't get it to display dates in UK format (DD-MM-). In my template, I have : true, 'calendar_options' => 'ifFormat: "%Y-%m-%d", daFormat: "%d-%m- %Y", firstDay: 1, range: Array(2007,'.(date('Y')+3).')')); ?> Where start date

[symfony-users] symfony propel-dump-data - Maximum function nesting level

2008-05-06 Thread Marco Schierhorn
I have tried to execute symfony propel-dump-data frontend test_data.yml But i do always get a "PHP Fatal error: Maximum function nesting level of '100' reached, aborting! in /home/marco/workspace/decayenne/lib/vendor/symfony/lib/addon/propel/sfPropelData.class.php on line 428" Does somebod

[symfony-users] Re: SF 1.1.: Zend framework integration and session managing problem

2008-05-06 Thread paulo_graca
Thanks! Yes! it works, with some adaptations, I'm using the OpenId Plugin. On May 5, 5:57 pm, Eno <[EMAIL PROTECTED]> wrote: > On Mon, 5 May 2008, paulo_graca wrote: > > I'm integrating Zend Framework with my project. And trying to use > > OpenId for signin. But I'm getting an error related with

[symfony-users] remove dynamic string from URL and setting a rule for it in routing.yml

2008-05-06 Thread honey
We have a live site www.vois.com. we have a URL say http://www.vois.com/profile/index/dXNlcmlkPTExMzUzNA%3D%3D/ now we have to remove the dynamic encrypted text from URL and set a rule for it routing.yml. The encrypted part of the URL contains GET parameters based on which the action is executed.

[symfony-users] How to correct the error Class 'sfActions' not found in C:\wamp\www\sf_sandbox\sen\home\newpro\apps\Directory\modules\newcust omer\actions\actions.class.php on line 15

2008-05-06 Thread karla
Hello all, I'm new to the symfony framework. I've created a project and when tried to execute it i got the following error message... Fatal error: Class 'sfActions' not found in C:\wamp\www\sf_sandbox\sen \home\newpro\apps\Directory\modules\newcustomer\actions \actions.class.php o

[symfony-users] admin_double_list validation

2008-05-06 Thread Neubreed
Hi, I've googled 'til my lips went purple and I haven't been able to find information on how to perform YAML validation in an admin generator form that has any of the many-to-many select lists.. Can anyone post their experience / examples..? Basically I need to make sure at least one option is