Re: [symfony-users] Re: :-( please help. ajax problem - noob to ajax -probably simple

2010-04-20 Thread Gareth McCumskey
Its not javascript code its just a JSON encoded string. On Wed, Apr 21, 2010 at 8:22 AM, Massimiliano Arione wrote: > On 19 Apr, 16:46, Tofuwarrior wrote: >> As a general principle is my approach ( ie pull the data from an >> action into the jQuery) correct. > > I don't think your approach is fu

[symfony-users] Re: sfDoctrineActAsTaggablePlugin > Unknown method Video::addTag

2010-04-20 Thread Tom Ptacnik
I think problem was in the ProjectConfiguration.class.php - the plugin wasn't enabled..? On 20 dub, 22:59, comb wrote: > I got it  to work: > > I downloaded (instead of svn checkoutthe) the plugins tgz with the > "Download package"-Link from the > plugins-pagehttp://www.symfony-project.org/plug

[symfony-users] Re: :-( please help. ajax problem - noob to ajax -probably simple

2010-04-20 Thread Massimiliano Arione
On 19 Apr, 16:46, Tofuwarrior wrote: > As a general principle is my approach ( ie pull the data from an > action into the jQuery) correct. I don't think your approach is fully correct. You should never mix javascript and php code. You should write php (and so html) as if javascript wouldn't exist

[symfony-users] Re: Oracle Clob return Resource id #3

2010-04-20 Thread Tom Ptacnik
You use getFirst() method ... you have only one record in the result Better would be something like $result->getContent(); ? And maybe better would be better this at all: $q = Doctrine::getTable('DocumentTplSection')-> ->createQuery('ds') ->where('ds.id = ?', 7); $q->fetchOne(); On 19 dub, 1

Re: [symfony-users] Re: performance problem with sfDoctrinePage on symfony 1.2

2010-04-20 Thread Alexandru-Emil Lupu
Switch to dev env and see if any of the view files is responsable sent via htc magic On Apr 21, 2010 8:59 AM, "Tom Ptacnik" wrote: Which line of code causes this performance problems? On 19 dub, 17:20, mehdi hadef wrote: > Hi all, > > I have a performance pr... > For more options, visit this

[symfony-users] Re: performance problem with sfDoctrinePage on symfony 1.2

2010-04-20 Thread Tom Ptacnik
Which line of code causes this performance problems? On 19 dub, 17:20, mehdi hadef wrote: > Hi all, > > I have a performance problem on a page using sfDoctrinePager. > It takes more than 5 seconds to display the page on local server. > > Let's see the code in my actions.class about the pager : >

[symfony-users] Re: Check object relations

2010-04-20 Thread Tom Ptacnik
I think you can overwrite the delete() method and catch an exception from parent::delete() ... can't you? On 19 dub, 15:51, HAUSa wrote: > Is it possible to check for an object if there are any foreign key > restrictions in effect? So deletion of that object is not possible? > > -- > If you want

[symfony-users] Re: installation problem with php_posix extension

2010-04-20 Thread Andz
1. I think php_posix is not available for windows 2. You are looking for command line interface - press "Run" and fill in "cmd" or locate it in Accesories "Command Prompt" On Apr 19, 2:55 pm, "i...@ticktockit.net" wrote: > During my configuration check I get the following: >

[symfony-users] Re: configuration problem!?

2010-04-20 Thread Andz
It reports no problematic issues http://pastie.org/926961 On Apr 19, 9:52 am, Tom Ptacnik wrote: > What about symfony check_configuration.php script? > > On 15 dub, 14:38, Andris wrote: > > > > > When issuing command: "symfony propel:data-load" it fails with notice > > -- Unable to find adapter

[symfony-users] Re: sfGridPlugin, Propel/Doctrine-DataSources, ObjectPaths and JavaScript (ExtJS) extensions

2010-04-20 Thread Leon van der Ree
I Don't know what was wrong with google groups, now my message is posted, 5 times... I haven't got the righs to remove any of them either, so sorry about that. Reading one of 5 should be enough ;) -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-pr

[symfony-users] Re: brackets in doctrine

2010-04-20 Thread kim
oh sorry now i see i didn't mention it has to be done in doctrine so this must be something like createQuery()->where...->andWhere...->andAlso of course your right to do this like you say in normal SQL but adding this brackets is not possible in doctrine (or at least i don't know the way to do th

[symfony-users] Re: sfDoctrineActAsTaggablePlugin > Unknown method Video::addTag

2010-04-20 Thread comb
I got it to work: I downloaded (instead of svn checkoutthe) the plugins tgz with the "Download package"-Link from the plugins-page http://www.symfony-project.org/plugins/sfDoctrineActAsTaggablePlugin Than the plugin:install works. The templates: [Taggable] still fails with a "Unknown method Vide

[symfony-users] Re: sfGridPlugin, Propel/Doctrine-DataSources, ObjectPaths and JavaScript (ExtJS) extensions

2010-04-20 Thread Leon van der Ree
Hi developers, as you might have guessed, I am not working on the sfGrid components solely to provide them to the community ;) What I would like, is to get feedback to improve the quality of these components, while everyone can benefit. At the moment I am working on/playing with the responsi

[symfony-users] Re: sfDoctrineActAsTaggablePlugin > Unknown method Video::addTag

2010-04-20 Thread comb
Thanks for answering.. unfortunately this fails during the doctrine:build -all task: r...@r-pc D:\xampp\htdocs\pen4\pen4 # symfony doctrine:build --all --and-load --no-confirmation >> doctrine Dropping "doctrine" database >> doctrine Creating "dev" environment "doctrine" database >> doctrine ge

Re: [symfony-users] frontend: get labels (not id) from child tables

2010-04-20 Thread Eno
On Tue, 20 Apr 2010, SatBoy78 wrote: > Hi I am developing a project with symfony (doctrine) and I am > encountering some problems in retrieving data from child0tables; I'll > explain the whole question: in my mysql db I have a main table that > contains foreign key of some child tables. > > I've

Re: [symfony-users] Re: symfony + doctrine + memcached + lazy loading

2010-04-20 Thread Stéphane
Don't var_dump or print_r such object :-) The query ran inside mysql (copy/past from webdebugtb) returns expected result ? If yes, dig into that array property to look the Doctrine_collection and if it does contains records, this way dig until the one you want to see if every object is well hydrat

[symfony-users] Re: sfGridPlugin, Propel/Doctrine-DataSources, ObjectPaths and JavaScript (ExtJS) extensions

2010-04-20 Thread Leon van der Ree
Hi developers, as you might have guessed, I am not working on the sfGrid components solely to provide them to the community ;) What I would like, is to get feedback to improve the quality of these components, while everyone can benefit. At the moment I am working on/playing with the responsibilit

Re: [symfony-users] Re: symfony + doctrine + memcached + lazy loading

2010-04-20 Thread Yelena Bunina
No. That's all. Object has this property if I fetch it with ...$q->fetchOne(); it displays an empty page when I try to var_dump or print_r the whole object even it has one record. so I think object in pager has that property too, but somehow it send query to DB. I don't understand why. On Tue,

Re: [symfony-users] Re: symfony + doctrine + memcached + lazy loading

2010-04-20 Thread Stéphane
Email was not complete ? Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Tue, Apr 20, 2010 at 9:19 PM, Yelena Bunina wrote: > Yes it have it! I didn't tell you about it. But anyway it send query to DB > (( >

Re: [symfony-users] Re: symfony + doctrine + memcached + lazy loading

2010-04-20 Thread Yelena Bunina
Yes it have it! I didn't tell you about it. But anyway it send query to DB (( On Tue, Apr 20, 2010 at 10:28 PM, Stéphane wrote: > Try to debug it (hope you have xdebug) to find if after querying db, the > hydrated object has its references array property not empty and containing > what it should

Re: [symfony-users] Re: symfony + doctrine + memcached + lazy loading

2010-04-20 Thread Stéphane
Try to debug it (hope you have xdebug) to find if after querying db, the hydrated object has its references array property not empty and containing what it should (according to the query). $query = //your query code $objectCollection = $query->execute(); $object = $objectCollection->getFirst(); pr

[symfony-users] parsing the request

2010-04-20 Thread Leon van der Ree
Hi developers, as you might have guessed, I am not working on the sfGrid components solely to provide them to the community ;) What I would like, is to get feedback to improve the quality of these components, while everyone can benefit. At the moment I am working on/playing with the responsibilit

[symfony-users] Re: symfony + doctrine + memcached + lazy loading

2010-04-20 Thread soulfly
Hi! You are right about "lazy loading", object tries to get DicMetroLines from DB, but it ALREADY HAVE it in returned query. Let me try to explain what I mean by "lazy loading". An object have property that related to another model. And this property (DicMetroStations model) is returned with full

[symfony-users] Re: sfGridPlugin, Propel/Doctrine-DataSources, ObjectPaths and JavaScript (ExtJS) extensions

2010-04-20 Thread Leon van der Ree
Hi developers, as you might have guessed, I am not working on the sfGrid components solely to provide them to the community ;) What I would like, is to get feedback to improve the quality of these components, while everyone can benefit. At the moment I am working on/playing with the responsibilit

Re: [symfony-users] Re: symfony + doctrine + memcached + lazy loading

2010-04-20 Thread Stéphane
Hi, It's not about ignoring you, it's about time and knowledge, please don't think it's about yourself or your specific problem as we are all concerned ;-) Can you try with another cache strategy, ie APC or XCACHE to see if you have the same behavior ? By "lazy loading", you mean hydrated object

[symfony-users] Re: symfony + doctrine + memcached + lazy loading

2010-04-20 Thread soulfly
seems that everybody ignore me :( -- 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@goog

[symfony-users] Re: sfGridPlugin, Propel/Doctrine-DataSources, ObjectPaths and JavaScript (ExtJS) extensions

2010-04-20 Thread Leon van der Ree
Hi developers, as you might have guessed, I am not working on the sfGrid components solely to provide them to the community ;) What I would like, is to get feedback to improve the quality of these components, while everyone can benefit. At the moment I am working on/playing with the responsibilit

Re: [symfony-users] How to stop doctrine creating tables for a single model?

2010-04-20 Thread Alexandru-Emil Lupu
Hi! You can add: YourModel: options: symfony: model: false sent via htc magic On Apr 20, 2010 8:07 PM, "sromano88" wrote: Hi John, I am facing the same problem you stated in How to stop doctrine creating tables for a single model? I can''t get the solution, and I think that stop e

[symfony-users] Redirecting urls with final /

2010-04-20 Thread Marc Dos Santos
Hello all, I discovered recently that some of my users are getting 404 on my website because the are adding a final / to the url. So i was wondering if there was a way in symfony to define automatic 301 to remove the final slash, in other word to redirect urls like www.test.com/cat1/product/ or ww

[symfony-users] Level problem (public/protected) of setupInheritance() with Doctrine form generator

2010-04-20 Thread Yoann BRIEUX
Hello guys ! In using the inherit of doctrine with sfDoctrineGuard plugin, I get this error: * **Bonjour, En voulant hériter d'une classe de sfDoctrineGuard grâce à l'héritage de doctrine, j'obtiens cette erreur :* Fatal error: Access level to BaseecfdbGuardGroupForm::setupInheritance() must be

[symfony-users] How to stop doctrine creating tables for a single model?

2010-04-20 Thread sromano88
Hi John, I am facing the same problem you stated in How to stop doctrine creating tables for a single model? I can''t get the solution, and I think that stop executing build-all- reload should be a good one when you are telling not to export that model. Hope you can give me a hand. Best regards,

[symfony-users] Re: sfDoctrineActAsTaggablePlugin > Unknown method Video::addTag

2010-04-20 Thread Poltasi Risom
Try in schema.yml Video: actAs: Timestampable: ~ Taggable: ~ columns: then rebuild all On Apr 20, 11:45 am, comb wrote: > Hi! > > I'm trying to get sfDoctrineActAsTaggablePlugin working with symfony > 1.4.4. > > First the plugin-install task doesn't exist, but it was renamed to > "plu

[symfony-users] Symfony 1.4 - sfOutputEscaperObjectDecorator::__toString()

2010-04-20 Thread Dale Attree
Hi everyone, I downloaded Symfony 1.4.4 from SVN and did the setup as per the tutorial. When I try to access any of my modules, I get the following: Fatal error: Method sfOutputEscaperObjectDecorator::__toString() must not throw an exception in /project/apps/manager/templates/layout.php on line

Re: [symfony-users] Re: brackets in doctrine

2010-04-20 Thread Daniel Lohse
->where('column1 = ? AND (column2 = ? OR column3 = ?)', array(1, 2, 3)); Just nest them inside one where clause. :) Sent from my iPhone On Apr 20, 2010, at 4:34 PM, kim wrote: I solved it now by doing this ... AND ... OR ... AND ... this works for now but i'm still wondering how you can do

[symfony-users] Re: Handle form error in the action

2010-04-20 Thread Richtermeister
Just throw a custom extension that doesn't extend sfValidatorError. After all, you are trying to break outside the form, so it's legitimate to use exceptions that transcend the form framework. Daniel On Apr 20, 7:52 am, WallTearer wrote: > But how can I check if the needed error happened? > Loo

Re: [symfony-users] Re: Jquery and AJAX symfony 1.4

2010-04-20 Thread DEEPAK BHATIA
Yes I have done the same and it works great, On Tue, Apr 20, 2010 at 8:16 PM, Thor wrote: > I suggest you to use jQueryReloaded plugin, it works greatly, and what > you need is simply done by a helper like link_to_remote > > On 19 Apr, 19:58, trankh wrote: > > Hello, > > > > I want to call a si

[symfony-users] Re: foreign key relations in admin generator

2010-04-20 Thread SatBoy78
I've got these tables: Ristorante: connection: doctrine tableName: ristorante columns: id: type: integer(4) fixed: false unsigned: false primary: true autoincrement: true nome: type: string(100) fixed: false unsigned: false primar

[symfony-users] Re: Handle form error in the action

2010-04-20 Thread WallTearer
But how can I check if the needed error happened? Loop through the array of validation errors and check if the error was triggered by the needed Validator? Hope this is not the only way -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

[symfony-users] Re: Jquery and AJAX symfony 1.4

2010-04-20 Thread Thor
I suggest you to use jQueryReloaded plugin, it's really simple to use that, and what you need is done with a helper like link_to On 19 Apr, 19:58, trankh wrote: > Hello, > > I want to call a simple action without passing any argument inside a > jquery function. > No argument because a random func

[symfony-users] Re: Jquery and AJAX symfony 1.4

2010-04-20 Thread Thor
I suggest you to use jQueryReloaded plugin, it works greatly, and what you need is simply done by a helper like link_to_remote On 19 Apr, 19:58, trankh wrote: > Hello, > > I want to call a simple action without passing any argument inside a > jquery function. > No argument because a random functi

[symfony-users] Re: brackets in doctrine

2010-04-20 Thread kim
I solved it now by doing this ... AND ... OR ... AND ... this works for now but i'm still wondering how you can do functionality like with the brackets On 20 apr, 15:24, kim wrote: > hi > i have to nest some or / and conditions > but i need brackets in my sql statement to do it in the right ord

[symfony-users] frontend: get labels (not id) from child tables

2010-04-20 Thread SatBoy78
Hi I am developing a project with symfony (doctrine) and I am encountering some problems in retrieving data from child0tables; I'll explain the whole question: in my mysql db I have a main table that contains foreign key of some child tables. I've created symfony modules on these tables, and every

Re: [symfony-users] Re: foreign key relations in admin generator

2010-04-20 Thread Arnold Ispan
Can you provide more info about your problem so i can try to help you with your problem On Tue, Apr 20, 2010 at 5:19 PM, SatBoy78 wrote: > Hi > I've tried to use your suggestions to solve a similar problem that I > have with my application, but when I am in the backend_dev I can't see > the text

[symfony-users] brackets in doctrine

2010-04-20 Thread kim
hi i have to nest some or / and conditions but i need brackets in my sql statement to do it in the right order but how do you make this is thould be in this form (... OR ...) AND ... thnx greetings -- If you want to report a vulnerability issue on symfony, please send it to security at symfony

[symfony-users] Re: foreign key relations in admin generator

2010-04-20 Thread SatBoy78
Hi I've tried to use your suggestions to solve a similar problem that I have with my application, but when I am in the backend_dev I can't see the text label: there is a strange text " Doctrine_Collection data : Array( 0 : Object(ZoneCitta) ) " do you know the meaning of that string? I've used y

[symfony-users] Re: isValid always showing false

2010-04-20 Thread john
If you want to validate your existing objects, you can bind the form with the defaults. On Apr 20, 12:34 pm, kim wrote: > I want to validate my object cause these will not be given in by a > form but by URL (cause the frontend requires this) > so actualy i want a modelvalidation but i don't think

[symfony-users] kerberos/ldap <-> sfGuardPlugin ?

2010-04-20 Thread jaubry
Hi everybody, For my project, i have to use kerberos/ldap to authenticate the users accessing the application. I created the necessary tables : user, profile, ... instead of using the plugin sfGuardPlugin. I made this choice because the user table is minimalist (only a user_id, profile_id and a key

[symfony-users] Re: Handle form error in the action

2010-04-20 Thread Marijn
$form->getErrorSchema() contains all validation errors thrown On Apr 20, 2:55 pm, WallTearer wrote: > Aaaargh, > I've created custom PostValidator, but when I'm throwing my custom > exception from that post validator, symfony catches it first, and I > can not catch it in the action. > > I've trie

[symfony-users] Re: Handle form error in the action

2010-04-20 Thread WallTearer
Aaaargh, I've created custom PostValidator, but when I'm throwing my custom exception from that post validator, symfony catches it first, and I can not catch it in the action. I've tried to create custom exception class that extends sfValidatorError class (class sfValidatorLicenseError extends sfV

Re: [symfony-users] Re: isValid always showing false

2010-04-20 Thread Don Pinkster
My experience is that you must disable the CSRF protection in your sfForm configure method instead of outside the class. -- 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 Googl

[symfony-users] Re: Default culture in routing

2010-04-20 Thread Tom Ptacnik
I think you'll have to create two routes for every action - one for pl language (without pl in URL) and one for other languages (with language in URL) On 18 dub, 20:16, Tomasz Ignatiuk wrote: > Hi > > I use i18n in symfony 1.4 My default culture is pl (set in > settings.yml). Also I configured t

Re: [symfony-users] Re: isValid always showing false

2010-04-20 Thread Gareth McCumskey
You need to bind posted values to the form object for isValid() to run the validation checks. Assuming form_values is a form array where each field in the form is named as name="form_values[fieldname]" then this is how: $form_object = new FormObject(); $form_object->bind($request->getParameter('f

[symfony-users] Re: isValid always showing false

2010-04-20 Thread kim
I want to validate my object cause these will not be given in by a form but by URL (cause the frontend requires this) so actualy i want a modelvalidation but i don't think this is possible so i tried putting my object in the form and then validate the form. but it always returns false and i looked

[symfony-users] Re: ayuda con __string()

2010-04-20 Thread andres vanegaz
porque en jobeet no veo que ete pasando nada ni em mi proyecto -- 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, sen

Re: [symfony-users] help_sfPhpExcelPlugi

2010-04-20 Thread Stéphane
Hi, I think you simply cannot use this plugin outside symfony. This means you cannot instantiate this object outside a symfony action for example (just like what did Deepak). If you don't understand actions, you should consider reading more on symfony ;-) Cheers, Before Printing, Think about

Re: [symfony-users] help_sfPhpExcelPlugi

2010-04-20 Thread safa boubekri
thank you but should you explain more -- 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@

[symfony-users] symfony + doctrine + memcached + lazy loading

2010-04-20 Thread soulfly
Hi, I use memcached on my project and I use ->useResultCache(true) in queries. So everything would be ok, but when cache is enabled I get lazy loaded data in my query wich have leftJoins. Example: $q = $this->createQuery('a') ->leftJoin('a.DicRgn c') ->leftJoin('a.

Re: [symfony-users] help_sfPhpExcelPlugi

2010-04-20 Thread Stéphane
Hi, I think this plugin needs to be ran inside a symfony "thing" (task or action or whatever 'till sfConfig is loaded). This to say that you can't run it outside a symfony execution scope. >From what you are saying, you have two problems: the php_zip library wich isn't loaded (but declared so ph

Re: [symfony-users] help_sfPhpExcelPlugi

2010-04-20 Thread safa boubekri
so i load the php_zip.dll but i have the same message :php statup: unable to load dynamic library C:\wamp\bin\php\php5.3.0\ext\ php_zip when i executed the command *$>php plugins/sfPhpExcelPlugin/examples_1_2/01simple.php * after Create new PHPExcel object Fatal error: Class 'sfCon

[symfony-users] sfDoctrineActAsTaggablePlugin > Unknown method Video::addTag

2010-04-20 Thread comb
Hi! I'm trying to get sfDoctrineActAsTaggablePlugin working with symfony 1.4.4. First the plugin-install task doesn't exist, but it was renamed to "plugin:install", so I used this. The installation fails with: r...@r-pc D:\xampp\htdocs\pen4\pen4 # symfony plugin:install http://svn.symfony-proje

Re: [symfony-users] Re: :-( please help. ajax problem - noob to ajax -probably simple

2010-04-20 Thread Gareth McCumskey
Its exactly the right approach so don't worry about that ;) On Mon, Apr 19, 2010 at 4:46 PM, Tofuwarrior wrote: > Thanks all, I knew about changing the template but not about the > render text. I'm just off to try these things out now. > Much appreciated. > > As a general principle is my approach

Re: [symfony-users] isValid always showing false

2010-04-20 Thread Gareth McCumskey
The isValid() method is a validation check on user input after a user has submitted a form based on the validators you create in the forms object. Its not used to see if the form structure itself is valid. On Mon, Apr 19, 2010 at 4:37 PM, kim wrote: > hello, > > To see if a object is correct i pu