[symfony-users] Re: Lucene-Search

2010-06-02 Thread pghoratiu
@pghoratiu: Yeah I know about Solr, but I cannot use it, like I wrote in the first post :-( Is there an alternative PHP-Search-Engine to Zend Lucene? Sphinx is a good alternative, I did not use it personally but my colleagues have and they are content with it. It very much depends on

[symfony-users] how to deal with pagination?

2010-06-02 Thread mel_06
hi guys! i'm just new to symfony. i can already list data from my database but now needs to be paginated. hope you can help me! thanks!!! my routing.yml list_laptops_by_popularity: url: /laptop/list-by-popularity param: { module: laptop, action: listByPopularity } class:

Re: [symfony-users] how to deal with pagination?

2010-06-02 Thread Ben Bieker
Am 02.06.2010 08:22, schrieb mel_06: hi guys! i'm just new to symfony. i can already list data from my database but now needs to be paginated. hope you can help me! thanks!!! Did you read the Practical Symfony Howto? It seems not, because theres Pagination in an example:

[symfony-users] Multiple element index. easy way?

2010-06-02 Thread Cosimo Zecchi
Hi all, I'd like to use my frontend in a similar way as the backend. In the index of objects of a model I'd like to select any with a checkbox, submit to generate a new index with only selected ones and then operate several actions on them. Is there an easy way to do it with symfony or

[symfony-users] Re: Read only/HTML form widget

2010-06-02 Thread Tom Ptacnik
I think it would be wise to combine sfWidgetFormDiv with sfValidatorReadOnlyField from the snippet. On 1 čvn, 23:34, Tarjei Huse tar...@scanmine.com wrote: Hi again, after looking further on the issue, I ended up with a widget that does this.

Re: [symfony-users] Re: Read only/HTML form widget

2010-06-02 Thread Norbert Haigermoser
You can make any form field read/only this way: example: $this-widgetSchema['xatcode'] = new sfWidgetFormInput(array(), array('readonly'='readonly')); regards norbert haigermoser Am 6/2/10 10:21 AM, schrieb Tom Ptacnik: I think it would be wise to combine sfWidgetFormDiv with

[symfony-users] Re: how to deal with pagination?

2010-06-02 Thread mel_06
found this link! very simple to understand and it works! http://www.achari.in/pagination-using-pager-with-doctrine-sfdoctrinepager-symfony-php-mvc-framework On Jun 2, 2:28 pm, Ben Bieker m...@ben-bieker.de wrote: Am 02.06.2010 08:22, schrieb mel_06: hi guys! i'm just new to symfony. i can

[symfony-users] Re: method_backned

2010-06-02 Thread Tom Ptacnik
try var_dump in the action. In what template do you access the $test variable? in the IndexSucces, or in some partial? On 1 čvn, 13:11, safa boubekri boubekri.s...@gmail.com wrote: i  add   try var_dump($this-test ); but i have  Undefined property: sfPHPView::$test for  getTotals public

Re: [symfony-users] Re: method_backned

2010-06-02 Thread safa boubekri
i try it it's gives me white page -- 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 to

[symfony-users] Re: CSS and Javascript paths

2010-06-02 Thread wueb
Thanks for the replies. @Florian, that solution didn't work. My webpage was all blank when i add that to the .htaccess I don't want my CSS, JS, Images stored inside in the web/appx/ directory, i want store them all in web/ -- If you want to report a vulnerability issue on symfony, please send

[symfony-users] dsExtDirectPlugin and plugins-modules

2010-06-02 Thread Stéphane ERARD
Hi list, I have generated a plugin with a module and declared, using doc annotations, a extdirect service. It looks like the dsExtDirect task does not take care of the plugin modules, so I guess this has been forgotten. I'm going to change the task so it supports generating API specs for

[symfony-users] generare_csv

2010-06-02 Thread safa boubekri
HELLO how can i genrate csv which contain the result of table thank you -- 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

[symfony-users] can't get sfWidgetFormInputFile to work in the admin

2010-06-02 Thread John
Hi, I'm having a problem when trying to upload images with admin generator. No matter what I try, I always get a string Array in the database field, and the image is not uploaded to the folder. Here's the model : HdMedia: actAs: { Timestampable: ~ } columns: url: { type: string(255),

[symfony-users] how to retrieve security settings for a route

2010-06-02 Thread Robert Schoenthal
he folks, is it possible to fluently retrieve the security settings for a route (module action pair)? i would love to have something like this: $route-getSecuritySettings(); it should be independed where the security settings are defined (plugin, app, module) im struggeling around with

[symfony-users] Re: dsExtDirectPlugin and plugins-modules

2010-06-02 Thread Stéphane ERARD
Aaah just found the answer; it is managed via the app_ds_ext_direct_plugin_include_plugins :-) Thank you ! On 2 juin, 11:14, Stéphane ERARD stephane.er...@gmail.com wrote: Hi list, I have generated a plugin with a module and declared, using doc annotations, a extdirect service. It looks

[symfony-users] Re: Multiple element index. easy way?

2010-06-02 Thread comb
Why not use the admin-generator for the frontend, too? You then can individualize templates and actions for your needs. On 2 Jun., 09:32, Cosimo Zecchi c.zec...@gmail.com wrote: Hi all,   I'd like to use my frontend in a similar way as the backend. In the   index of objects of a model I'd like

[symfony-users] Re: Lucene-Search

2010-06-02 Thread comb
Thanks! I'm going for the doctrine searchable behavior. Here is what I found useful to keep in mind for maybe later purpose: This thread here: http://groups.google.com/group/symfony-users/browse_thread/thread/8c24a4e37c9cadf8 Doctrine Behavior Searchable:

[symfony-users] sfGuardDoctrinePlugin authentication for all apps

2010-06-02 Thread wueb
There is any chance to use sfGuardDoctrinePlugin to authentication in all my apps? I mean, i have app1, app2 and app3. If i do a login in app3, app2 and app1 will be able to know i'm already authenticated and will allow me to enter. There is any chance to do this? thanks -- If you want to

[symfony-users] Re: can't get sfWidgetFormInputFile to work in the admin

2010-06-02 Thread John
Nevermind, I was trying to extend the HdMediaForm class with two classes : HdMediaImageForm and HdMediaVideoForm. That's why it didn't work... On 2 juin, 11:21, John drskulls...@gmail.com wrote: Hi, I'm having a problem when trying to upload images with admin generator. No matter what I try,

Re: [symfony-users] sfGuardDoctrinePlugin authentication for all apps

2010-06-02 Thread Tom Haskins-Vaughan
Are all the apps on the same subdomain? On 6/2/10, wueb webmaster@gmail.com wrote: There is any chance to use sfGuardDoctrinePlugin to authentication in all my apps? I mean, i have app1, app2 and app3. If i do a login in app3, app2 and app1 will be able to know i'm already authenticated

Re: [symfony-users] sfGuardDoctrinePlugin authentication for all apps

2010-06-02 Thread Tom Haskins-Vaughan
I mean *domain* :-) On 6/2/10, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: Are all the apps on the same subdomain? On 6/2/10, wueb webmaster@gmail.com wrote: There is any chance to use sfGuardDoctrinePlugin to authentication in all my apps? I mean, i have app1, app2 and app3.

Re: [symfony-users] generare_csv

2010-06-02 Thread Tom Haskins-Vaughan
How far have you got? On 6/2/10, safa boubekri boubekri.s...@gmail.com wrote: HELLO how can i genrate csv which contain the result of table thank you -- 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] generare_csv

2010-06-02 Thread safa boubekri
i put this code in the action public function executeCreate() $this-association = Doctrine_Query::create()-from('association')-execute(); $this-getResponse()-setContentType('application/csv-tab-delimited-table','charset=UTF-8'); $this-getResponse()-addHttpMeta('content-disposition: ',

Re: [symfony-users] how to deal with pagination?

2010-06-02 Thread Donald Tyler
You should definitely real the Practical Symfony guide. It'll answer a lot of questions that you might not even know need to be asked. Starting off on the right foot is going to make your life a lot easier in the long run. Good luck! On Wednesday, June 2, 2010, mel_06 06melc...@gmail.com wrote:

Re: [symfony-users] __tostring

2010-06-02 Thread Eno
On Tue, 1 Jun 2010, safa boubekri wrote: *class paiment extends BasePaiment { public function __toString() { return $this-getPerson()-__toString(); }* * * *but the id_person is style number* What is 'style number' ? -- -- If you want to report a vulnerability issue on symfony,

[symfony-users] Re: sfGuardDoctrinePlugin authentication for all apps

2010-06-02 Thread wueb
Yes they are! -- 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 to symfony-users@googlegroups.com To

Re: [symfony-users] __tostring

2010-06-02 Thread safa boubekri
in the table paimnentthe id_person is still number i want that it will be give me the nom prenom of person i hope that is clear thank you -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message

Re: [symfony-users] generare_csv

2010-06-02 Thread Donald Tyler
There are a few pieces to this puzzle, and the quickest way to cover them is to read Day 14 of the Jobeet tutorial: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/14 It will demonstrated how to create an atom feed, but the concept is the same, you'll just be outputting CSV instead of

Re: [symfony-users] generare_csv

2010-06-02 Thread safa boubekri
thank you -- 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 to symfony-users@googlegroups.com To

Re: [symfony-users] sfFacebookConnectPlugin - getCurrentFacebookUid() returns NULL

2010-06-02 Thread Maxime Teneur
Concerning feed streaming, you can have a look on a task implemented in the plugin: sfFacebookConnectPlugin/lib/task/facebookgeneratefeedTask.class.php It could be a good start, i guess However you can do your own stuff, and use directly the Facebook (old) API :

[symfony-users] Re: sfGuardDoctrinePlugin authentication for all apps

2010-06-02 Thread wueb
I found it. Just need declare in every factories.yml the same name for the cookie. storage: class: sfSessionStorage param: session_name: cookieName -- 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] Re: Read only/HTML form widget

2010-06-02 Thread Tarjei Huse
On 06/02/2010 10:40 AM, Norbert Haigermoser wrote: You can make any form field read/only this way: example: $this-widgetSchema['xatcode'] = new sfWidgetFormInput(array(), array('readonly'='readonly')); Hmm, this is the best way so far - although being able to affect the markup is a good nr

[symfony-users] batch import

2010-06-02 Thread f1gm3nt
I'm looking into doing batch imports with a symfony task. The issues I'm having are seg faults and running out of memory. Even after jacking the memory limit to 2gigs. Has anyone else ever done batch imports using a symfony task that can shed some light on how they did it? -f1g -- If you want

[symfony-users] Re: Lucene-Search

2010-06-02 Thread f1gm3nt
I'm using it for one of my web sites, I used the example that was included in the tutorial, then customized it to what I need. Need to go over it again see if I can optimize it any. I also made 2 symfony tasks, the first rebuilt the index and the second optimized it. As mentioned before, it can

Re: [symfony-users] __tostring

2010-06-02 Thread Eno
On Wed, 2 Jun 2010, safa boubekri wrote: in the table paimnentthe id_person is still number i want that it will be give me the nom prenom of person So in the Person class, you need to define __toString() that returns the string in the format you need. Example:

[symfony-users] Re: Lucene-Search

2010-06-02 Thread comb
Do you use Lucene or Doctrines Searchable-behavior? On 2 Jun., 17:06, f1gm3nt f1gm...@gmail.com wrote: I'm using it for one of my web sites, I used the example that was included in the tutorial, then customized it to what I need. Need to go over it again see if I can optimize it any. I also

Re: [symfony-users] Re: Read only/HTML form widget

2010-06-02 Thread Eno
On Wed, 2 Jun 2010, Norbert Haigermoser wrote: You can make any form field read/only this way: example: $this-widgetSchema['xatcode'] = new sfWidgetFormInput(array(), array('readonly'='readonly')); Correct me if Im wrong, but that doesn't work for input tags that DONT take a readonly

[symfony-users] ckWebService for sf1.4

2010-06-02 Thread Stéphane ERARD
Hi list, I'm using ckWebService on symfony 1.4 (using svn co; not cli plugin:install). I have to change a method in the ckWebServiceController.class.php/ ckWebServiceController-getResultAdapter method Here is my own : /** * Gets the result adapter for the current action, if no instance

Re: [symfony-users] ckWebService for sf1.4

2010-06-02 Thread Stéphane
Another problem I see is this plugin doesnt take care of plugin modules. Anyone made anything for this to work for plugin modules ? Thank you ! Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Wed,

[symfony-users] Class 'Swift_SmtpTransport' not found in task

2010-06-02 Thread João Soares
Hi, I'm trying to send a mail from a task, yet I get this error: Fatal error: Class 'Swift_SmtpTransport' not found in C:\symfony\lib \task\RelatoriosTask.class.php on line 157 How can I include this class in the task? Thanks -- If you want to report a vulnerability issue on symfony, please

[symfony-users] Re: combining functional and unit tests?

2010-06-02 Thread Massimiliano Arione
You can simply use propel tester. See http://www.symfony-project.org/jobeet/1_4/Propel/en/11#chapter_11_the_propel_tester cheers Massimiliano On 2 Giu, 00:18, Jeremy Thomerson jer...@thomersonfamily.com wrote: I have written a functional test that tests my site's registration flow.  At the end

[symfony-users] Cache problem? I don't know

2010-06-02 Thread wueb
I'm having a problem with symfony on my server. Almost every action i do that goes to database i need make a F5 to the page to the modifications appear. For example, when i update a record from a table, when he goes to the show page he still have the old values, but if i make F5 the new values

Re: [symfony-users] Cache problem? I don't know

2010-06-02 Thread Eno
On Wed, 2 Jun 2010, wueb wrote: I'm having a problem with symfony on my server. Almost every action i do that goes to database i need make a F5 to the page to the modifications appear. What is F5 ? -- -- If you want to report a vulnerability issue on symfony, please send it to

[symfony-users] jQuery and Ajax, DOM problem

2010-06-02 Thread Vincent UNG
Hello symfony users !! I have a problem with symfony and ajax (i'm using jQuery) When I click on a button, I send an ajax query that load an other module. The problem is I can't act on these new element with jQuery, for example in this new content (load with Ajax) I can't define a $

[symfony-users] recursive redirect :-/

2010-06-02 Thread comb
Hi! :-) In a executeIndex(...) I want to redirect to the referrer, but only if the referrer is not the current action. How can I do that? //... $ref = $request-getReferer(); if ($ref != ...what do I need HERE?...) {

[symfony-users] Re: jQuery and Ajax, DOM problem

2010-06-02 Thread comb
First: If you do a ajax-request you won't get a layout added to the response - that's why the jquery-framework is not loaded by default. Second: What exactly are you doing to send some javascript as response? you could try dataType = script (jQuery: http://api.jquery.com/jQuery.ajax/ ) or use

Re: [symfony-users] batch import

2010-06-02 Thread Eno
On Wed, 2 Jun 2010, f1gm3nt wrote: I'm looking into doing batch imports with a symfony task. The issues I'm having are seg faults and running out of memory. Even after jacking the memory limit to 2gigs. Has anyone else ever done batch imports using a symfony task that can shed some light on

Re: [symfony-users] Class 'Swift_SmtpTransport' not found in task

2010-06-02 Thread Eno
On Wed, 2 Jun 2010, [ISO-8859-1] João Soares wrote: I'm trying to send a mail from a task, yet I get this error: Fatal error: Class 'Swift_SmtpTransport' not found in C:\symfony\lib \task\RelatoriosTask.class.php on line 157 How can I include this class in the task? Are you sure

Re: [symfony-users] Cache problem? I don't know

2010-06-02 Thread Donald Tyler
He means he has to refresh the page, which means it's a caching issue. I'm not that familiar with caching, but it sounds like it's probably the client side caching that's the issue, because if it was the symfony caching system, refreshing on the client side wouldn't fix it. On Wednesday, June 2,

[symfony-users] Re: recursive redirect :-/

2010-06-02 Thread comb
yeah but how can I check if the current page is the same as the user comes from? On 2 Jun., 21:20, Eno symb...@gmail.com wrote: On Wed, 2 Jun 2010, comb wrote: In a executeIndex(...) I want to redirect to the referrer, but only if the referrer is not the current action. How can I do that?

Re: [symfony-users] Cache problem? I don't know

2010-06-02 Thread Eno
On Wed, 2 Jun 2010, wueb wrote: For example, when i update a record from a table, when he goes to the show page he still have the old values, but if i make F5 the new values will appear. Same with logout for example. When i make logout i need press the logout butto and then make F5 to the

Re: [symfony-users] __tostring

2010-06-02 Thread safa boubekri
tank youbut in the choise i have liste of nomprenom but i want to have npmprenom in the table of paiment: select*from paiment it give me id_person not nom prenom -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

[symfony-users] Re: Cache problem? I don't know

2010-06-02 Thread pghoratiu
Do you redirect after the form data is saved? After a form is processed and data is saved the best practice is to do redirect to avoid the re-POST of form data, make sure you have this. gabriel On Jun 2, 7:44 pm, wueb webmaster@gmail.com wrote: I'm having a problem with symfony on my

[symfony-users] Re: recursive redirect :-/

2010-06-02 Thread pghoratiu
You need to evaluate your routes into a module/action tuple, see the last example on this page: http://pookey.co.uk/wordpress/archives/80-playing-with-symfony-routing-without-symfony You can probably load the routes separately from the YAML as well. gabriel On Jun 3, 12:24 am, comb

[symfony-users] Re: batch import

2010-06-02 Thread pghoratiu
I have done something similar and the memory leak problem was difficult to solve. In my case it was due to circular references between objects and I always had to use unset() explicitely on individual objects after saving them into the database. Make sure the objects you are trying to save do not

[symfony-users] Re: recursive redirect :-/

2010-06-02 Thread comb
Thank you pghoratiu, that furthers me, but I still wonder about that and cannot get it to work: routing.yml: search_query: url: /search/q param: { module: search, action: search } public function executeSearch(sfWebRequest $request) { var_dump($this-getRoute()-getPattern()); $ref =

Re: [symfony-users] Re: recursive redirect :-/

2010-06-02 Thread Eno
On Wed, 2 Jun 2010, comb wrote: Output: string '/search/q' (length=9) string 'http://localhost:8047/frontend_dev.php/search/q' (length=47) boolean false But I would expect the $is_recursive to be true?! How can I evaluate if the current route is the same as the referrer comes from? :-/

[symfony-users] Re: recursive redirect :-/

2010-06-02 Thread comb
I have a search-form which is included in almost every page. If a users searches to often (flooding) he gets a message (user-flash) to wait some time. In this case, I want to redirect the user back to the page he came from when he starts the search. (if there is no referrer, the user gets

[symfony-users] Is there a way to refresh or reset csrf token if I unset some of the form's field?

2010-06-02 Thread chrisyue
I have asked in the symfony forum in http://forum.symfony-project.org/index.php/t/27855/ but get no answers. Is it the reason that the csrf token can't be reset after initialization? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

Re: [symfony-users] Re: recursive redirect :-/

2010-06-02 Thread Eno
On Wed, 2 Jun 2010, comb wrote: But now there is a search-results page, too, that comes from the search-action, where the redirection is done. If the user starts a new search from here and is too fast he gets the flash-message again, but the redirect to the last page is recursively since he

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

2010-06-02 Thread Michael Hodges
Can someone help me understand how the sfFormDoctrine handles the cleaned data of the subforms? Is there an analog to the taintedValues array for the cleaned values of the master and subforms, or are the cleaned values saved to disk as each form and subform is processed? I think it is the first

[symfony-users] Re: Custom directory structure

2010-06-02 Thread Ragnis
No. In public_html/pub there are only index.php, frontend_dev.php and image/css/javascript files. On Jun 1, 9:34 am, Tom Ptacnik to...@tomor.cz wrote: Is there (/home/xx/public_html/api/lib/vendor/symfony/lib/ plugins/sfDoctrinePlugin/lib/database/) the file sfDoctrineDatabase.class.php ? On