[symfony-users] Re: How to get all applications?

2008-11-18 Thread sepp
> $applications = > sfFinder::type('dir')->maxdepth(0)->relative()->in(sfConfig::get('sf_apps_dir')); I took this solution. Works fine. Thanks a lot. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" gr

[symfony-users] Re: Filter problem

2008-11-18 Thread Eus
Hi Ho! --- On Wed, 11/19/08, Eus <[EMAIL PROTECTED]> wrote: > Since I believe symfony buffers the output and set > everything in one shoot, a way to have an output before > symfony buffer is flushed at the end of the processing is to > have a whitespace before the PHP opening tag (i.e., > ` >

[symfony-users] Re: The most painless way to adopt the form's auto-validation in 1.1 in 1.0

2008-11-18 Thread Eus
Hi Ho! --- On Tue, 11/18/08, Kiril Angov <[EMAIL PROTECTED]> wrote: > Ken, that is what he is saying. It is a Symfony 1.0 project > so there > are no form generation tasks. The is a plugin that > integrated the new > form system in the Symfony 1.0, I have used it but not > recently. > > http://

[symfony-users] Re: Admin 1.2 Routing

2008-11-18 Thread Eus
Hi Ho! --- On Tue, 11/18/08, Kiril Angov <[EMAIL PROTECTED]> wrote: > object_actions: > sample: > - action: sample > > OR > > object_actions: > sample: { action: sample } Should the last one not in the following form? object_actions: sample: [ action: sample ] You define a list i

[symfony-users] Re: Using constants within app.yml

2008-11-18 Thread Eus
Hi Ho! --- On Tue, 11/18/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Symfony 1.1 > > In my front controller I’m setting a constant: > ‘DOMAIN’ How do you set it? You cannot use `define('DOMAIN', 'x');'. You have to use `sfConfig::set('domain', 'x');' > When I use %DOMAIN% within my app

[symfony-users] Re: Filter problem

2008-11-18 Thread Eus
Hi Ho! --- On Tue, 11/18/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi guys, > > I've made a filter that forwards the unregistered users > to a > sfGuardAuth/signin (I use sfGuardPlugin). The problem is > that after > forwarding the signin page is displayed twice with an > error, i.e. >

[symfony-users] Re: lastminute.visualdna.com Symfony 1.1 + Doctrine post-mortem

2008-11-18 Thread Eus
Hi Ho! --- On Tue, 11/18/08, Lee Bolding <[EMAIL PROTECTED]> wrote: > Hi :) > > On 18 Nov 2008, at 01:54, Eus wrote: > > > > I wonder that the use of the new form system does not > seem to surprise you. > > I mean, in symfony 1-0, you have to manually validate > the maximum character lengths o

[symfony-users] Re: Re : [symfony-users] Re: File upload deletes previous file if field is empty

2008-11-18 Thread isleshocky77
I don't know if this will help anyone in this thread, but I just updated a ticket I had made regarding the sfWidgetFormInputFieldEditable. It has a fix for the problem described in this thread of always deleting the file, as well as for allowing the "remove file" functionality to work. http://trac

[symfony-users] Re: Admin 1.2 Routing

2008-11-18 Thread ken
None actually except the auto generated routes by admin module. I already solved this by not using id as query string? But I have new problem now, generated admin mods of symfony 1.2 throws an error while in prod env but not in dev 500 | Internal Server Error | InvalidArgumentException The "/sf_g

[symfony-users] Routing Error

2008-11-18 Thread ken
Im getting this errors in prod admin generated module for symfony 1.2 500 | Internal Server Error | InvalidArgumentException The "/lead/:id/edit.:sf_format" route has some missing mandatory parameters (:id). stack trace * at () in SF_SYMFONY_LIB_DIR/routing/sfRoute.class.php line 212 .

[symfony-users] Re: [sfDoctrinePlugin] Changing the baseClassName

2008-11-18 Thread Cédric Sadai
great, thanks for the precision Jon cedric On Nov 18, 4:54 pm, "Jonathan Wage" <[EMAIL PROTECTED]> wrote: > In your config/ProjectConfiguration.class.php create a function like the > following: > > public function configureDoctrine(Doctrine_Manager $manager) > { >   $options = array('baseClassNa

[symfony-users] Admin generator sf1.2 - show action doesn't exist

2008-11-18 Thread Cinxgler Mariaca Minda
Hi, I generated an propel admin module on sf1.2, I've activated the with_show parameter, but when I call the show action (http://localhost/frontend_dev.php/sf_ezc_workflow_execution_admin/5) it raises this error message: 'Action "sfEzcWorkflowExecutionAdmin/show" does not exist.', everything el

[symfony-users] Re: Organization in new Form Framework

2008-11-18 Thread isleshocky77
Has been created as ticket #4989 http://trac.symfony-project.org/ticket/4989 I made the milestone 1.3 -- Stephen Ostrow <[EMAIL PROTECTED]> On Nov 18, 3:44 pm, Fabien Potencier <[EMAIL PROTECTED] project.com> wrote: > isleshocky77 wrote: > > Fabien, > >   First, thanks for the answer on the seco

[symfony-users] Re: Organization in new Form Framework

2008-11-18 Thread Fabien Potencier
isleshocky77 wrote: > Fabien, > First, thanks for the answer on the second question; It's good to > know there is a way to re-order the fields. I had noticed that it's > based off of the setWidgets() functions so far and thus because propel > and doctrine generate that automatically it would be

[symfony-users] Re: Organization in new Form Framework

2008-11-18 Thread isleshocky77
Fabien, First, thanks for the answer on the second question; It's good to know there is a way to re-order the fields. I had noticed that it's based off of the setWidgets() functions so far and thus because propel and doctrine generate that automatically it would be be based off of the schema. I

[symfony-users] Re: Re : [symfony-users] Re: File upload deletes previous file if field is empty

2008-11-18 Thread Jonathan Franks
Daniel - I managed to dig out the code for the solution I found for this problem. Try the following... public function save($con = null) { $file = $this->getValue('file'); if ($file) { if (file_exists($this->getObject()->getFile())) {

[symfony-users] sfWidetForm Select State

2008-11-18 Thread Atif Khan
Hello is there a widget for selecting US STATES. Similar to sfWidgetFormI18nSelectCountry Thank you Atif K --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email t

[symfony-users] Re: Re : [symfony-users] Re: File upload deletes previous file if field is empty

2008-11-18 Thread Daniel Staver
This is getting weird. Thomas' suggestion gave me the idea I could create a file field not belonging to the Propel object and manually set the values based on the uploaded file. Everything works fine, EXCEPT the uploaded file is deleted after I run parent::doSave(). If I kill the script before tha

[symfony-users] Re: unique user in my article index

2008-11-18 Thread javo
Thanks, that's what I wanted :) On Nov 18, 12:23 pm, "Kiril Angov" <[EMAIL PROTECTED]> wrote: > Why not add a GroupBy on the sfGuardUserProfilePeer::ID ? > > On Mon, Nov 17, 2008 at 7:28 PM, javo <[EMAIL PROTECTED]> wrote: > > > Hi, > > > I use this code to display articles on my page, > > >  pub

[symfony-users] Re: Filter problem

2008-11-18 Thread [EMAIL PROTECTED]
My filter is a little bit longer, so I deleted some lines that didn't matter here - and one of that lines was $context = $this->getContext (); . So the problem still remains. On 18 нояб, 20:55, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Sorry, I missed to mention > > $context = $this->getC

[symfony-users] Re: Filter problem

2008-11-18 Thread [EMAIL PROTECTED]
Sorry, I missed to mention $context = $this->getContext(); On 18 нояб, 19:47, Lee Bolding <[EMAIL PROTECTED]> wrote: > On 18 Nov 2008, at 16:12, [EMAIL PROTECTED] wrote: > > >  public function execute($filterChain) > >  { > > >    if ($this->isFirstCall()) > >    { > >      if(!$this->getContext

[symfony-users] Re: sfPropelOptimisticLockBehaviorPlugin ?

2008-11-18 Thread Richtermeister
I'm very sorry, but I don't know where to go for that. The new plugin section doesn't return it, and the wiki directs me to the new plugin section.. Thanks for any help, Daniel On Nov 18, 6:56 am, ken <[EMAIL PROTECTED]> wrote: > It is actually still working even on 1.2, check the old wiki of

[symfony-users] Re: How to get all applications?

2008-11-18 Thread Kiril Angov
if (count($dirs = sfFinder::type('dir')->maxdepth(0)->follow_link()->relative()->in(sfConfig::get('sf_apps_dir' { return $dirs; } On Tue, Nov 18, 2008 at 4:21 PM, sepp <[EMAIL PROTECTED]> wrote: > > Hi @all. > > I'm writing some Symfony tasks and I'm wondering how I can get the > names of a

[symfony-users] Re: Sf1.2 Admin generator: how to retain non display fields in DB

2008-11-18 Thread Kiril Angov
Ken: " Is changing the widgetSchema and validatorSchema in ArticleForm the only way to avoid resetting the non display values? What if I have different forms of the same propel model?" On Tue, Nov 18, 2008 at 4:59 PM, ken <[EMAIL PROTECTED]> wrote: > > just edit the generated Form Class then unse

[symfony-users] Re: How to get all applications?

2008-11-18 Thread Geoffrey Bachelet
something like: $applications = sfFinder::type('dir')->maxdepth(0)->relative()->in(sfConfig::get('sf_apps_dir')); could do the trick On Tue, Nov 18, 2008 at 3:21 PM, sepp <[EMAIL PROTECTED]> wrote: > > Hi @all. > > I'm writing some Symfony tasks and I'm wondering how I can get the > names of al

[symfony-users] Re: Admin 1.2 Routing

2008-11-18 Thread Kiril Angov
Do you have any routing rules defined? I no longer seem to understand the problem you are having. On Tue, Nov 18, 2008 at 6:10 PM, ken <[EMAIL PROTECTED]> wrote: > > that doesnt work either. > > > > On Nov 18, 11:56 am, Eus <[EMAIL PROTECTED]> wrote: >> Hi Ho! >> >> --- On Tue, 11/18/08, ken <[EM

[symfony-users] Re: Filter problem

2008-11-18 Thread Lee Bolding
On 18 Nov 2008, at 16:12, [EMAIL PROTECTED] wrote: > public function execute($filterChain) > { > >if ($this->isFirstCall()) >{ > if(!$this->getContext()->getUser()->isAuthenticated()) { > $context->getController()->forward('sfGuardAuth', 'signin'); Shouldn't that

[symfony-users] Re: The most painless way to adopt the form's auto-validation in 1.1 in 1.0

2008-11-18 Thread Kiril Angov
Ken, that is what he is saying. It is a Symfony 1.0 project so there are no form generation tasks. The is a plugin that integrated the new form system in the Symfony 1.0, I have used it but not recently. http://svn.symfony-project.com/plugins/sfForms11Plugin/README http://svn.symfony-project.com/

[symfony-users] Filter problem

2008-11-18 Thread [EMAIL PROTECTED]
Hi guys, I've made a filter that forwards the unregistered users to a sfGuardAuth/signin (I use sfGuardPlugin). The problem is that after forwarding the signin page is displayed twice with an error, i.e. _ HEADER __ SIGNIN FORM __

[symfony-users] Re: Admin 1.2 Routing

2008-11-18 Thread ken
that doesnt work either. On Nov 18, 11:56 am, Eus <[EMAIL PROTECTED]> wrote: > Hi Ho! > > --- On Tue, 11/18/08, ken <[EMAIL PROTECTED]> wrote: > > > > > I have this in foo admin module > > > object_actions: > >   sample: > >     action: sample > > > then in actions.php > > > public function exe

[symfony-users] Re: Autoloading problem

2008-11-18 Thread [EMAIL PROTECTED]
Thanks a lot, Kiril - I just didn't clear cache after I changed the case, as you told. On 18 нояб, 15:06, "Kiril Angov" <[EMAIL PROTECTED]> wrote: > Having used symfony a lot, I know for a fact that that is not > possible, that is to have autoloading work only in one action and not > in the other

[symfony-users] Re: Symfony 1.2 sfDoctrineGuardPlugin saves related rows twice

2008-11-18 Thread Jonathan Wage
You are not binding the $profile = new yUserProfileForm(); to the User object in the register form. It should be: $profile = new yUserProfileForm($this->getObject()->getProfile()); - Jon On Tue, Nov 18, 2008 at 9:09 AM, kayoone <[EMAIL PROTECTED]> wrote: > > So i have the the latest version of

[symfony-users] Re: [sfDoctrinePlugin] Changing the baseClassName

2008-11-18 Thread Jonathan Wage
In your config/ProjectConfiguration.class.php create a function like the following: public function configureDoctrine(Doctrine_Manager $manager) { $options = array('baseClassName' => 'myDoctrineRecord'); sfConfig::set('doctrine_model_builder_options', $options); } Then somewhere symfony can a

[symfony-users] Re: Re : [symfony-users] Re: File upload deletes previous file if field is empty

2008-11-18 Thread shakaponk
Hi, have you received my answer? posting for the first time in google groops :-) dunno why, but can't see my post... best regards On Nov 18, 11:48 am, Daniel Staver <[EMAIL PROTECTED]> wrote: > Sorry, that didn't work either... > > On Nov 18, 8:42 am, Jonathan Franks <[EMAIL PROTECTED]> wrote: >

[symfony-users] Using constants within app.yml

2008-11-18 Thread noetix
Symfony 1.1 In my front controller I’m setting a constant: ‘DOMAIN’ When I use %DOMAIN% within my app.yml it doesn’t get parsed. However when I use it does get parsed & everything works... except [02:13:35 [EMAIL PROTECTED]:[/home/backstab/sf]# ./symfony cc >> cache Clearing cache type "a

[symfony-users] Symfony 1.2 sfDoctrineGuardPlugin saves related rows twice

2008-11-18 Thread kayoone
So i have the the latest version of symfony 1.2 and sfDoctrineGuardPlugin. I already has this working in 1.1 but now in 1.2 its giving me headaches... This is what happens: Form Validation etc all works perfect, all the data gets created, also related table data gets created. It creates a sf_guar

[symfony-users] Re: The most painless way to adopt the form's auto-validation in 1.1 in 1.0

2008-11-18 Thread ken
You can just modify the schema.yml and define the length attribute for each column. the form generating task will even map out all unique indexes that you define there. On Nov 17, 4:30 pm, Eus <[EMAIL PROTECTED]> wrote: > Hi Ho! > > I am involved in a project that uses symfony-1.0. > > One ineffe

[symfony-users] Re: Re : [symfony-users] Re: File upload deletes previous file if field is empty

2008-11-18 Thread shakaponk
Hi, maybe editing the setter of the object can help. in the setter: if the passed value is null or '' then do not assign the value to the instance var... for a profile: maybe you'll need an extra checkbox (remove image) for those who want to delete their image... best regards On Nov 17, 10:42 

[symfony-users] How to get all applications?

2008-11-18 Thread sepp
Hi @all. I'm writing some Symfony tasks and I'm wondering how I can get the names of all set up applications. Any idea? sfBaseTalk knows only a method called getFirstApplication. Thanks a lot in advance. sepp --~--~-~--~~~---~--~~ You received this message becau

[symfony-users] Re: Sf1.2 Admin generator: how to retain non display fields in DB

2008-11-18 Thread ken
just edit the generated Form Class then unset the fields you dont want to be edited class ArticleForm extends BaseArticleForm { public function configure(){ unset($this['field_to_ignore']); } } On Nov 18, 10:06 pm, Mian <[EMAIL PROTECTED]> wrote: > Hi all, > > I noticed that when I cha

[symfony-users] Re: Displaying range for a value in image...

2008-11-18 Thread Richtermeister
Maybe this is more highlevel than GD.. http://ezcomponents.org/docs/api/latest/introduction_Graph.html On Nov 18, 4:21 am, "Kiril Angov" <[EMAIL PROTECTED]> wrote: > The way I see it, iMagick has everything that GD has and more. > > On Tue, Nov 18, 2008 at 8:35 AM, Sumedh <[EMAIL PROTECTED]> w

[symfony-users] Re: sfPropelOptimisticLockBehaviorPlugin ?

2008-11-18 Thread ken
It is actually still working even on 1.2, check the old wiki of plugins. On Nov 18, 10:54 pm, Richtermeister <[EMAIL PROTECTED]> wrote: > Whatever happened to the sfPropelOptimisticLockBehaviorPlugin? > > It is referenced in the documentation, but I can't seem to find it.. > > Thanks, > Daniel --

[symfony-users] sfPropelOptimisticLockBehaviorPlugin ?

2008-11-18 Thread Richtermeister
Whatever happened to the sfPropelOptimisticLockBehaviorPlugin? It is referenced in the documentation, but I can't seem to find it.. Thanks, Daniel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" gro

[symfony-users] Sf1.2 Admin generator: how to retain non display fields in DB

2008-11-18 Thread Mian
Hi all, I noticed that when I change the configuration of generator.yml of admin generator module to display less fields than the db schema, all non display values will be set to default values whenever I edit the data. For example, if my db schema is: Propel: article: id: ~

[symfony-users] Re: Exclude some countries

2008-11-18 Thread Kiril Angov
I think this is discrimination so NO you cannot do that ;) Sorry, could not resist... On Sat, Nov 15, 2008 at 5:59 AM, Mohammed <[EMAIL PROTECTED]> wrote: > > Good morning ! > > I want to exclude some countries when I use select_country_tag method > in symfony , > could I ? > > > > --~--~---

[symfony-users] Re: unique user in my article index

2008-11-18 Thread Kiril Angov
Why not add a GroupBy on the sfGuardUserProfilePeer::ID ? On Mon, Nov 17, 2008 at 7:28 PM, javo <[EMAIL PROTECTED]> wrote: > > Hi, > > I use this code to display articles on my page, > > public function executeIndex() > { > >$c = new Criteria(); >$c->addDescendingOrderByColumn(ArticlePe

[symfony-users] Re: Displaying range for a value in image...

2008-11-18 Thread Kiril Angov
The way I see it, iMagick has everything that GD has and more. On Tue, Nov 18, 2008 at 8:35 AM, Sumedh <[EMAIL PROTECTED]> wrote: > > This looks like a very powerful image processing library...thanks :) > > But for simple line drawings etc, GD should be sufficient right? > > On Nov 17, 6:21 pm, "

[symfony-users] Re: Admin 1.2 Routing

2008-11-18 Thread Kiril Angov
object_actions: sample: - action: sample OR object_actions: sample: { action: sample } On Tue, Nov 18, 2008 at 5:56 AM, Eus <[EMAIL PROTECTED]> wrote: > > Hi Ho! > > --- On Tue, 11/18/08, ken <[EMAIL PROTECTED]> wrote: > >> I have this in foo admin module >> >> object_actions: >> sam

[symfony-users] Re: Organization in new Form Framework

2008-11-18 Thread Fabien Potencier
isleshocky77 wrote: > I went looking for a solution to this problem and found a whole bunch > of posts in the forum asking the same thing with no replies to any of > them. I figured I'd try asking here. > > Is there a way to organize form fields in the new form framwork so > that certain fields

[symfony-users] Re: Update Forms from Symfony 1.0 to 1.1

2008-11-18 Thread Kiril Angov
Old forms work in 1.1 just fine so unless you want some functionality provided by the 1.1 form framework, do not bother to upgrade them. On Tue, Nov 18, 2008 at 3:07 AM, Jonathan Wage <[EMAIL PROTECTED]> wrote: > You will need to re-implement your forms. > > - Jon > > On Mon, Nov 17, 2008 at 4:48

[symfony-users] Re: timestamp default value

2008-11-18 Thread Kiril Angov
Because as far as I know, 1.1 amd 1.2 (and then 1.3) are transition version which will lead eventually to 2.0 which will again (most probably) be supported for 3+ years. 2008/11/17 [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > Actually it was not me who chose the symfony version to work in. > It's in

[symfony-users] Re: Autoloading problem

2008-11-18 Thread Kiril Angov
Having used symfony a lot, I know for a fact that that is not possible, that is to have autoloading work only in one action and not in the other. After you change your file names and class names, make sure you do "php symfony cc" and then try again. 2008/11/18 [EMAIL PROTECTED] <[EMAIL PROTECTED]>

[symfony-users] disable caching of pages forwarded to 404

2008-11-18 Thread kiszl
Hi all, Is it possible to disable the caching (either in configuration or with some extra code), when the served page is forwarded to a 404 page ? Right now if I have the following dummy action and route (see bottom), a cache entry is created for all false url's as well. E.g. if I visit"/ test/h

[symfony-users] Re: Autoloading problem

2008-11-18 Thread [EMAIL PROTECTED]
Kiril, I made sure that filenames and classnames have the same case. The problem is that the file is autoloaded only in index actions - and the same file is not autoloaded in any others. On 14 нояб, 22:21, "Kiril Angov" <[EMAIL PROTECTED]> wrote: > Make sure you are using the right name for your

[symfony-users] [sfDoctrinePlugin] Changing the baseClassName

2008-11-18 Thread Cédric Sadai
Hi, There is this great option in 1.2, this ability to change the baseClassName to add another level of inheritance on our models. I love the idea, but keep wondering where should my config data be. Doctrine is merging regular options with mine, supposedly accessible with this: sfConfig::get('do

[symfony-users] Re: Re : [symfony-users] Re: File upload deletes previous file if field is empty

2008-11-18 Thread Thomas Rabaix
If you are working with a model in your database with a blob field. I will suggest you to unset the blob field in the form and use an intermediate method. see http://pastebin.com/m74f5b45e for more information Thomas On Tue, Nov 18, 2008 at 11:48 AM, Daniel Staver <[EMAIL PROTECTED]>wrote: > >

[symfony-users] Re: Re : [symfony-users] Re: File upload deletes previous file if field is empty

2008-11-18 Thread Daniel Staver
Sorry, that didn't work either... On Nov 18, 8:42 am, Jonathan Franks <[EMAIL PROTECTED]> wrote: > Sorry Daniel - I did this a while ago and my memory let me down > > Ok, just quickly looked at the code. Does this help? > > unset($this->values['filename']) > > regards, > Jonathan > > On 1

[symfony-users] Organization in new Form Framework

2008-11-18 Thread isleshocky77
I went looking for a solution to this problem and found a whole bunch of posts in the forum asking the same thing with no replies to any of them. I figured I'd try asking here. Is there a way to organize form fields in the new form framwork so that certain fields are displayed within a ? And a