Re: [symfony-users] Re: Symfony2 Sandbox git

2011-01-10 Thread Daniel Lohse
Why would you delete the .git directory? Git can handle a limitless amount of upstream repositories so you'd just have to add your repo on GitHub (or local or else) and you're good to go. You lose the ability to import upstream changes when you're deleting the .git directory. :) Cheers, Daniel

Re: [symfony-users] Re: using partials in i18n forms and credentials for i18n forms

2010-12-14 Thread Daniel Lohse
. If you have any idea, that will be very useful. Regards! P-A On Dec 14, 1:42 am, P-A Coipeault pcoipea...@gmail.com wrote: Thanks a lot Daniel ! That's really helpfull :) So, one point resolved above two is resolved. Thanks again. Cheers, P-A On Dec 14, 12:25 am, Daniel Lohse

Re: [symfony-users] using partials in i18n forms and credentials for i18n forms

2010-12-13 Thread Daniel Lohse
You can pass the user as an option to the form from the action — just pass an array as the second parameter of the form instanciation like so: $form = new modelnameForm($object or null, array('user' = $this-getUser()-getGuardUser()); And then in the form's configure() method you can get the

Re: [symfony-users] Best practice to use Eclipse PDT and symfony?

2010-12-13 Thread Daniel Lohse
If you don't put symfony into your project then you won't get autocompletion for symfony classes. There are many errors thrown by Eclipse because some parts of symfony (like the admin generator themes that use [?php instead of ?php because they are compiled at runtime) just don't validate. I

Re: [symfony-users] Re: Learning Symfony2 is difficult because...

2010-12-07 Thread Daniel Lohse
They are the same because this bundle can also persist not only to SQL databases with the Doctrine 2 ORM but also to MongoDB (NoSQL) using the Doctrine 2 ODM. :) Cheers, Daniel Sent from my iPad On Dec 7, 2010, at 10:17 AM, Flukey jstevenh...@gmail.com wrote: Hi Florian, Thanks for the

Re: [symfony-users] updating a field in action

2010-11-30 Thread Daniel Lohse
No, find just returns one object. But you can't give it an array, just give it the primary key which is, in your case, the foo_parameter. Cheers, Daniel Sent from my iPad On Nov 30, 2010, at 7:15 PM, Stan McFarland sfmc...@gmail.com wrote: I think it's because '$foo' is not an object but

Re: [symfony-users] Re: Backend works on dev but not on prod

2010-11-23 Thread Daniel Lohse
Because there can only be one app under the same virtual host without the script name in the URL. How is Apache going to differentiate between URLs? ;-) Cheers, Daniel On 23.11.2010, at 18:51, HiDDeN wrote: I have identified the responsible of this behaviour: the no_script_name option (in

Re: [symfony-users] admin generator - sorting

2010-11-17 Thread Daniel Lohse
Hey there, 1. clear your cache, so the sort can take effect 2. Take a look at ahAdminGeneratorThemesPlugin Cheers, Daniel Sent from my iPhone4 On Nov 17, 2010, at 10:20 AM, qp quentin.p...@gmail.com wrote: list: title: Card Reloads display: [=transaction_no, card_no,

Re: [symfony-users] sfGuardUserProfile doesn't work? :-(

2010-11-16 Thread Daniel Lohse
You'll also need to select s.id like the error message says: The root class of the query (alias s) must have at least one field selected. – but you also might need to select p.id, too. Does that help? Cheers, Daniel On 16.11.2010, at 09:59, man mixi wrote: Hi, experts. I set up a simple

Re: [symfony-users] Doctrine Batch procesing

2010-11-16 Thread Daniel Lohse
That's unfortunate because you really have few options — I know because I've been there just this week. So, array hydration is out of the question, fine, let's see what other options you have: 1. Increase memory of the server (sorry, but it's one option) 2. Use the latest PHP 5.3.x and try to

Re: [symfony-users] Re: On $form-save() and knowing if anything has changed

2010-11-14 Thread Daniel Lohse
Yes, you can indeed do that — I might have a look at the Timestampable behavior and see what it does, maybe you'll get some more insights into how you can do this some other way but if you can live with your solution then that's also fine. :) Cheers, Daniel Sent from my iPad On Nov 15,

Re: [symfony-users] Re: On $form-save() and knowing if anything has changed

2010-11-12 Thread Daniel Lohse
What do you want to do? Before you save the form (and therefore the object), you can get at the changes like described here: http://groups.google.com/group/symfony-users/browse_thread/thread/be414f79f499f869/a18b2291ba30275c?lnk=gstq=doctrine+isModified#a18b2291ba30275c Just add the

Re: [symfony-users] Re: ahDoctrineEasyEmbeddedRelationsPlugin missing addRelation button

2010-11-11 Thread Daniel Lohse
Yes, and you also have the option 'noNewForm' set to true which, obviously, discards the form to add a new related object. :) Cheers, Daniel Sent from my iPhone4 On Nov 12, 2010, at 4:10 AM, thronic sean.vill...@gmail.com wrote: Upon further reading i realized that i had to add

Re: [symfony-users] Re: Problem with making a drop down menu from a table

2010-11-11 Thread Daniel Lohse
That's because you have to use the Doctrine (or Propel) version of this widget. Cheers, Daniel Sent from my iPhone4 On Nov 12, 2010, at 1:27 AM, apc...@dsl.pipex.com apc...@dsl.pipex.com wrote: Thank you for taking time to help me. My code is now: $this-form = new sfForm();

Re: [symfony-users] How to aasign external link in symfony

2010-11-11 Thread Daniel Lohse
You mean prefix of http://, right? ;-) Sent from my iPhone4 On Nov 12, 2010, at 8:42 AM, Gareth McCumskey gmccums...@gmail.com wrote: This is expected behavour. url_for looks for the suffix http:// to know if its an external link or not. On Thu, Nov 11, 2010 at 2:39 PM, deepak

Re: [symfony-users] All new symfony developers please read...

2010-10-28 Thread Daniel Lohse
Well said! It also contributes to the readability of the mailinglist because there's less noise with answers like it's in the documentation — just read it. Cheers, Daniel Sent from my iPhone4 On Oct 28, 2010, at 8:16 AM, Gareth McCumskey gmccums...@gmail.com wrote: I thought I'd point

Re: [symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin saving nested embedded forms

2010-10-27 Thread Daniel Lohse
Sorry, nested embedded relations are just not possible. I'd suggest you take a look at Kris Wallsmith's plugin for dynamic embedded relations – there's been a bit of work on nested embedded relations already (I think). Cheers, Daniel On 27.10.2010, at 12:51, Gayatri wrote: Hello, I am

Re: [symfony-users] perform global logic check in admin rather than in each action

2010-10-24 Thread Daniel Lohse
Are those all admin-generated modules? If so, you can specify the base class to use. Just create a new class (myActions or so) and specify this base class in all generator.yml files. This base class must inherit from sfActions. You can then provide your own preExecute method and do the logic

Re: [symfony-users] ahDoctrineEasyEmbeddedRelations - problem with embedded relations within embedded relations

2010-10-13 Thread Daniel Lohse
In short, you can't because nested embedded relations with my plugin are impossible, sorry. I'm also sorry to tell you that I won't have time to implement it because the code was not made with this use-case in mind. May I suggest that you take a look at this instead (developed by one of

Re: [symfony-users] Re: London Symfony Lightning Talks - November 9th

2010-10-06 Thread Daniel Lohse
On 06.10.2010, at 15:20, benlancaster wrote: On Oct 5, 4:04 pm, cleve cleve...@gmail.com wrote: A couple of us are organising a symfony meetup in London and thought it would be awesome to get some people to do some lightning talks on symfony usage. We're especially keen on anyone's

Re: [symfony-users] Re: Propel route: new object with foreign key (sf 1.3.7)

2010-10-05 Thread Daniel Lohse
Nope, that won't work because the named route doesn't take or expect a real parameter and you're providing it your offer_id. Try this: link_to(add refurbishment, '@offer_refurbishment_new', array('query_string' = 'offer_id='.$offer-getId())) But you'd be much better served if you just

Re: [symfony-users] sfWidgetFormDoctrineChoice to show non-multi selectable list

2010-09-18 Thread Daniel Lohse
You mean a normal list of radio buttons, right? Just set the 'expanded' option to true and the 'multiple' option to false and you should be golden. Cheers, Daniel Sent from my iPhone4 On Sep 18, 2010, at 5:57 PM, Martin Henits martin.hen...@gmail.com wrote: Hi, I was wondering if anyone

Re: [symfony-users] [Symfony2, SandBox, PR3] Re: missing files for MongoDB

2010-09-17 Thread Daniel Lohse
This means that you don't have the PHP (!) extension (!) for MongoDB installed. Take a look at the documentation for installing it. Cheers, Daniel Sent from my iPhone4 On Sep 17, 2010, at 9:13 PM, spike3111 gilles.gauthie...@gmail.com wrote: I have idea to look for into the cache. I found a

Re: [symfony-users] ahDoctrineEasyEmbeddedRelations question

2010-09-16 Thread Daniel Lohse
My plugin doesn't work with many-to-many relations, I'm sorry. :( Daniel Sent from my iPhone4 On Sep 17, 2010, at 1:49 AM, deBaer deb...@gmail.com wrote: Hi! I'm totally new to symfony and doing my first project. It is a database of customers (Kunde) and ways to reach them (Kontaktweg,

Re: [symfony-users] sfValidatorDoctrineUnique

2010-09-13 Thread Daniel Lohse
You might have forgotten to output $form-renderHiddenFields(false); in your template? Please check that the ID of your object is there in your edit screen's HTML. Cheers, Daniel Sent from my iPhone4 On Sep 13, 2010, at 1:58 PM, corneliusparkin cornelius.par...@gmail.com wrote: Hi I have

Re: [symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin + Admin Generator

2010-09-08 Thread Daniel Lohse
Hey there, you'll need to set the displayEmptyRelations option to true as described in the README. That way, even if there are no embedded relations yet (as in the edit view or the add view), the widget Documents exists in the form. Cheers, Daniel On 07.09.2010, at 18:44, John Kary wrote:

Re: [symfony-users] Sf1.4 custom boolean field in generator results in 1 rather than checked-icon

2010-09-05 Thread Daniel Lohse
You'll need to override the a file in your module's templates folder, just have a look into the cache again and look for a file with boolean in its name. ;-) Copy over that file and then you can use an image_tag or so to render a check-icon or an x-icon. If you need more help, post back here.

Re: [symfony-users] Problem using ahAdminGenerataorThemesPlugin, Customizable titles for sf 1.4

2010-09-04 Thread Daniel Lohse
. I'll experiment with the other objects to see if I can figure out what's different about this one. thanks again for your help and for recommending ways to troubleshoot this. - Michael On Thu, Sep 2, 2010 at 9:32 PM, Daniel Lohse annismcken...@googlemail.com wrote: So, I had a look

Re: [symfony-users] Problem using ahAdminGenerataorThemesPlugin, Customizable titles for sf 1.4

2010-09-03 Thread Daniel Lohse
Mhm, as I'm the plugin developer I ought to know why it's not working for you. :) A few things come to mind: 1. Did you clear the cache after installing my plugin? 2. Does it work for any one of the generator.yml's sections (new, edit etc.)? 3. Does it work if you set the title in the view.yml

Re: [symfony-users] Problem using ahAdminGenerataorThemesPlugin, Customizable titles for sf 1.4

2010-09-03 Thread Daniel Lohse
PM, Daniel Lohse annismcken...@googlemail.com wrote: Mhm, as I'm the plugin developer I ought to know why it's not working for you. :) A few things come to mind: 1. Did you clear the cache after installing my plugin? 2. Does it work for any one of the generator.yml's sections (new, edit

Re: [symfony-users] Problem using ahAdminGenerataorThemesPlugin, Customizable titles for sf 1.4

2010-09-03 Thread Daniel Lohse
No On Thu, Sep 2, 2010 at 8:56 PM, Daniel Lohse annismcken...@googlemail.com wrote: Mhm, as I'm the plugin developer I ought to know why it's not working for you. :) A few things come to mind: 1. Did you clear the cache after installing my plugin? 2. Does it work for any one

Re: [symfony-users] Session won't last

2010-09-03 Thread Daniel Lohse
There's a configuration setting for this in the php.ini. :) I think it's session.gc_maxlifetime or so. Daniel Sent from my iPhone4 On Sep 3, 2010, at 3:28 PM, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Why won't my session last longer than 30 minutes? This is my factories.yml:

Re: [symfony-users] File Download too big for memory

2010-09-02 Thread Daniel Lohse
Off the top of my head, I'd say that you might want to take a look at the stream classes (or functions) in PHP. Mind you, this is just a thought, as I've never done anything like that. ;-) Cheers, Daniel Sent from my iPhone4 On Sep 2, 2010, at 9:42 AM, Gareth McCumskey gmccums...@gmail.com

Re: [symfony-users] Redirect on login

2010-08-23 Thread Daniel Lohse
I guess you're using sf(Doctrine)GuardPlugin? Look at the README, it's in there. :) Cheers, Daniel On 23.08.2010, at 15:53, cosmy wrote: Hi all. I want that every time i do the login process the session to be resetted, and the login process redirect to the home, and not the page requested.

Re: [symfony-users] Storing a list of arbitrary length to the DB

2010-08-23 Thread Daniel Lohse
You are going to model this as a many-to-many relation between a (one) Recipe and its (many) Ingredients where each Recipe can have an infinite number of ingredients and one ingredient can belong to an infinite number of recipes. :) You'll find a description of how to do many-to-many

Re: [symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin : Unexpected extra form field named Interests error

2010-08-18 Thread Daniel Lohse
Hmm, this is a deeply nested embedded relation – am I right, that you're really not editing the profile but the user – which embeds the profile which embeds the interests? You could try to check out the trunk in the Subversion repository because nested embedded relations were added recently by

Re: [symfony-users] Re: Symfony 1.4-compatible minifier for Symfony now included in Apostrophe, can be used in any Symfony project

2010-08-17 Thread Daniel Lohse
) just to figure out what the filename is. (: Opening all of the files, slurping them in and md5'ing them on every page access is overhead we do not want. So it makes more sense to have a cache key. On Aug 16, 9:13 am, Daniel Lohse annismcken...@googlemail.com wrote: Sorry for being a bit slow

Re: [symfony-users] link_to_function

2010-08-17 Thread Daniel Lohse
the link_to_function jscript tag. Do let me know., regards, parijat On Mon, Aug 16, 2010 at 4:42 PM, Daniel Lohse annismcken...@googlemail.com wrote: Give each of them a distinct parameter subaction like in module/action?subaction=bla as the URL and change the bla with your

Re: [symfony-users] Re: Symfony 1.4-compatible minifier for Symfony now included in Apostrophe, can be used in any Symfony project

2010-08-16 Thread Daniel Lohse
Sorry for being a bit slow today: why would we need cache invalidation? If the filename of the compacted file(s) is a hash generated from the contents of the file then after one file changes and the scripts/stylesheets are re-generated the filename changes. The browser then should just request

Re: [symfony-users] link_to_function

2010-08-16 Thread Daniel Lohse
Give each of them a distinct parameter subaction like in module/action?subaction=bla as the URL and change the bla with your separate events. As these URLs will never be seen by the user you can safely do that – even in symfony-land. ;-) Cheers, Daniel PS: If you're using link_to, careful to

Re: [symfony-users] Re: Install plugins programmatically?

2010-08-13 Thread Daniel Lohse
Well, while you're at it, here's a suggestion: When you are finished, do you mind posting your solution somewhere? A snippet would be nice – along with a quick explanation on how to do it. :) That'd be great (but is in no way mandatory, just a suggestion to give something back to the

Re: [symfony-users] Country City problem

2010-08-12 Thread Daniel Lohse
http://www.symfony-project.org/plugins/sfDependentSelectPlugin But you'll likely have to translate the documentation using Google Translate. ;-) Cheers, Daniel PS: I did not develop this plugin and I haven't used it, so this is just fyi. On 12.08.2010, at 15:00, Andro Fumero wrote: Good

Re: [symfony-users] Re: admin gen 1:m in one form

2010-08-10 Thread Daniel Lohse
I'm feeling pretty good now — considering that I created this plugin. :) But let me tell you that without the community's help it wouldn't be where it is today. So, sorry for hijacking this thread — but thanks @all for being such a great community! :) Cheers, Daniel Sent from my iPhone4 On

Re: [symfony-users] Re: Capturing Widget value on a form

2010-08-09 Thread Daniel Lohse
Nice! Thanks for the heads-up. :) Sent from my iPad On Aug 9, 2010, at 6:17 PM, Ricardo Jose Guzman Milanes guzman.ricardoj...@gmail.com wrote: Hello I solved this. It was not working because both fields were declared as primary. -- If you want to report a vulnerability issue on

Re: [symfony-users] Capturing Widget value on a form

2010-08-08 Thread Daniel Lohse
Hey there, I actually didn't quite spot the question in your post. Also, the information you provided will not be enough to help you. Please show us your form code. Where are these widgets coming from — did you just add them yourself or are they in the base form for this model object? Cheers,

Re: [symfony-users] Re: Capturing Widget value on a form

2010-08-08 Thread Daniel Lohse
Those widgets should appear there by default *if* the schema is correct. Symfony adds them itself – again, *if* the schema file is correct. Can you show us the base form class (BaseAreamedicapersonaForm.class.php) in a pastebin? Cheers, Daniel On 08.08.2010, at 20:57, Ricardo Jose Guzman

Re: [symfony-users] Re: Error running the first Jobeet page

2010-08-03 Thread Daniel Lohse
Post the contents of this file (ProjectConfiguration.class.php) here or on pastebin.com. Did you have a look at line 14 in this file? Cheers, Daniel On 04.08.2010, at 00:31, Marcio Pozzato wrote: Thank you. Now, I need run the new Jobeet aplication through web browser, but I can't because

Re: [symfony-users] Re: Semgentation fault +Infinite loop... huh ?

2010-08-03 Thread Daniel Lohse
Try: $this-_set('is_activated', true); Cheers, Daniel On 04.08.2010, at 02:25, Tristan wrote: If i remove the parent:: it still not work : public function setIsActivated($value) { if ($value == false) {

Re: [symfony-users] Re: Semgentation fault +Infinite loop... huh ?

2010-08-03 Thread Daniel Lohse
I hope you read what I wrote: $this-_set(...)! Don't forget the underscore before the set! ;-) Or did I miss something? Cheers, Daniel Sent from my iPhone On Aug 4, 2010, at 4:03 AM, Tristan tristan.bessou...@gmail.com wrote: (daniel Lohse, we tryed $this-set('is_activated', true

Re: [symfony-users] Trying to redirect a user to a login page with ajax: 401 unauthorized

2010-07-31 Thread Daniel Lohse
Take a look at how they did this in the apostrophePlugin (trac.apostrophenow.org/plugins/apostrophePlugin/branches/1.4) – it involved a 2-stage process. :) Cheers, Daniel PS: Sorry for being so succinct – I'm pretty tired but wanted to point you in the right direction. :) On 01.08.2010, at

Re: [symfony-users] We are facing some issues with symfony backend.

2010-07-24 Thread Daniel Lohse
You could also define a convertXXColumn($value) method inside your form class. Here's how it looks like – given that your column is named created_at (just as an example): public function convertCreatedAtColumn($value) { return ('' === $value null === $this-getObject()-getCreatedAt()) ? false

Re: [symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin many to many

2010-07-21 Thread Daniel Lohse
. I'm also sorry to the bringer of bad news. :( Cheers, Daniel On 16.07.2010, at 12:10, François SEDE wrote: Thanks you. 2010/7/16 Daniel Lohse annismcken...@googlemail.com Sorry for not answering in a more timely manner — I'm the plugin developer. :) But as it's a bit late I'll answer

Re: [symfony-users] Re: ahDoctrineEasyEmbeddedRelationsPlugin many to many

2010-07-21 Thread Daniel Lohse
/lib/form/jmsBaseCollectionForm.class.php I have only looked at your plugin superficially, but you might be able to solve some of your problems with nested embedded relations/multiple relations by using some of this code. Kind regards, Johannes On 21 Jul., 13:19, Daniel Lohse annismcken

Re: [symfony-users] Re: EmbedForms/MainForm dependent field

2010-07-19 Thread Daniel Lohse
Take a look at the More with symfony book — chapter Advanced Forms. :) Daniel Sent from my iPhone On Jul 19, 2010, at 3:06 PM, cloui...@gmail.com cloui...@gmail.com wrote: Ok, do you have some example for the post-validator with embedform ? On 19 juil, 13:49, Johannes

Re: [symfony-users] Show in admin

2010-07-17 Thread Daniel Lohse
You could take a look at my plugin ahAdminGeneratorThemesPlugin here: http://www.symfony-project.org/plugins/ahAdminGeneratorThemesPlugin The advanced theme includes a show view – but it takes a bit of work to get it installed. On the other hand: you could just look for everything related to

Re: [symfony-users] Admin generator : Select items on different pages and run a batch action on this items

2010-07-16 Thread Daniel Lohse
This can only be done by using JavaScript — but it requires a bit of work. You'd need to write some code that saves the selected items in a JavaScript object and also make the grid that is pageable here do the loading of its content with Ajax. After that, you can have a look at how multiple

Re: [symfony-users] manipulation a form with the eventDispatcher and form.post_configure

2010-07-16 Thread Daniel Lohse
What do you mean by I don't have the form as reference? Look at the ahDoctrineEasyEmbeddedRelationsPlugin and search for form.post_configure. Although the callback is inside the form itself, I am using the event subject, so don't let that throw you off. :) Cheers, Daniel Sent from my iPhone

Re: [symfony-users] Re: Admin generator : Select items on different pages and run a batch action on this items

2010-07-16 Thread Daniel Lohse
Yes, that'd also be possible and not (necessarily) involve JavaScript. But both approaches do have one shortcoming: clearing that list should be possible! This is actually pretty vital because when does this list expire or is cleared? You'd need to do something á la Google Mail that displays a

Re: [symfony-users] Re: Customize admin generator to parse generator.yml with custom properties

2010-07-15 Thread Daniel Lohse
('list.display') or again $this-getI18NString ('list.title') i'd like to find a way to make $this-configuration-getValue('list.batch_position') parsable with a custom function... On 12 Lug, 12:25, Daniel Lohse annismcken...@googlemail.com wrote: This sounds much too abtract (custom_option1

Re: [symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin many to many

2010-07-15 Thread Daniel Lohse
Sorry for not answering in a more timely manner — I'm the plugin developer. :) But as it's a bit late I'll answer your question tomorrow; I hope that alright. ;-) Cheers, Daniel Sent from my iPad On Jul 15, 2010, at 12:29 PM, François SEDE francois.s...@gmail.com wrote: Hi, I'm using

Re: [symfony-users] Method option in sfPropelRoute not accepted

2010-07-14 Thread Daniel Lohse
http://www.symfony-project.org/reference/1_4/en/10-Routing#chapter_10_sub_method_for_criteria :) On 14.07.2010, at 13:20, HAUSa wrote: I got a feeling that my method option is ignored: advertisement_show: url: /:sf_culture/advertisement/show/:id/:slug/* class: sfPropelRoute

Re: [symfony-users] Re: Method option in sfPropelRoute not accepted

2010-07-14 Thread Daniel Lohse
jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Doesn't work either, gets ignored as well On 14 jul, 13:37, Daniel Lohse annismcken...@googlemail.com wrote: http://www.symfony-project.org/reference/1_4/en/10-Routing#chapter_10 ... :) On 14.07.2010, at 13:20, HAUSa wrote: I got a feeling

Re: [symfony-users] Re: Method option in sfPropelRoute not accepted

2010-07-14 Thread Daniel Lohse
, at 3:38 PM, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Doesn't work either, gets ignored as well On 14 jul, 13:37, Daniel Lohse annismcken...@googlemail.com wrote: http://www.symfony-project.org/reference/1_4/en/10- Routing#chapter_10... :) On 14.07.2010, at 13:20, HAUSa

Re: [symfony-users] The More with symfony book Advanced Forms - Delete image

2010-07-14 Thread Daniel Lohse
Look at the block of PHP code just before the subheading Form Events. There you'll find that they set the with_delete option to false – set this to true and add the filename_delete validator with an sfValidatorPass class (you can look that up here:

Re: [symfony-users] How to use database for Configurations

2010-07-06 Thread Daniel Lohse
I urge you to take a look at the csSettingsPlugin as it handles all of this for you (manage settings in admin generator, caching etc.). Cheers, Daniel Sent from my iPad On Jul 6, 2010, at 8:18 AM, Apul Gupta apulmca...@gmail.com wrote: Hi, I was using app.yml for configuration purpose but

Re: [symfony-users] Re: Determine sfGuardPermission required for action, from within an action or filter

2010-07-02 Thread Daniel Lohse
Have a look at the bundled filters, you'll find your answers there. :) Daniel On 02.07.2010, at 02:24, Donald Tyler wrote: Excellent, thanks for the pointer. Now, it would be perfect if I could do the same from within a filter. Is there a similar method I can use, or is there a way to

Re: [symfony-users] Re: Important sfDoctrineApplyPlugin news

2010-07-02 Thread Daniel Lohse
You can add this in your project's schema.yml, once it's released. :) Cheers, Daniel On 02.07.2010, at 10:34, lambert_b wrote: Hi Tom, Great news! We had a discussion already half a year ago on this topic. Did not have the time to do it myself as I was full of deadline projects. Had a

Re: [symfony-users] Re: Use database in app.yml

2010-07-02 Thread Daniel Lohse
I'd probably go with a plugin that handles dynamic and configurable settings that live in a database, like csSettingsPlugin. :) Cheers, Daniel On 02.07.2010, at 11:41, Tom Ptacnik wrote: I'm not sure it's possible to do it this way. Why do you want to insert some configuration into the

Re: [symfony-users] Embedding a form n times - Unexpected extra form field

2010-07-01 Thread Daniel Lohse
You might want to take a look at this: http://www.symfony-project.org/plugins/ahDoctrineEasyEmbeddedRelationsPlugin Cheers, Daniel On 01.07.2010, at 06:04, antonydb wrote: Hello, I'm having trouble validating a form. I have embedded another form within it n times, where n is a number

Re: [symfony-users] Re-populate file input field after validation error

2010-06-29 Thread Daniel Lohse
Hey there, although it's obsolete and has been merged into another plugin you could have a look at this: http://www.symfony-project.org/plugins/pkPersistentFileUploadPlugin Cheers, Daniel On 29.06.2010, at 16:23, Philipp Schächtele wrote: I'm currently working on a form where users can

Re: [symfony-users] Re: backend module

2010-06-26 Thread Daniel Lohse
Maybe this will help you: http://www.symfony-project.org/tutorial/1_4/en/whats-new#chapter_a2fae23c9403b0e9ec99806fccf6b53e_sub_sfformfilterdoctrine Yes, it only talks about adding a new field and how to write the method involved but you can do that too. Just unset the field you want to have a

Re: [symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin Problem

2010-06-24 Thread Daniel Lohse
Oh man, oh man, the plugin developer here. :) Kind of an extreme example, don't you think? *hmm* Nested relations with my plugin are planned but it's an enormous amount of work. I'm not saying anything but your last sentence was not nice, you know? You can of course develop your own, I'm doing

Re: [symfony-users] change label in ahDoctrineEasyEmbeddedRelationsPlugin

2010-06-23 Thread Daniel Lohse
I'll have to take a look at that — please ping me again in a little while (this evening or tomorrow morning). Daniel Sent from my iPad On Jun 23, 2010, at 10:29 AM, slau susan@gmx.de wrote: Hi everybody, I am using ahDoctrineEasyEmbeddedRelationsPlugin to embed pictureForms within

Re: [symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin bug when sfWidgetFormInputFile used?

2010-06-23 Thread Daniel Lohse
Yes, this is — regrettably — a known and documented shortcoming of this plugin. I'll have to spend some time getting this to work. :( Daniel Sent from my iPad On Jun 23, 2010, at 5:21 PM, slau susan@gmx.de wrote: Hi, bug or feature or developer mistake? I try to use

Re: [symfony-users] methods wiped out by svn export - using externals

2010-06-17 Thread Daniel Lohse
You shouldn't edit files inside folders that are externals definitions. ;-) What you can do is copy the sfGuardUser.php to your lib/ folder and make your modifications there. This should work. The sfGuardUser.php file should be empty. Come to think of it: what are you trying to do with your

Re: [symfony-users] methods wiped out by svn export - using externals

2010-06-17 Thread Daniel Lohse
Modifications inside folders that are externals definitions are not committed alongside the project it is defined in! This will only work when you have commit rights to the project of the externals definition which is not the case with sfGuardPlugin. :) Cheers, Daniel Sent from my iPad On

Re: [symfony-users] Possible to write a table-less doctrine schema definition?

2010-06-15 Thread Daniel Lohse
AFAIK, there is no such possibility – you're going to have to craft them by hand. :) Cheers, Daniel On 15.06.2010, at 14:15, Christian Schaefer wrote: Hi all, I want to write a plugin that amongst other features contains a Form class. For extensibility reasons I would like it to

Re: [symfony-users] accessing action instance in sfComponent

2010-06-10 Thread Daniel Lohse
This actually is possible but it's pretty long-winded so here we go: In your component call $this-getController()-getActionStack()-getLastEntry()-renderPartial(); I'm not sure whether you'd have to call getAction() after the getLastEntry() above, so try that out. And I'm also going to say

Re: [symfony-users] Re: Math problem in my diploma thesis

2010-06-08 Thread Daniel Lohse
, 16:05, Daniel Lohse annismcken...@googlemail.com wrote: Hey guys, I'm in the middle of my diploma thesis and I have a little Math problem. I needed an algorithm that takes arrays with numbers in them and calculates all possible combinations out of these – much like a tree diagram, only

[symfony-users] Math problem in my diploma thesis

2010-06-06 Thread Daniel Lohse
Hey guys, I'm in the middle of my diploma thesis and I have a little Math problem. I needed an algorithm that takes arrays with numbers in them and calculates all possible combinations out of these – much like a tree diagram, only in code. :) So, I found something on the net (please don't bash

Re: [symfony-users] Re: Symfony 1.4 project with embedded forms, user data in embedded forms not being saved

2010-05-31 Thread Daniel Lohse
Last time I heard, embedded forms are saved when calling a form's save() method. This change was in the 1.3 1.4 release. Daniel Sent from my iPad On Jun 1, 2010, at 2:27 AM, ken marfillas...@gmail.com wrote: I would advise tracing through sfDoctrineForm::save() method. Embedded forms save

[symfony-users] @Kris Wallsmith regarding ticket 8571

2010-05-30 Thread Daniel Lohse
Sorry for posting this to the whole group. Hey Kris, I saw that you applied my patch for translating the 'add_empty' option passed to sfWidgetFormDoctrineChoice widget but immediately rolled it back. I reopened it with information on why your thinking may be wrong. Could you please take a

Re: [symfony-users] ahDoctrineEasyEmbeddedRelations plugin is fail to get father's alias and suggest a patch for it

2010-05-28 Thread Daniel Lohse
my iPad On May 28, 2010, at 1:13 PM, SNake! snak...@gmail.com wrote: Hi guys, I think Daniel Lohse did a great job on ahDoctrineEasyEmbeddedRelations plugin: http://www.symfony-project.org/plugins/ahDoctrineEasyEmbeddedRelationsPlugin/1_3_4 But I encounter some problems. When I do the same

Re: [symfony-users] Affordable managed hosting for use with symfony

2010-05-28 Thread Daniel Lohse
Take a look at what Servergrove has to offer. All their VPS instances are alright and they come pre-configured with symfony. Shared hosting is not an option, obviously (don't even consider it). :) Sent from my iPhone On May 28, 2010, at 10:23 PM, Yair Silbermintz mr.gl...@gmail.com wrote:

Re: [symfony-users] Re: how to prevent save in preInsert?

2010-05-27 Thread Daniel Lohse
http://www.doctrine-project.org/projects/orm/1.2/docs/manual/event-listeners/en#dql-hooks scroll down a little bit to the line: $event-skipOperation(); This should do what you want? Daniel On 27.05.2010, at 16:41, comb wrote: Hey thanks, but it does not work :-( class FloodCheckListener

Re: [symfony-users] ahDoctrineEasyEmbeddedRelations Problem

2010-05-26 Thread Daniel Lohse
Erm, plugin developer here ;-) – 1. You don't need to call embedRelation(); that's called internally by the plugin's embedRelations() method. 2. Calling embedRelation() AND embedForm() AND embedRelations() on the same field names is just wrong – you only need to call embedRelations() once with

Re: [symfony-users] Where to put a WSDL file

2010-05-21 Thread Daniel Lohse
Yeah, the data directory seems to be the correct location for such a file. :) On 21.05.2010, at 16:11, Tom Haskins-Vaughan wrote: Hey guys, In my everlasting quest for doing things the right way, I'm just wondering where I should put a WSDL file in a plugin. I know it's not really a big

Re: [symfony-users] Is there any way to override symfony core class such as sfModelGenerator ?

2010-05-19 Thread Daniel Lohse
These classes are used in the admin generator and the used class is directly defined in the generator.yml file that inside the admin-generated module under config/. Cheers, Daniel On 19.05.2010, at 17:09, Jérôme TEXIER wrote: Hi, I would override sfModelGenerator class in order to change

Re: [symfony-users] Offbeat: Javascript

2010-05-14 Thread Daniel Lohse
Hey there, this depends upon the implementation of your form. What's the value you'd want to send with the form after the user has selected something in the first select box and in the second select box? Is is a single value or does each select box have its own value you want to send to your

Re: [symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin with sfWidgetFormDoctrineJQueryAutocompleter (sfFormExtraPlugin)

2010-05-12 Thread Daniel Lohse
or the person who made the jQuery integration have an idea, I would be very grateful. Thanks for your time and courage for you thesis. Luc Didry 2010/5/12 Daniel Lohse annismcken...@googlemail.com: That's a tough case for sure. I'm the plugin developer although the jQuery integration wasn't provided

Re: [symfony-users] [RFC] sfUnifiedGuard for Symfony 2

2010-05-05 Thread Daniel Lohse
Yes, that really is awesome! +1 Sent from my iPhone On May 5, 2010, at 5:34 PM, Javier Garcia tirengar...@gmail.com wrote: On 05/04/2010 01:16 PM, Michał Piotrowski wrote: Sounds interesting? Yes, i think would be interesting merging sfDoctrineGuardPlugin, sfDoctrineGuardExtraPlugin and

Re: [symfony-users] Re: [backend] blank page after I've installed sfDoctrineGuardPlugin

2010-05-04 Thread Daniel Lohse
It's in the plugin itself but when you need to customize the templates for the signin action then you'll need to create a module in your app (frontend), create a templates directory inside it and copy over the signinSuccess.php from the plugin. At this point you can customize it and symfony

Re: [symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin with javascript/ajax

2010-05-04 Thread Daniel Lohse
Hey there, the plugin developer here. :) Just to confirm: 1. How did you install the plugin (via the symfony plugin:install task, via Subversion or Git)? 2. Are you already using any JavaScript framework in your symfony project? You'll need to have jQuery for this part to work as the

Re: [symfony-users] html in toString?

2010-05-02 Thread Daniel Lohse
That is symfony's output escaping at work in the view layer. You'll need to read up on that here: http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chapter_07_output_escaping Cheers, Daniel On 02.05.2010, at 10:44, comb wrote: Hey :-) How can I use some html in a __toString

Re: [symfony-users] Re: how to put a class on list element using sfform?

2010-04-29 Thread Daniel Lohse
%hidden_fields%/li\n; On Apr 29, 1:57 pm, Daniel Lohse annismcken...@googlemail.com wrote: You are kidding, right? Man, there's your li right there, so just put class=clearfix into it do it looks like this: $rowFormat = li class=clearfix\n %error%%label%\n %field% %help%\n

Re: [symfony-users] Re: TIP: FOR USERS UPDATING DATABASE IN PROPEL

2010-04-28 Thread Daniel Lohse
Because just building your schema does not change your database at all. If you changed a column type from string to int then you'll have to manually change that column type in the database. Migrations are a way to do that automatically (kind of). Daniel On 28.04.2010, at 09:58, Parijat Kalia

Re: [symfony-users] how to put a class on list element using sfform?

2010-04-28 Thread Daniel Lohse
A CSS class? You've got to be a bit more specific than that. :) Cheers, Daniel On 28.04.2010, at 10:22, mel_06 wrote: hi guys! i need to insert a class for my list element using sfform? thanks! -- If you want to report a vulnerability issue on symfony, please send it to security

Re: [symfony-users] Re: TIP: FOR USERS UPDATING DATABASE IN PROPEL

2010-04-28 Thread Daniel Lohse
the schema file up to date. This you do so that when you run build-model, it reads an up to date schema file. On Wed, Apr 28, 2010 at 1:01 AM, Daniel Lohse annismcken...@googlemail.com wrote: Because just building your schema does not change your database at all. If you changed a column type

Re: [symfony-users] Re: how to put a class on list element using sfform?

2010-04-28 Thread Daniel Lohse
. On Apr 28, 5:37 pm, Daniel Lohse annismcken...@googlemail.com wrote: Every widget has 2 constructor arguments: $options and $arguments. You have to pass array('class' = 'your_css_class') as the $arguments argument, that is, as the second argument. But what kind of widget is your list

Re: [symfony-users] Re: how to put a class on list element using sfform?

2010-04-28 Thread Daniel Lohse
-setFormFormatterName('list'); --- will change the form to list with li instead of using tables i need the li's to look like li class=clearfix, instead of just li i hope this one is clear. On Apr 28, 5:55 pm, Daniel Lohse annismcken...@googlemail.com wrote: Well, that doesn't get you much of an answer

  1   2   3   >