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

2010-06-22 Thread Tom Ptacnik
Does your form has input (hidden) for this id? Show your form code. (setup, configure, ...) On 21 čvn, 15:06, 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] How to pass PHP values to addJavascript() (or something else) ?

2010-06-22 Thread François
Hi, I'd like to pass values to my JS script when I call it. So I look the API for the addJavascript() method, herre is it : addJavascript ($file, $position, $options) $file The JavaScript file $position Position $optionsJavascript options Adds javascript

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

2010-06-22 Thread slau
just found that presentation: http://www.slideshare.net/jcleveley/working-with-the-admin-generator slide: 22-23 : Dynamic MaxPerPage that should help -- 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] Load partial with ajax problem

2010-06-22 Thread wueb
Hi I made this JavaScript function to load a partial. function renderPartial(partial, div, params){ $('.loader').show(); $(div).load( partial, params, //params = { var1 : 2, var2 : 1 } function() {$('.loader').hide();} ); } When i call it everything works,

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

2010-06-22 Thread Gareth McCumskey
Quite simple as the new record Id is inserted on save. If you use Propel and have the following for example: $obj_to_save = new ModelClass(); $obj_to_save-setField1('value1'); $obj_to_save-setField2('value2'); $obj_to_save-save(); Then you can get the ID right after save with:

[symfony-users] Smarty and Symfony

2010-06-22 Thread Dan Harabagiu
Hy symfony users, I have a site written using Smarty, is there anyway I can migrate it to symfony? or at least develop additional features using symfony? Dan. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this

Re: [symfony-users] Smarty and Symfony

2010-06-22 Thread Eno
On Tue, 22 Jun 2010, Dan Harabagiu wrote: I have a site written using Smarty, is there anyway I can migrate it to symfony? or at least develop additional features using symfony? There is an sfsmarty plugin, so its possible to use Smarty with symfony. -- -- If you want to report a

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

2010-06-22 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

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

2010-06-22 Thread Eno
On Mon, 21 Jun 2010, Matthias N. wrote: So.. the problem is I try to remove that fragment using the view cache manager but it doesn't work. I tried this but it does not work because it generates not the appropriate filename/pattern: $cacheManager-remove('@sf_cache_partial?

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

2010-06-22 Thread titiyoyo
Well now i get the Id. But basically what i did was i merged two forms (from Artiste and Fiche models) and tried to create a new Artiste from a form, and set the Fiche foreign key directly in the controler. I don't have the exact code here but it looks like this below. All this creates a new

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

2010-06-22 Thread titiyoyo
and this below gets the id alright. $a = $fiche-getId(); On 22 juin, 15:10, titiyoyo terence.pi...@gmail.com wrote: Well now i get the Id. But basically what i did was i merged two forms (from Artiste and Fiche models) and tried to create a new Artiste from a form, and set the Fiche foreign

[symfony-users] Re: Set form value from controler

2010-06-22 Thread Tom Ptacnik
If you mean how to set default values, then try setDefaults() http://www.symfony-project.org/api/1_4/sfForm#method_setdefaults On 21 čvn, 19:49, titiyoyo terence.pi...@gmail.com wrote: Hi there, i have a simple and basic quesion here about symfony : how can i set values into a form field

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

2010-06-22 Thread Tom Ptacnik
Let this form as it was (without loop) - let's call it basic form. Create another form (master form) and embed basic form x-times into it. http://www.symfony-project.org/more-with-symfony/1_4/en/06-Advanced-Forms On 21 čvn, 23:00, mo.mughrabi mo.mughr...@gmail.com wrote: Hello, I been trying

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

2010-06-22 Thread pghoratiu
The defaults for session storage are defined in apps/frontend/config/ factories.yml. If there is nothing changed vs. the defaults than the PHP session storage is used, in this case you can check the serialized sessions stored usually somewhere in /var/lib/php5 (or something similar, depending on

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

2010-06-22 Thread Winnie
Thanks for your answer, it's exactly what i want to do, BUT i can't make it work... I have implemented the code shown on the presentation but, on diapo 22, it's about js onchange submits to an action and i dont really understand what it means... In fact i have done a onchange event on my select

[symfony-users] Problems in executeUpdate when trying to extend a form

2010-06-22 Thread John
Hi, I have a problem when trying to use a MyProfileForm that extends the BasesfGuardUserForm. Here it is : In sfGuardUser/action.class.php : ... public function executeMyProfile() { $this-sf_guard_user = $this-getUser()-getGuardUser(); $this-form = new

[symfony-users] Re: Set form value from controler

2010-06-22 Thread Massimiliano Arione
On 21 Giu, 19:49, titiyoyo terence.pi...@gmail.com wrote: 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

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

2010-06-22 Thread titiyoyo
ok that's solved now ! Yes Tom you were right, but it has to be done in the executeCreate action instead of executeNew so here's the code : //ArtisteForm class class ArtisteForm extends BaseArtisteForm { public function configure() { unset( $this[id_fiche]

[symfony-users] Doctrine error (serial type of field, PostgreSQL, symfony 1.4.5, doctrine model)

2010-06-22 Thread Marxy
This happened after I insert new value to table: symfony SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: Form for inserted is auto-generated with php symfony doctrine:generate-module --with-show --non-verbose- templates frontend sprints rank_sprints

[symfony-users] Route does not add a parameter when its defined as a default one.

2010-06-22 Thread Ivo Az.
Here's examples: Link ?php echo link_to($page, '@blog?page='.$page) ? Route 1 blog: url: /blog/* param: { module: blog, action: list } Output: http://localhost/blog/page/2 Route 2 blog: url:

[symfony-users] fieldset

2010-06-22 Thread Martin Henits
Hi, Is there any way to have fieldset in symfony forms? -- 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 to this group, send email

[symfony-users] backend module

2010-06-22 Thread Martin Henits
Hi I have created a backend module to display logs (from the logs table or model). 1. since it should just display logs, there shouldn't be a +new link in the page. How can I remove that link? 2. I want to be able to filter the list based on the user field. but since the table (model) has the

[symfony-users] routing question?

2010-06-22 Thread John
Hi, I think this is a routing question. For SEO reasons, I need urls like the following: www.domain.com/acme-pump.html www.domain.com/beta-pump.html www.domain.com/boyden-pump.html ... and also: www.domain.com/acme-pumps.html www.domain.com/beta-pumps.html www.domain.com/boyden-pumps.html

[symfony-users] Doctrine schema: two realtionships between two tables

2010-06-22 Thread Johannes Trommer
Hi, I need a little help creating my schema. I am creating a gallery- module containing the two tables Gallery and GalleryPicture. First one stores the galleries with additional information, the second one stores the pictures. The tables are related over the gallery.id-field and the

[symfony-users] Day 1 - jobeet problem

2010-06-22 Thread Christian
Hi! my name is christian and i'm new with symfony framework. I found this step by step tutorial: http://www.symfony-project.org/jobeet/1_2/Propel/it/01 i have troubles during the apache configuration... this is my httpd.conf

[symfony-users] Unknown method SfGuardUser::checkPassword

2010-06-22 Thread Ricardo Jose Guzman Milanes
Hello, After installing sfDoctrineApplyPlugin and calling the Apply in a module . A message appeared telling that SfGuardUserFilter was missing. I proceed to recreate the model filters and forms. Then after recreating everything some files were missing. I copied the files in

[symfony-users] Doctrine fails on insert new value

2010-06-22 Thread Marxy
Hello! I got this error while added new value on standrd form generated by default. execute : SELECT r.sprint_id AS r__sprint_id, r.sprint_name AS r__sprint_name, r.sprint_start AS r__sprint_start, r.sprint_end AS r__sprint_end, r.sprint_summary AS r__sprint_summary, r.created AS r__created FROM

[symfony-users] Symfony design issue

2010-06-22 Thread William
Hello all, Another engineer and I are having a bit of a debate on the correct way to handle how Symfony automatically regenerates the session id when authentication, and changing credentials. We have to make a modification to the database whenever a session is regenerated when a user is logged

[symfony-users] Re: Fixture : How to define fixtures by environment

2010-06-22 Thread Ezzatron
Hi there I recently wrote an article on how to achieve exactly what you are after: http://ezzatron.com/2010/06/10/per-environment-fixtures-in-symfony/ Hope this helps :) Erin On May 7, 6:05 pm, Dong YANG jojoyangd...@gmail.com wrote: Okay,  i see, thanks again and have a good week-end :)

[symfony-users] Re: routing question?

2010-06-22 Thread Richtermeister
I would not put this on the routing system. It sounds like all you need is one route that maps your urls to your product catalog action, and figure out which product to show from there. For example, the route could be: product: url: /:manufacturer-:type param: { module: catalog, action:

[symfony-users] Doctrine queries in web debug toolbar are not shown correctly (sf 1.4)

2010-06-22 Thread Matthias N.
Hi, when I look at my web debug toolbar I see the database panel with 6 queries. The time is always: 0.00s, doctrine connection which seems to be not correct. But there is a much bigger problem: It does not show all queries, because in the log file I see much more queries and when I open the

[symfony-users] Re: Doctrine schema: two realtionships between two tables

2010-06-22 Thread rob
If you are using propel you can achieve it this way (I don't know if it'll work for Doctrine, I have never used it for any project): Gallery: columns: name: { type: string(255), notnull: true } preview_image_id: { type: integer, foreignTable: GalleryPicture, foreignReference: id }

[symfony-users] Re: Problems in executeUpdate when trying to extend a form

2010-06-22 Thread John
Nevermind, I was trying to merge a form and there was a conflict with the id DB fields. I use embedForm now and it works perfectly... On 22 juin, 18:20, John drskulls...@gmail.com wrote: Hi, I have a problem when trying to use a MyProfileForm that extends the BasesfGuardUserForm. Here it is

Re: [symfony-users] Day 1 - jobeet problem

2010-06-22 Thread Eno
On Tue, 22 Jun 2010, Christian wrote: where public_html is my apcahe DocumentRoot in whitch i have a lot of directory with different site, but when i put this link in my browser: http://localhost:8080/index.php (as the tutorial say) i can't see anything...only a blank page... can you help

Re: [symfony-users] Route does not add a parameter when its defined as a default one.

2010-06-22 Thread Eno
Remember the orderf of routes *does* matter, so you should have most specific route to least specific routes, e.g. using a wildcard will match all routes that start /blog so probably that route should be last. On Tue, 22 Jun 2010, Ivo Az. wrote: Here's examples: Link

[symfony-users] Symfony 2 Online Conference

2010-06-22 Thread Eno
Anyone attending the online conference tomorrow? I didn't receieve any technical info on how to join the conference and my email asking for info bounced back (with an error message in French malheureusement!). Maybe someone at Sensio can help me? -- -- If you want to report a