[symfony-users] Re: Custom directory structure

2010-06-01 Thread Tom Ptacnik
Is there (/home/xx/public_html/api/lib/vendor/symfony/lib/ plugins/sfDoctrinePlugin/lib/database/) the file sfDoctrineDatabase.class.php ? On 27 kvě, 16:45, Ragnis ragnis.ar...@gmail.com wrote: Nothing changed. Still theese errors: Warning:

[symfony-users] Re: Edit/Diplay form content is not the same from database (production)

2010-06-01 Thread Tom Ptacnik
It has something to do with caching. In the dev environment is it ok, and in the production work this weird way? On 27 kvě, 17:57, Popovich whitedragon...@gmail.com wrote: Hi have a problem in the application i am creating when putting it in the server. Let´s say i have a typical form. I

[symfony-users] Re: formatting embedded form with embedRelation - how?

2010-06-01 Thread Tom Ptacnik
Changin the label is easy ... setLabel() http://www.symfony-project.org/forms/1_4/en/01-Form-Creation For the changing format of the form you have more ways ... a) form formatters b) changing template On 27 kvě, 21:03, Tofuwarrior p...@clearintent.co.uk wrote: Hi, I have used embed

[symfony-users] Re: Problems with doctrine and Oracle 10g

2010-06-01 Thread Tom Ptacnik
So your problem is solved, or do you only make a mistake when reporting this problem? BTW those capital letters are not a great idea - nor in the model nor in the sentences when reporting a problem. On 27 kvě, 22:24, Andres Villaquiran avqui...@yahoo.com wrote: sORRY, I had a mistake, when i

[symfony-users] Re: Add form widgets dynamically from javascript

2010-06-01 Thread Tom Ptacnik
If you know all inputs which can be added dynamicaly (and the number of them isn't infinite) then you can simply create a form with all of the inputs. Then by javascript hide them, and dynamicaly show them... On 28 kvě, 21:58, fRAnKEnSTEin shirkav...@gmail.com wrote: Hi, Luc thanks for your

[symfony-users] Re: Jobeet Tutorial | Day 17 with sf1.4.4

2010-06-01 Thread Tom Ptacnik
I thing the error is clear ... getConnection() isn't a static method, so you can't call it with ::getConnection(), but with - getConnection() you have to do something like Doctrine::getTable('SEO')-getConnection() or SEOTable::getInstance()-getConnection() (only in new version of Symfony .. look

[symfony-users] Re: configure getListBatchActions() in backend

2010-06-01 Thread Ricardo
Hello, Thanks for your help, I just read the document about caching and it learnt me a lot. Perharps I don't understand why in the backend the page is cached, when I see the cache.yml document there is just: default: enabled: false with_layout: false lifetime:86400 And in the modules

[symfony-users] Re: configure getListBatchActions() in backend

2010-06-01 Thread Ricardo
What I tried to do too is clearing the cache of the backend in my frontend when the user log in. But I didn't achieve this. This was my code: class utilisateurActions extends sfActions { //... public function clearBackendCache($uri, $host) {

[symfony-users] Re: configure getListBatchActions() in backend

2010-06-01 Thread Ricardo
The error in this code is that $cache is null so sfContext::getInstance()-getViewCacheManager(); doesn't return anything. And I don't know how to fix that. -- 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: method_backned

2010-06-01 Thread Tom Ptacnik
I don't see your method getTotals, so I can't tell you whats wrong. try var_dump($this-test ); and see if something is even in it... On 28 kvě, 14:57, safa boubekri boubekri.s...@gmail.com wrote: sir please i put in action public function executeIndex(sfWebRequest $request)   {  

[symfony-users] Re: prob routing whene i use ajax with symfony in edit action

2010-06-01 Thread Tom Ptacnik
You description of the problem is very poor. We can't help you What means I use ajax What URL? Show the exact error. On 28 kvě, 17:03, yongSymfo abbbassi.recrutemen...@gmail.com wrote: helle ,  i use ajax in Module form that it work good in create action but whene i in edit action i have

[symfony-users] CSS and Javascript paths

2010-06-01 Thread wueb
I created multiple folders with an .htaccess defined for each one inside my web/ to the many apps i have. For example. http://localhost/app1 (access app1) http://localhost/app2 (access app2) http://localhost/appx (access appx) The problem now is that my CSS and JS defined on view.yml try to

[symfony-users] Read only/HTML form widget

2010-06-01 Thread Tarjei Huse
Hi, This is something I quite often miss and therefore I would guess there is a solution for it. Quite often I want a field from an object shown in my form in a read only fashion. I.e the user sees the field but cannot edit it. Also, has someone created a simple widget for adding HTML elements

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

2010-06-01 Thread Raphael
Hi there, I am trying to implement a simple Facebook connect on my website using sfFacebookConnectPlugin, Symfony 1.4 and Doctrine but I am not sure I am doing it right... Everything works fine up to the point where a guardUser is created and logged in after the user clicks the connect with

Re: [symfony-users] Re: method_backned

2010-06-01 Thread safa boubekri
i add try var_dump($this-test ); but i have Undefined property: sfPHPView::$test for getTotals public function getTotals() { return $this-createQuery('c')- SELECT('SUM(c.montant) FROM c')-execute(); } thank you -- If you want to report a vulnerability issue on symfony, please send

[symfony-users] Re: sf 1.4: How can execute a task within another task? (tasks in a task)

2010-06-01 Thread benlancaster
Here's how I do it: $task = new sfDoctrineBuildTask(clone $this-dispatcher, clone $this-formatter); $task-setCommandApplication($this-commandApplication); $task-setConfiguration($this-configuration); $task-run(array(),array('all' = true, 'and-load' = true)); On Jun 1, 10:25 am,

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

2010-06-01 Thread Thibault Jouannic
Hi, http://snippets.symfony-project.org/snippet/387 You're welcome :) Thibault. On Jun 1, 11:16 am, Tarjei Huse tar...@scanmine.com wrote: Hi, This is something I quite often miss and therefore I would guess there is a solution for it. Quite often I want a field from an object shown in my

Re: [symfony-users] Re: sf 1.4: How can execute a task within another task? (tasks in a task)

2010-06-01 Thread Alexandru-Emil Lupu
$this-runTask($name, $arguments, $options) On Tue, Jun 1, 2010 at 3:52 PM, benlancaster ben.lancas...@holler.co.ukwrote: Here's how I do it: $task = new sfDoctrineBuildTask(clone $this-dispatcher, clone $this-formatter); $task-setCommandApplication($this-commandApplication);

[symfony-users] __tostring

2010-06-01 Thread safa boubekri
Hello, In my database, I've a table *paiement * that contains a foreign key * id_person * that refers to a table person. I've created a module with the admin generator for each one. I've modified the *generator.yml* of my module *phone* to replace the phone type *id_person * by the nom

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

2010-06-01 Thread Tarjei Huse
On 06/01/2010 02:54 PM, Thibault Jouannic wrote: Hi, http://snippets.symfony-project.org/snippet/387 Jolly good! Have you asked for it's inclusion into sfForm main? IMHO it deserves to be there :) Tarjei You're welcome :) Thibault. On Jun 1, 11:16 am, Tarjei Huse tar...@scanmine.com

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

2010-06-01 Thread Fabrice Bernhard
Hi Raphael, there must be some cookie issue in your application. Setting the Facebook cookies can be very tricky, especially when dealing with iframes inside the Facebook canvasin Safari. Are you sure you have published the plugin's assets ? You also should not use the outdated filters which

[symfony-users] Re: Symfony 1.4 Alias

2010-06-01 Thread RedQueen
So at the end I can say the problem was resolved :D:D The easiest way to do what I want is written on the symfony page: http://www.symfony-project.org/book/1_2/03-Running-Symfony#chapter_03_sub_configuring_a_shared_host_server I can just say I didn't use any .htaccess file. I just changed the

[symfony-users] Re: Symfony 1.4 Alias

2010-06-01 Thread RedQueen
So at the end I can say the problem was resolved :D:D The easiest way to do what I want is written on the symfony page: http://www.symfony-project.org/book/1_2/03-Running-Symfony#chapter_03_sub_configuring_a_shared_host_server I can just say I didn't use any .htaccess file. I just changed the

[symfony-users] Re: Symfony 1.4 Alias

2010-06-01 Thread RedQueen
So at the end I can say the problem was resolved :D:D The easiest way to do what I want is written on the symfony page: http://www.symfony-project.org/book/1_2/03-Running-Symfony#chapter_03_sub_configuring_a_shared_host_server I can just say I didn't use any .htaccess file. I just changed the

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

2010-06-01 Thread Eno
On Tue, 1 Jun 2010, Tarjei Huse wrote: Have you asked for it's inclusion into sfForm main? IMHO it deserves to be there :) +1 Its a nice clean solution. -- -- 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: Symfony 1.4 Alias

2010-06-01 Thread Eno
On Tue, 1 Jun 2010, Gareth McCumskey wrote: This is all easily answered by looking at the symfony documentation which has a helpful section on setting up a symfony application on a shared web hosting service, i.e. a service where you do not have root access to the machine hosting the site:

[symfony-users] Re: CSS and Javascript paths

2010-06-01 Thread Florian
Hi! Try RewriteBase /appx In every .htaccess On 1 juin, 11:12, wueb webmaster@gmail.com wrote: I created multiple folders with an .htaccess defined for each one inside my web/ to the many apps i have. For example. http://localhost/app1(access app1)http://localhost/app2(access

[symfony-users] embedded forms ans sfValidatorSchemaCompare

2010-06-01 Thread Alain Baudry
Hi everybody, I am facing a problem for wich I don't manage to find an answer. There is the situation: I have events and in each event I can have meetings. I have created a form wich allow my users to modify an events and its meetings all in once. My problem is: I want to control that the date

[symfony-users] Re: sf 1.4: How can execute a task within another task? (tasks in a task)

2010-06-01 Thread Fernando Navarro Páez
Thanks!! Too, there are information in Executing a Task inside a Task http://www.symfony-project.org/more-with-symfony/1_4/en/13-Leveraging-the-Power-of-the-Command-Line#chapter_13_executing_a_task_inside_a_task On 1 jun, 15:07, Alexandru-Emil Lupu gang.al...@gmail.com wrote:        

[symfony-users] Lucene-Search

2010-06-01 Thread comb
Hi! I have 5 different Models that I want to be searchable. I don't know, how to implement the search right now. First thing I think of is Zend Lucene, but I read several times, that the performance is bad (cannot use the java implementation). No my question is: where is the limit of Zend

Re: [symfony-users] Lucene-Search

2010-06-01 Thread Michał Piotrowski
Hi, 2010/6/1 comb sa...@gmx.net: Hi! I have 5 different Models that I want to be searchable. I don't know, how to implement the search right now. First thing I think of is Zend Lucene, but I read several times, that the performance is bad (cannot use the java implementation). Performance

[symfony-users] How to use multi-dim choices in a double list!

2010-06-01 Thread metaphist
I installed the very nice form-extra plugin for the double list feature. However, I noticed it didn't preselect values properly when your choices are represented by a multi-dimensional array (for organization). This is basically because the double list widget does not recursively read your choices

[symfony-users] Re: Lucene-Search

2010-06-01 Thread pghoratiu
Lucene is not slow, only the Zend PHP re-implementation of the Lucene file format + search. In my opinion it's close to unusable for real life scenarios (large data set, fast indexing ...). It probably would work ok for a small dataset such as 1. I recomend Solr as alternative which is Java

Re: [symfony-users] __tostring

2010-06-01 Thread Alexandru-Emil Lupu
Find the alias that you are using to reference those 2 models, and just do a plain __toString in your *paiement table Like class paiment extends BasePaiment { public function __toString() { return $this-getPerson()-__toString(); } } * On Tue, Jun 1, 2010 at 4:39 PM, safa boubekri

[symfony-users] Re: Lucene-Search

2010-06-01 Thread comb
@Michał Piotrowski: Thanks for the tipp! :-) @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? On 1 Jun., 21:53, pghoratiu pghora...@gmail.com wrote: Lucene is not slow, only the Zend PHP

Re: [symfony-users] __tostring

2010-06-01 Thread Eno
On Tue, 1 Jun 2010, Alexandru-Emil Lupu wrote: Find the alias that you are using to reference those 2 models, and just do a plain __toString in your *paiement table Like class paiment extends BasePaiment { public function __toString() { return $this-getPerson()-__toString(); } }

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

2010-06-01 Thread Tarjei Huse
Hi again, after looking further on the issue, I ended up with a widget that does this. See: http://trac.symfony-project.org/attachment/ticket/8726/sfWidgetFormDiv.class.php On 06/01/2010 03:41 PM, Tarjei Huse wrote: On 06/01/2010 02:54 PM, Thibault Jouannic wrote: Hi,

Re: [symfony-users] Re: CSS and Javascript paths

2010-06-01 Thread Eno
On Tue, 1 Jun 2010, Florian wrote: Hi! Try RewriteBase /appx In every .htaccess Probably not for an app who's front controller is in web, maybe only the web/appsx folders. Also be aware that htaccess rules in effect in the folder in which they are defined AND any subfolders - so if

[symfony-users] combining functional and unit tests?

2010-06-01 Thread Jeremy Thomerson
I have written a functional test that tests my site's registration flow. At the end of the test, I am calling my account peer and using lime to test that the account that was just registered is all in the database correctly. The test runs great if I run it by itself (test:functional frontend

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

2010-06-01 Thread Jeremy Thomerson
Never mind - I think I figured it out. Instead of creating a new lime test like I was doing: $t = new lime_test(11, new lime_output_color()); I should continue using the test that the functional test was using: $t = $browser-test(); Best regards, Jeremy Thomerson On Tue, Jun 1, 2010 at 5:18 PM,

[symfony-users] Re: Lucene-Search

2010-06-01 Thread Casey
Sphinx is the best full text search that I have ever used. You need to have enough permissions to compile/install a program running as a daemon though. Sphinx is very fast, not language or database specific and has flexible configuration options, technically speaking, you don't even have to use

Re: [symfony-users] __tostring

2010-06-01 Thread safa boubekri
i modify paiment *class paiment extends BasePaiment { public function __toString() { return $this-getPerson()-__toString(); }* * * *but the id_person is style number* * * *thak you* -- If you want to report a vulnerability issue on symfony, please send it to security at