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

2010-06-22 Thread pghoratiu
Try with frontend_dev.php because index.php (the production controller) does not print out error messages. Also try to put there a phpinfo.php that prints out the phpinfo() so you can check if all your settings are allright. gabriel On Jun 22, 7:30 pm, Christian wrote: > Hi! > > my name is

[symfony-users] Re: fieldset

2010-06-22 Thread slau
well, depends on your needs. can you share more details? since $form prints you only list-elements, you can always decorate it with a by yourself. if you want it more advanced and automatically, you could create your own decorator. Have a look into this post: http://www.thatsquality.com/articles

[symfony-users] Re: backend module

2010-06-22 Thread slau
Hi, for 1) see http://www.symfony-project.org/jobeet/1_4/Doctrine/en/12#chapter_12_templates_customization you can copy out of your cache folder /cache/APP/ENV/modules/MODULENAME/templates/_list_actions.php to your module template folder and then remove the link for 2) then just change the filt

[symfony-users] Re: Symfony 2 Online Conference

2010-06-22 Thread Christian Schaefer
For those unfortunate enough to have missed the conference I tried to wrap it all up here: State of #Symfony 2 online conference - a killer feature revealed! - http://bit.ly/cU5KOi Cheers /Christian On Jun 23, 4:58 am, Eno wrote: > Anyone attending the online conference tomorrow? I didn't rec

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

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 -

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

[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 wrote: > Hi, > > I have a problem when trying to use a MyProfileForm that extends the > BasesfGuardUserForm. Here it is : > > In sfGuard

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

[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: 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: sh

[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 in.

[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 wrote: > Okay,  i see, thanks again and have a good week-end :) > > JoJo > > 2010/5/7 Pi

[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 /model/doctrine/sfGu

[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 Route 1 blog: url: /blog/* param: { module: blog, action: list } Output: http://localhost/blog/page/2 Route 2 blog: url: /blog/:page param: { module

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

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

2010-06-22 Thread glmasw
When you say 'merged two forms' did you use the embedForm() or mergeForm() or did you do this manually? Assuming that the table_a_id is the foreign key for the record in table b, Symfony will deal with this for you if you use merged or embedded forms - see "Doing More With Symfony" - Advanced Form

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

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

2010-06-22 Thread claudia_k
Don't use ajax - instead directly submit the form onchange of the selectbox. This way the page is automatically reloaded when someone changes the value in the select box. Achieving the same effect without reloading the entire page might be possible but would involve quite a lot of work for little

[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 (No

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

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

[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] Re: How to pass PHP values to addJavascript() (or something else) ?

2010-06-22 Thread Florian
hi , you could try use_dynamic_javascript. It is like an action but the view is js, so you can include php in your js template On 22 juin, 10:03, François wrote: > 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 : >

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

2010-06-22 Thread Massimiliano Arione
On 21 Giu, 19:49, titiyoyo 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 me, it's quite ur

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

[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

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

2010-06-22 Thread ashton honnecke
I hadn't altered factories.yml at all. Being in there I tried changing the session_name (it was just the default 'symfony') and the site stopped exhibiting the broken behavior. This still doesn't make sense to me, but altering the session_name certainly fixed things for now. I have a few apps wit

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

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

2010-06-22 Thread ashton honnecke
I'm not sure. How do I check on this? I tried reverting my dev instance to a known version (the same one that is in production and can be logged in to), it still exhibits this behavior, so I think that you are probably right that there is something going on outside of the code. What might that b

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

2010-06-22 Thread Tom Ptacnik
I would try instead of $artiste->setIdFiche($a); something like $artiste->setFiche($fiche); On 22 čvn, 15:10, titiyoyo 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

[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" wrote: > Hello, > I been trying all day to do mult

[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 wrote: > 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-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 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 key directly in the

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

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? > module=*

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] 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 vulne

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

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

2010-06-22 Thread pghoratiu
How does symfony store the session in your case, are you using the php session or something else? gabriel On Jun 22, 9:19 am, ashton honnecke wrote: > I am able to save information to the session manually: >       print_r($_SESSION['something']); >       $_SESSION['something'] = array('7');

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: $obj_to_save->

[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, b

[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] 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 co

[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 wrote: > Hi there > > thanks for that. > > for now i have this : > >   public function executeNew(sfWebRequest $request) >   { >         $fiche = new Fiche(); >         $fiche->

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

2010-06-22 Thread ashton honnecke
I am able to save information to the session manually: print_r($_SESSION['something']); $_SESSION['something'] = array('7'); That will save and then print Array ( [0] => 7 ) in a unprotected action. On Mon, Jun 21, 2010 at 12:14 PM, pghoratiu wrote: > I would say it's something wrong