[symfony-users] Re: Advantages over foreign key

2010-06-21 Thread Tom Ptacnik
http://en.wikipedia.org/wiki/Foreign_key http://www.youtube.com/watch?v=KBYU5bAR0_g On 17 čvn, 14:53, Arun Raj R aru...@gmail.com wrote: Thanks Dan Harabagiu, I used it in symfony and it is very useful . But some time i want to use plain php. I don't know how to manage these foreign keys in

[symfony-users] Change the maxperpage value for the pager

2010-06-21 Thread Winnie
Hello, I'm working on a module made with the admin generator and i want to let the user change the pager maxperpage value... I have made a form and an action who get the value entered by the user but How to send it to the pager? Can someone help me ? thanks. -- If you want to report a

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

2010-06-21 Thread Massimiliano Arione
On 17 Giu, 12:13, Daniel Lohse annismcken...@googlemail.com wrote: 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. That's very interesting. I never heard anything about it, but it

[symfony-users] [symfony users] FCKEditor/CKEditor symfony 1.4

2010-06-21 Thread Jérémie
Hi all, I must be dumb, but I can't find how to use (F)CKEditor with symfony 1.4. I tried to follow these steps (http://trac.symfony-project.org/wiki/HowToUseFCKeditor ) but I don't understand everything, and it doesn't work anyway. Can somebody help me? Thaanks! Jérémie -- If you

AW: [symfony-users] [symfony users] FCKEditor/CKEditor symfony 1.4

2010-06-21 Thread Christopher Schnell
Hi, Does it have to be FCKEditor? If TinyMCE is also an option, you could try with the sfFormExtraPlugin and the documentation at http://www.symfony-project.org/blog/2008/10/18/spice-up-your-forms-with-some -nice-widgets-and-validators Regards, Christopher. -Ursprüngliche Nachricht-

[symfony-users] PHP in admin generator generator.yml

2010-06-21 Thread HAUSa
Is it possible to use PHP code in the .yml generator files of the admin generator? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post

Re: AW: [symfony-users] [symfony users] FCKEditor/CKEditor symfony 1.4

2010-06-21 Thread Jérémie
Does it have to be FCKEditor? No, it's just that it's the first one I found looking for a WYSIWYG editor with symfony :) Finally, I managed to make it work, not using the symfony package, but by downloading directy from the official website and by following their instructions. Thanks for your

Re: [symfony-users] Abridged summary of symfony-users@googlegroups.com - 10 Messages in 8 Topics

2010-06-21 Thread joost . farla
Beste, Tot en met 27 juni ben ik niet aanwezig op kantoor. U kunt voor dringende zaken contact opnemen met Wout Withagen: w...@freshheads.com of 013 5448761. Met vriendelijke groet, Joost Farla joost.fa...@freshheads.com - - freshheads grafisch ontwerp en internet applicaties Dunantstraat 1c

[symfony-users] difference of doctrine query( something I miss)

2010-06-21 Thread scvroin
Hello, As I explain here http://forum.symfony-project.org/index.php/t/28144/ I resolved the jobeet application on my shared host but I crashed on my localhost. The first problem that fails on mylocalhost is at the first doctrine query, which of course is diffrent from the one at my shared host.

[symfony-users] Re: PHP in admin generator generator.yml

2010-06-21 Thread axe
yes... be careful when using php code at the end of a line... you must add \n to manually break a line in yaml file.. e.g.: ... max_per_page: ?php echo $my_number.\n ? ... On Jun 21, 2:10 pm, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Is it possible to use PHP code in the

[symfony-users] Re: PHP in admin generator generator.yml

2010-06-21 Thread slau
sure. you can do that in all yml files just like that ?php echo $i; ? but be aware, that you need to add something behind this to make sure, that the line-breaks still exists. for example: Article: name: headline_?php echo $i; ? # something On Jun 21, 2:10 pm, HAUSa

[symfony-users] Doctrine_Cache_Memcache and nested joins

2010-06-21 Thread soulfly
Hi! I have problem with Doctrine_Cache_Memcache and left joins in nested way. For example I have such SELECT: $query = Doctrine_Query::create() -select('*') -from('Objects o') -leftJoin('o.DicRgn b') -leftJoin('o.DicBldtp c')

[symfony-users] Re: Change the maxperpage value for the pager

2010-06-21 Thread slau
Hi, it is a bit old. but still should work: http://www.symfony-project.org/book/1_2/14-Generators list: max_per_page: 2 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are

[symfony-users] Re: Change the maxperpage value for the pager

2010-06-21 Thread slau
sorry, wrong content. but did you try this? http://levelx.me/technology/programming/symfony-admin-generator-calling-actions-with-custom-parameters/ -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because

[symfony-users] Re: Get record id and set it into form

2010-06-21 Thread titiyoyo
Hi there thanks for that. for now i have this : public function executeNew(sfWebRequest $request) { $fiche = new Fiche(); $fiche-save(); $artiste = new Artiste(); $a = $fiche-getId(); $artiste-setIdFiche($a); $this-form = new

[symfony-users] Re: Get record id and set it into form

2010-06-21 Thread B.O.G
Could it be: $artiste-setFicheId($a); ¿? How is it in you schema.yml ??? On Jun 22, 8:06 am, titiyoyo terence.pi...@gmail.com wrote: Hi there thanks for that. for now i have this :   public function executeNew(sfWebRequest $request)   {         $fiche = new Fiche();        

[symfony-users] Doctrine+EmbededForms+Save

2010-06-21 Thread B.O.G
Hi, I'm trying to save my form, but it just stay in the create action without showing not error. I have a Main form: Comunication a embedded form: Comunication_to But when i click save button it gets to the create action, and it does not show any error (in dev) . Could it be some

[symfony-users] Translation in form class

2010-06-21 Thread HAUSa
How can I get a I18n translation in my form class? I want to use the __() function in my UserForm.class.php. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups

Yan: [symfony-users] Translation in form class

2010-06-21 Thread Guychmyrat Amanmyradov
try this : sfContext::getInstance()-getI18n()-__('text); --- 21/06/10 Pzt tarihinde HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com şöyle yazıyor: Kimden: HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com Konu: [symfony-users] Translation in form class Kime: symfony users

[symfony-users] Re: [symfony users] FCKEditor/CKEditor symfony 1.4

2010-06-21 Thread Richtermeister
Simple, just use this plugin: http://www.symfony-project.org/plugins/sfFCKEditorPlugin, which gives you a simple widget to render the editor. You'll still have to download the fck editor library and put it in the right spot (/js/fckeditor I believe), but that's it. Easy as pie. Daniel On Jun

[symfony-users] Re: Change the maxperpage value for the pager

2010-06-21 Thread Richtermeister
Look at the configuration class, I believe it contains a method which has the final say on the max pager value. I haven't tried this myself, but that's what I would try first. Daniel On Jun 21, 12:54 am, Winnie chaiseenb...@gmail.com wrote: Hello, I'm working on a module made with the admin

[symfony-users] Removing a cached template fragment does not work (sf 1.4)

2010-06-21 Thread Matthias N.
Hi, I have a template fragment (using the cache() helper) and the name of it is foo/bar/baz. It is saved in the filesystem at my-domain/all/myModule/show/_sf_cache_key/foo/bar/baz/slug/home.cache I guess the slug/home is because there is a routing parameter slug with the value home. So.. the

Re: [symfony-users] Re: Doctrine+EmbededForms+Save

2010-06-21 Thread jota
Maybe you can use hidden fields, but I think it can have security lacks, a user could modifie the values with firebug for example. The better solution would be, unset those fields in the form and override the save method of the model to autoset the values. To unset the fields in the form put

[symfony-users] Set form value from controler

2010-06-21 Thread titiyoyo
Hi there, i have a simple and basic quesion here about symfony : how can i set values into a form field from the controller in symfony ? I looked again and again and again without finding an answer. So for now i have this below. Please help me, it's quite urgent !! public function

Re: [symfony-users] Re: sfDoctrineGuardUser: Unable to stay signed in

2010-06-21 Thread ashton honnecke
This is what I have in configurationuser on the page load after sign in (from the webDebugToolbar): attributeHolder: sfGuardSecurityUser: { user_id: '173' } On the next pageload, it goes away (no sfGuardSecurityUser at all) I printed the session at the beginning of an action (right after

[symfony-users] Re: sfDoctrineGuardUser: Unable to stay signed in

2010-06-21 Thread pghoratiu
I would say it's something wrong at the PHP configuration level, what is your environment (OS, PHP, symfony version, ...?). gabriel On Jun 21, 8:51 pm, ashton honnecke ahonne...@gmail.com wrote: This is what I have in configurationuser on the page load after sign in (from the

[symfony-users] Re: Doctrine+EmbededForms+Save

2010-06-21 Thread B.O.G
Happily i could do this: protected function processForm(sfWebRequest $request, sfForm $form) { //$form-bind($request-getParameter($form-getName()), $request- getFiles($form-getName())); $campos = $request-getParameter($form-getName()); $campos['user_id'] =

Re: [symfony-users] Re: sfDoctrineGuardUser: Unable to stay signed in

2010-06-21 Thread ashton honnecke
In order to test if the issue lay in the environment or in the code, I set up a new vhost and checked everything out again at various revisions. I can't seem to reproduce the issue at all on the newly checked out vhost. So this issue has been resolved I think. Thanks! On Mon, Jun 21, 2010 at

[symfony-users] Inserting same form multiple entries at the same time

2010-06-21 Thread mo.mughrabi
Hello, I been trying all day to do multiple insert for the same form based on a number and i couldn't go any where with it. I hope someone here would be help me out... am using admin generator on 1.4 doctrine. I have a form which i generated with only two fields. what am trying to do is, based on

Re: [symfony-users] Re: sfDoctrineGuardUser: Unable to stay signed in

2010-06-21 Thread ashton honnecke
Nope, it came back after I cced and rebuilt the models. On Mon, Jun 21, 2010 at 2:05 PM, ashton honnecke ahonne...@gmail.com wrote: In order to test if the issue lay in the environment or in the code, I set up a new vhost and checked everything out again at various revisions.  I can't seem to

Re: Yan: [symfony-users] Translation in form class

2010-06-21 Thread Richtermeister
Ideally you pass the I18N instance into the form. That way you don't couple your forms to the context (makes forms hard to test). For example, from within an action you can say: $form = new WhateverForm(array(), array(i18n = $this - getContext() - getI18n())); and inside the form: $i18n =

Re: [symfony-users] Re: Get record id and set it into form

2010-06-21 Thread Michael Hodges
I'm having exactly this problem too and have not resolved it yet. Using xdebug I note that the SQL statement doing the actual INSERT of the detail record does not include the foreign key. I plan on making the foreign key a hidden field on the form which will hopefully make it available in the