[symfony-users] Re: Issue with url_for()

2009-09-11 Thread Garakkio
Please read tutorial again: the second argument is supposed to be an OBJECT, not an array. On Sep 10, 3:10 pm, MrGlass wrote: > 'post_pretty_url' is the name for my URI, yes. and the second > parameter (according to the jobeet tutorial) is supposed to be an > array of values needed for the url.

[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 }

[symfony-users] Re: File field looses content if other fields of form contain error

2009-07-18 Thread Garakkio
IIRC, it's the default behaviour of forms. It's not a symfony issue. On Jul 17, 6:19 pm, dagger wrote: > please help me out here to find what m i doing wrong > > On Jul 17, 2:58 pm, dagger wrote: > > > I have a form user and i have embedded another form for images upload > > in it. > > > Now wh

[symfony-users] Re: once again, the error " The "default" context does not exist."

2009-07-03 Thread Garakkio
By reading this interesting discussion, I decided to get rid of all my (mis)use of sfContext. So, I searched it in my project, and surprisingly found many in generated propel classes. I investigated and discovered this in plugins/sfPropelPlugin/lib/ builder/SfPeerBuilder.php, line 232: "\

[symfony-users] Re: Using '+' in slugs

2009-06-23 Thread Garakkio
On Jun 22, 6:17 pm, AureL wrote: > $request->getParameter('slug'); // returns 'this is my slug' > > Is there a way to preserve the '+' in controller ? str_replace(' ', '+', $request->getParameter('slug')); --~--~-~--~~~---~--~~ You received this message because y

[symfony-users] Re: Many to many relationship with additional fields in the relationship table

2009-06-13 Thread Garakkio
On Jun 11, 6:11 pm, gigo6000 wrote: > Hi, I'm really stuck right now with the new symfony 1.2 form > framework, I'm trying to create a form to handle a many to many > relationship with payload, that is including additional fields in the > relationship table but I can't find anything and got no an

[symfony-users] Re: Alternative to "#" as dummy href

2009-05-30 Thread Garakkio
You shouldn't use onlick attributes on links (nor on any other html element). Just make normal, then add javascript events (like onclick) using javascript itself. More info on http://en.wikipedia.org/wiki/Unobtrusive_JavaScript On May 29, 2:08 pm, Gareth McCumskey wrote: > Hi there all, > > With

[symfony-users] Re: Propel question: how to get AND instead of OR

2009-04-23 Thread Garakkio
This can be very helpful in such situations: Propel Criteria Builder http://propel.jondh.me.uk/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-user

[symfony-users] Re: I can not get sfWidgetFormTextareaTinyMCE to work, even when I copy the examples straight from the Symfony website

2009-03-05 Thread Garakkio
On Mar 4, 2:41 pm, Lawrence Krubner wrote: > Here is an odd thing. The controls are appearing at the bottom of the > textarea. You can see a screenshot here: This is the standard behaviour. You can manage to get it to the top using configuration options, see my link above (on TinyMCE wiki) --~--

[symfony-users] Re: I can not get sfWidgetFormTextareaTinyMCE to work, even when I copy the examples straight from the Symfony website

2009-03-04 Thread Garakkio
My humble opinion: it's better to use directly javascript to get tinyMCE working. So, simple add a "class="rich"" to yout textarea and write (and include it in your page, of course) a js like this one: tinyMCE.init({ theme : "advanced", mode: "textareas", editor_selector : "rich", // any o

[symfony-users] culture

2009-02-24 Thread Garakkio
I'm a bit confused about symfony culture handling. In my settings.yml, there's 2 lines under ".settings": i18n: on default_culture: it_IT In debug toolbar, I see under Config->User: options: auto_shutdown: false culture: null default_culture: it use_flash: true logging: '1' timeout:

[symfony-users] Re: propel:build-model segmentation fault

2009-02-17 Thread Garakkio
On 10 Feb, 16:57, Garakkio wrote: > I don't know exactly when, but in last days symfony started to > segfault for each build-model I do. > No matter how complex or simple is schema.yml (I even tried with a > single dummy table with only a primary key). > I also tried on di

[symfony-users] propel:build-model segmentation fault

2009-02-10 Thread Garakkio
I don't know exactly when, but in last days symfony started to segfault for each build-model I do. No matter how complex or simple is schema.yml (I even tried with a single dummy table with only a primary key). I also tried on different machines (my local is Ubuntu 8.10 with PHP 5.2.6, a remote se

[symfony-users] Re: possible bug in Propel?

2009-01-19 Thread Garakkio
On 15 Gen, 10:06, Ant Cunningham wrote: > Ive had similar issues in the past when my foreign keys arent primary > keys if there are mulitple references to the same table.column. Try > making them PK's and see if that works. How could you make it working? I mean, suppose to have a table of messag

[symfony-users] possible bug in Propel?

2009-01-15 Thread Garakkio
I think I found a bug in Propel generated models, but I would like to be contradicted This is an extract from my schema.yml: sf_social_event: _attributes:{ phpName: sfSocialEvent } id: ~ user_admin: { type: integer, required: true, foreignTable: sf_guard_user, foreignReference:

[symfony-users] Re: How to get what is returned by an action in another app

2009-01-11 Thread Garakkio
On Jan 10, 4:27 pm, "Antoine Leclercq" wrote: > We're working on a project where we have to retrieve the content of an > action+template located in another app in order to display it in the current > app. > > For sure we want to do this respecting Symfony model, and not break the MVC > structure.

[symfony-users] issue with Jobeet translations

2009-01-05 Thread Garakkio
I've noticed that anchor names in Jobeet translations are always missing day's number. Example: http://www.symfony-project.org/jobeet/1_2/Propel/en/05#day_05_routing_in_actions_and_templates has an anchor named "day_05_routing_in_actions_and_templates", but its Italian translation has "day__il_ro

[symfony-users] Re: generator.yml dynamic credentials

2008-12-19 Thread Garakkio
On 19 Dic, 12:00, Sid Ferreira wrote: > can't be used php in yml? > so, something like > > config: >   list: >     object_actions: >       _edit: { credential: item_ } >       _delete: { credential: item_ } > > might work...must investigate to locate the variable.. share it if you > do... I don'

[symfony-users] Re: generator.yml dynamic credentials

2008-12-19 Thread Garakkio
On 19 Dic, 10:41, "Bernhard Schussek" wrote: > You cannot dynamically specify in the generator.yml. There is another > trick though: > The sfAction class has a method called getCredential(), which returns > the credentials required for a specific method. You can override this > method in your act

[symfony-users] generator.yml dynamic credentials

2008-12-18 Thread Garakkio
I have an "item" table related with a "user" table (1-n: a user can be related to many items). In backend, I want that an user can see every item, but edit/delete only his/her ones. So, I check for "owned" items in login and I add a credential for each one, say "item1", "item2", etc ("itemXX", whe