[symfony-users] Re: How do I get a module path?

2009-07-31 Thread Bruno Reis
Hi all, Is there a way to retrieve a module "absolute path" or "real path" using symfony api? I need to get the path to template files too. Is there a way to do it passing only action and template/partial name? 2009/7/29 Bruno Reis > Hi all, > > how do I get a molude path using symfony classes?

[symfony-users] Re: Running out of memory when creating the cache

2009-07-31 Thread Gervasio
Hi Avnish, Thanks for your reply! We were experiencing this with 1.2.8. Then, we moved to 1.2.7 to see if that fixed the error, but no luck. This error happens even with 128 MB per process, so I guess that it's sf who's taking so much memory (maybe this function might get recursive?). Another in

[symfony-users] Re: symfony extensible model for other data source than default ORM (API, SOAP WS, CouchDB...)

2009-07-31 Thread JP
Thanks for your support ;) On Jul 31, 6:13 am, Sid Ferreira wrote: > UP! (I have nothing to say about it, I just want support what he said as an > important feature) > > On Fri, Jul 31, 2009 at 03:45, JP wrote: > > > Hi, > > > In symfony 1.2, I can only create models using one of the 2 ORMs > >

[symfony-users] Re: Doctrine_Validator_Exception

2009-07-31 Thread warhorse25
This error has been eating my lunch all day. Any help on this one would be great. Thanks. On Jul 31, 9:18 am, AeroCosmic wrote: > I'm getting the following error when trying to create a new entity > with the auto-generated form for "sites" > > Validation failed in class Sites > > 1 field had

[symfony-users] Upload image with admin generator

2009-07-31 Thread bogo
Hi, I'd like to upload image using admin generator. I've tried set field type in my generator.yml to: edit: title: Editing photo "%%title%%" fields: path_thumb: type: admin_input_file_tag help: default size 25x25 but it doesn't wor

[symfony-users] Re: Running out of memory when creating the cache

2009-07-31 Thread Avnish Pundir
Which version of symfony are you using? I was seeing similar error while I was using (symfony 1.2.4) cache with doctrine forms. Then I found following bug http://trac.symfony-project.org/ticket/5814 - which apparently is fixed in 1.2.7 You may want to switch to 1.2.8 and see if it fixes your er

[symfony-users] Re: Form field uneditable?

2009-07-31 Thread Avnish Pundir
In your form class use following: $this->widgetSchema['field_to_make_uneditable']->setAttribute('readonly','readonly'); It works with inputbox only though Original Message Subject: [symfony-users] Form field uneditable? From: Eno To: symfony-users@googlegroups.com Date: Friday

[symfony-users] Running out of memory when creating the cache

2009-07-31 Thread Gervasio
Hi! I posted this on the forum, but got no replies. Probably the list is the place to get more feedback ;) We have a decently big app, and we have our max_memory limit on 32 MB, however this is an issue that happened when we had 128 MB too. When I see the error log from apache, I see a lot of

[symfony-users] "remove the current file" doesnt work

2009-07-31 Thread despai -
I have 2 days with that problem, the *code* which *im using* is the next (lib/form/ArtistaForm.class.php): $i = 1; while($i<=4) { $this->widgetSchema['foto'.$i] = new sfWidgetFormInputFileEditable(array( 'file_src'=> '/hofestival/web/uploads/artistas/full/'.$this->getObject()

[symfony-users] Re: How do I create a plugin specific configuration file?

2009-07-31 Thread Bruno Reis
Thanks Daniel. That is a nice approach either, but the way I posted here is nice because it puts plugin configuration on a specific file and keeps the app.yml not "crowded". 2009/7/31 Richtermeister > > Hey Bruno, > > what I meant is include the file in the plugin to provide "default > values".

[symfony-users] Form field uneditable?

2009-07-31 Thread Eno
Is there a way to set a form field as uneditable? I have a field I want to display in my form but I need to generate it when I save the form so the user can't change it manually. -- --~--~-~--~~~---~--~~ You received this message because you are subscribed

[symfony-users] Re: Oops...'Something is broken...500 internal server error'

2009-07-31 Thread Richtermeister
Is this a symfony app? In that case look at the front controller (usually front_dev.php) and see what's causing the error. How did you get a bid for a problem that you're not sure what it is? Daniel On Jul 30, 10:49 am, chip fyn wrote: > Is this a real problem or what? > The program was great

[symfony-users] Re: How do I create a plugin specific configuration file?

2009-07-31 Thread Richtermeister
Hey Bruno, what I meant is include the file in the plugin to provide "default values". Of course the user needs to overwrite some of those in the app.yml of the respective app that uses the plugin. That's how most of the other plugins do it. Daniel On Jul 30, 11:07 am, Bruno Reis wrote: > Tha

[symfony-users] Re: What does sf_compat_10 do ? , & how to add helpers in settings.yml ?

2009-07-31 Thread Eno
On Thu, 30 Jul 2009, ahmed-araby wrote: > I really want to know what does sf_compat_10 do in the application in > specific ? > and if it affects the application performance ? > > Also how to add helpers in every template in the application ? Put them in your global layout. -- --~--~-

[symfony-users] Re: Template without main template

2009-07-31 Thread Eno
On Fri, 31 Jul 2009, nico wrote: > Add in your action > > $this->setLayout(false); Also if you're sending back XML or JSON then set the appropriate header like: $this->getResponse()->setContentType('text/xml'); -- --~--~-~--~~~---~--~~ You receiv

[symfony-users] Re: Hidden sfWidgetFormPropelChoiceMany

2009-07-31 Thread François CONSTANT
? do you use $form->render() ? if yes, just check the documentation (forms for web designers). I didn't mean to add the class in the form code but in the template code $form['myWidget']->render( 'class' => 'hidden') Don't forget to add other hidden fields in the template. If I'm wrong, ple

[symfony-users] How to save many to many relationship without embedded forms?

2009-07-31 Thread Tommaso D'Argenio
I've a situation where two classes are related through a third class (m-2-m relationship). For instance, an Article can have many related articles. So I have a third class for instance ArticleRelated, corresponding to an article_related table with an article_id and a article_related_id columns. N

[symfony-users] Re: Generated Form Is Empty

2009-07-31 Thread Eno
On Fri, 31 Jul 2009, seifolah Ghaderi wrote: > Thanks.I solved it. > I rename my matchForm to MatchSheet,and it work's! > I think itmay be a bug.When We have a module named A and another named AForm Yes, dont use "Form" in module names. If you have a Propel object User, then its form will be na

[symfony-users] Re: Template without main template

2009-07-31 Thread nico
Add in your action $this->setLayout(false); On Jul 31, 3:47 pm, HAUSa wrote: > I created an action, called send in the module system. > Now I have a Flash file which sends it's values to /system/send. > > In the sendSuccess.php I have a line to push a thank you message to > Flash. > mailFeedbac

[symfony-users] Re: Generated Form Is Empty

2009-07-31 Thread Gábor Fási
The name AForm is used for the form of model A, so it's rather a conflict with the naming concept than a bug. On Fri, Jul 31, 2009 at 08:43, seifolah Ghaderi wrote: > Thanks.I solved it. > I rename my matchForm to MatchSheet,and it work's! > I think itmay be a bug.When We have a module named A an

[symfony-users] new sgLESSPlugin implements LESS CSS

2009-07-31 Thread Pablo Godel
Hello, I wanted to announce the availability of a new plugin for symfony sgLESSPlugin. The plugins provides the following features: * augments CSS with some great features: variables, nested inheritance, mixins and accessors and other neat stuff. * provides symfony module/action to dynam

[symfony-users] Re: Problem with ë

2009-07-31 Thread HAUSa
Ah, that solved it. I was using the ISO chartype. Thx! On 31 jul, 16:47, Sid Ferreira wrote: > Are you using UTF8? > > Sidney G B Ferreira > Desenvolvedor Web > > On Fri, Jul 31, 2009 at 11:35, HAUSa < > > jeroen_heeft_behoefte_aan_r...@hotmail.com> wrote: > > > I got a problem with the special

[symfony-users] Template without main template

2009-07-31 Thread HAUSa
I created an action, called send in the module system. Now I have a Flash file which sends it's values to /system/send. In the sendSuccess.php I have a line to push a thank you message to Flash. mailFeedback=Bedankt voor uw reactie (dutch!) However, ofcourse Symfony places my whole layout.php te

[symfony-users] Re: Problem with ë

2009-07-31 Thread Sid Ferreira
Are you using UTF8? Sidney G B Ferreira Desenvolvedor Web On Fri, Jul 31, 2009 at 11:35, HAUSa < jeroen_heeft_behoefte_aan_r...@hotmail.com> wrote: > > I got a problem with the special ë character. I have an input widget, > but if I submit "Ik creëer webervaringen" (dutch ;)) I'll find only >

[symfony-users] Problem with ë

2009-07-31 Thread HAUSa
I got a problem with the special ë character. I have an input widget, but if I submit "Ik creëer webervaringen" (dutch ;)) I'll find only "Ik cre" in the database. Somebody who knows how to fix this? --~--~-~--~~~---~--~~ You received this message because you are su

[symfony-users] Re: Hidden sfWidgetFormPropelChoiceMany

2009-07-31 Thread HAUSa
My idea too, but helas the class is put in the and tag. Then still an empty and the empty label ("Select your options:") remain visible... On 31 jul, 11:59, François CONSTANT wrote: > It may be a stupid idea but what about adding a class on it and hide > it thanks to CSS? > > On Jul 31, 10:0

[symfony-users] Re: nested forms

2009-07-31 Thread pcummins
Mirfan, It doesn't appear the core symfomy/doctrine team hasn't provided a standardized way (or definitive example) for working 1:m forms in doctrine yet (although all the parts are in place for symfony users to build these types of forms) Unfortunately this means that there are number of method

[symfony-users] Doctrine_Validator_Exception

2009-07-31 Thread AeroCosmic
I'm getting the following error when trying to create a new entity with the auto-generated form for "sites" Validation failed in class Sites 1 field had validation error: * 1 validator failed on userid (notnull) stack trace * at () in SF_ROOT_DIR\lib\vendor\symfony\lib\plugins\sfDo

[symfony-users] Re: symfony extensible model for other data source than default ORM (API, SOAP WS, CouchDB...)

2009-07-31 Thread Sid Ferreira
UP! (I have nothing to say about it, I just want support what he said as an important feature) On Fri, Jul 31, 2009 at 03:45, JP wrote: > > Hi, > > In symfony 1.2, I can only create models using one of the 2 ORMs > Doctrine or Propel. Each of the 2 plugins implements some tasks for > generating

[symfony-users] symfony extensible model for other data source than default ORM (API, SOAP WS, CouchDB...)

2009-07-31 Thread JP
Hi, In symfony 1.2, I can only create models using one of the 2 ORMs Doctrine or Propel. Each of the 2 plugins implements some tasks for generating an admin backend, creating fixture data, some input validation. Now let's say I want to use a different data source, that is not a database covered

[symfony-users] Re: Propel Unit Testing - Reset database before running sfPropelData()?

2009-07-31 Thread Stephen Melrose
Where do you put that? In the fixtures.yml? If it needs to go into the actual model schema, we are using DBDesigner and the XML converter, so not sure we can. I have created a work around for now anyway. http://pastebin.com/f235c8ece On 31 July, 08:44, Garakkio wrote: > On Jul 28, 12:46 pm, St

[symfony-users] How to use sfGuardUserProfile in backend form edit and filters?

2009-07-31 Thread Tommaso D'Argenio
Hi, I have a module in my backend which manage the articles posted by registered users. Now in the list generator I can use the peer_method to relate the user_id to his profile via doSelectJoinsfGuardUser, this will automagically show FirstName.' '.LastName (according to the __toString method) in t

[symfony-users] Re: Hidden sfWidgetFormPropelChoiceMany

2009-07-31 Thread François CONSTANT
It may be a stupid idea but what about adding a class on it and hide it thanks to CSS? On Jul 31, 10:01 am, HAUSa wrote: > For some usercredentials I want to hide a > sfWidgetFormPropelChoiceMany. But, it must still be in the form > because the values have to be put in the database. > > Now, nor

[symfony-users] Propel, compare the day, not the timestamp

2009-07-31 Thread François CONSTANT
Hi, What I want to do is to compare if a date field is today. I have written that: $c = new Criteria(); $today = mktime(0, 0, 0, date('m'), date('d'), date('Y')); $tom = mktime(0, 0, 0, date('m'), date('d') + 1, date('Y')); $criterion = $c->getNewCriterion(self

[symfony-users] Hidden sfWidgetFormPropelChoiceMany

2009-07-31 Thread HAUSa
For some usercredentials I want to hide a sfWidgetFormPropelChoiceMany. But, it must still be in the form because the values have to be put in the database. Now, normally you make a hidden form field. But, ofcourse, it is a propelchoiceMANY, I need to be able to give it multiple values. My quest

[symfony-users] Re: Propel Unit Testing - Reset database before running sfPropelData()?

2009-07-31 Thread Garakkio
On Jul 28, 12:46 pm, Stephen Melrose wrote: > Balls > > Uncaught exception 'PropelException' with message 'Cannot insert a > value for auto-increment primary key (badword_list_group.ID)' > > :/ You can do it with a trick in your model: badword_list_group _attributes: { allowPkInsert: true }