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

2010-04-21 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 to...@tomor.cz wrote: Which line of code causes this performance problems? On 19 dub, 17:20, mehdi hadef mehdi.ha...@gmail.com wrote: Hi all, I have a performance pr...

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

2010-04-21 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,

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

2010-04-21 Thread Massimiliano Arione
On 19 Apr, 16:46, Tofuwarrior psbur...@googlemail.com 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

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

2010-04-21 Thread Tom Ptacnik
I think problem was in the ProjectConfiguration.class.php - the plugin wasn't enabled..? On 20 dub, 22:59, comb sa...@gmx.net wrote: I got it  to work: I downloaded (instead of svn checkoutthe) the plugins tgz with the Download package-Link from the

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

2010-04-21 Thread Gareth McCumskey
Its not javascript code its just a JSON encoded string. On Wed, Apr 21, 2010 at 8:22 AM, Massimiliano Arione garak...@gmail.com wrote: On 19 Apr, 16:46, Tofuwarrior psbur...@googlemail.com wrote: As a general principle is my approach ( ie pull the data from an action into the jQuery) correct.

[symfony-users] Potential issue with SQL been generated by Propel!!?? or an issue with my schema??

2010-04-21 Thread Slavka
Ok i came accross this weird issue the other day... i created a schema.yml file ~ propel: _attributes: { package: lib.model.ams, defaultIdMethod: native } ams_company: id: ~ company:{ type: varchar(255),

Re: [symfony-users] Potential issue with SQL been generated by Propel!!?? or an issue with my schema??

2010-04-21 Thread Gábor Fási
You just copied a long schema and sql file, without any highlight of the problem whatsoever. You'd have better chances of getting an answer if you pointed to the problem, or at least gave us an error message. On Wed, Apr 21, 2010 at 09:14, Slavka richard@gmail.com wrote: Ok i came accross

[symfony-users] Re: Potential issue with SQL been generated by Propel!!?? or an issue with my schema??

2010-04-21 Thread Slavka
SORRY... IGNORE THIS POST. THE BUG WAS IN THE SCHEMA!!! On Apr 21, 5:36 pm, Gábor Fási maerl...@gmail.com wrote: You just copied a long schema and sql file, without any highlight of the problem whatsoever. You'd have better chances of getting an answer if you pointed to the problem, or at

[symfony-users] navigation plugin

2010-04-21 Thread Slavka
Hey guys... was just wondering if anyone has created a simple navigation plugin for symfony? -- 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

Re: [symfony-users] Re: configuration problem!?

2010-04-21 Thread Gareth McCumskey
The problem is probably that PDO is not installed. Create an easily accesible php file that you can open in browser with the code: ? phpinfo(); And run that in teh browser. Look for the mysql PDO and if you do not see it in there then that is your problem. Unable to find adapter for datasource

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

2010-04-21 Thread SatBoy78
hi thank you for your suggestion... but if I slugify the IDs I can change the text in the url, and I need that change (text label replacing IDs) in the indexSuccess and in the showSuccess pages, where there are the list of records stored in the database and each single record... now in my

[symfony-users] [ASK] How to implementing sfDynamicsPlugin?

2010-04-21 Thread riky jtk
Hi, anyone can explain to me, how to implement sfDynamicsPlugin? give me some example or step by step,.. Please [?] -- 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

Re: [symfony-users] Re: changed fields

2010-04-21 Thread Tamas Amon
I like to write it to a log file, but only the changed fields. I use propel, but maybe this function help for me? Thanks. On 19 April 2010 08:49, Tom Ptacnik to...@tomor.cz wrote: Where do you need to check this? If you are using doctrine, than you can do use in model $this-

Re: [symfony-users] Re: changed fields

2010-04-21 Thread Gareth McCumskey
AFAIK when you do a save() on a propel object its just does an update on all fields even if you only changed one, although I stand to be corrected on this. Eg: $propel_obj = TablePeer::retrieveByPk($primary_key); $propel_obj-setField1('newValue'); $propel_obj-setField2('newValue2');

[symfony-users] Re: configuration problem!?

2010-04-21 Thread Andz
PDO seems fine: [ pdo_mysql ] PDO Driver for MySQL - enabled Client API version - 5.1.41 On Apr 21, 11:07 am, Gareth McCumskey gmccums...@gmail.com wrote: The problem is probably that PDO is not installed. Create an easily accesible php file that you can open in browser with the code: ?

[symfony-users] Invitation to connect on LinkedIn

2010-04-21 Thread Welington Veiga
LinkedIn Welington Veiga requested to add you as a connection on LinkedIn: -- Sammi, I'd like to add you to my professional network on LinkedIn. - Welington Accept invitation from Welington Veiga

Re: [symfony-users] Invitation to connect on LinkedIn

2010-04-21 Thread Welington Veiga
Sorry. 2010/4/21 Welington Veiga welington.ve...@gmail.com LinkedIn Welington Veiga requested to add you as a connection on LinkedIn: Sammi, I'd like to add you to my professional network on LinkedIn. - Welington

Re: [symfony-users] Invitation to connect on LinkedIn

2010-04-21 Thread Gareth McCumskey
... On Wed, Apr 21, 2010 at 1:42 PM, Welington Veiga welington.ve...@gmail.comwrote: LinkedIn Welington Veiga requested to add you as a connection on LinkedIn: Sammi, I'd like to add you to my professional network on LinkedIn. - Welington

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

2010-04-21 Thread Paul Burdon
Thanks for all input everyone. Finally got it working, had to mess around with the javascript aswell and that is always tricky for someone who really has never gone very far with it. Anyway, it looks and works great, who would have thought that old dirty javascript would turn out to be such a

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

2010-04-21 Thread Alexandru-Emil Lupu
well i do: inside the controller: $this-hasLayout(false); inside the view: ?php echo json_encode($my_json_content_variable)? Alecs On Wed, Apr 21, 2010 at 2:51 PM, Paul Burdon p...@clearintent.co.uk wrote: Thanks for all input everyone. Finally got it working, had to mess around with the

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

2010-04-21 Thread Gareth McCumskey
And if you had to create a restful api that returns content as JSON? Returning JSON using renderText is perfectly valid and does not break the seperation of concerns. The actions responsibility is to recieve a request, gather data needed for the response and pass that data to the template and/or

[symfony-users] sfGuardDoctrine with external database

2010-04-21 Thread HiDDeN
Is there some way to use the sfGuardDoctrine plugin against an external database? What I mean is to make the plugin query its tables in another server. I have thought to replicate the plugin tables in another database and use the callable feature, although I'm not sure if this is the best

[symfony-users] Search in text files.

2010-04-21 Thread apm
I have a lot of files (csv, txt etc) not in database but in file system. Is it possible integrate it with some search engine? All what i want its filename as answer on search by some key. -- If you want to report a vulnerability issue on symfony, please send it to security at

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

2010-04-21 Thread Massimiliano Arione
On 21 Apr, 14:39, Gareth McCumskey gmccums...@gmail.com wrote: And if you had to create a restful api that returns content as JSON? Returning JSON using renderText is perfectly valid and does not break the seperation of concerns. The actions responsibility is to recieve a request, gather data

[symfony-users] Re: changed fields

2010-04-21 Thread rafaelgou
In PROPEL you can get with something like thiis with $this- modifiedColumns in save() method. In the following example, I watch some fields only: // Note the format of column name $watchedColumns = array ( ClientePeer::CLI_IP,

[symfony-users] how to JOIN TABLE for better performance?

2010-04-21 Thread comb
Hi Tables: Gig, Song and GigSong (many-to-many). I use a pager and in executeIndex I set up the Query: $q = Doctrine_Query::create() -from('Gig g') -leftJoin('g.GigSong gs ON gs.gig_id = g.id') -orderBy('gs.order_id ASC');

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

2010-04-21 Thread Paul Burdon
Could you clarify what the 'proper' way is please. Thanks. On 21 April 2010 14:02, Massimiliano Arione garak...@gmail.com wrote: On 21 Apr, 14:39, Gareth McCumskey gmccums...@gmail.com wrote: And if you had to create a restful api that returns content as JSON? Returning JSON using

[symfony-users] Re: sfWidgetFormSelectDoubleList order of items?

2010-04-21 Thread comb
WOW.. after so much work and searching and trying i got really sick about that.. BUT I finally GOT A SOLUTION! Thanks to daniel for this link: http://quasipartikel.at/multiselect/ And I found this up to date blog-post on how to save metadata during a form-save:

Re: [symfony-users] Search in text files.

2010-04-21 Thread Eno
On Wed, 21 Apr 2010, apm wrote: I have a lot of files (csv, txt etc) not in database but in file system. Is it possible integrate it with some search engine? All what i want its filename as answer on search by some key. http://www.symfony-project.org/plugins/sfLucenePlugin -- --

[symfony-users] symfony with subversion

2010-04-21 Thread jaubry
Hi, I am working on a symfony project written by many developpers. The project is under svn. Each developper works on its module. But sometimes, a developper need to change the schema.yml and regenerate the model. All the class files in lib/model,form,filter have changed and are put in the svn.

[symfony-users] jQuery + Forms + Symfony 1.3

2010-04-21 Thread wueb
Hi! There are any plugin or examples how to use jQuery in Forms validations for Symfony 1.3?? Thanks!! -- 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] Re: sfGuardDoctrine with external database

2010-04-21 Thread wueb
I understand you wanna a database with sfGuard and other with your tables? You can just make the 2 connections in the databases.yml all: sfGuardDatabase: class: sfDoctrineDatabase param: dsn: mysql:host=localhost;dbname=sfguarddatabase username: root password:

[symfony-users] Re: symfony with subversion

2010-04-21 Thread Poltasi Risom
i advice you to put all generated files to ignore, for instance svn rm lib/model/doctrine/base/* svn propedit svn:ignore lib/model/doctrine/base # put here * or *.php and so on I had conflicts with base files earlier many times BUT deploying the project you have to rebuild all cache/* and log/*

[symfony-users] autogenerated id columns

2010-04-21 Thread Tofuwarrior
Is it possible to stop symfony/propel autogenerating id columns in my tables? I have the following schema and don't want id columns on the files and folder tables, they have object_id that is Fk to the objects table. I want to then create a getid that returns the objectId but at the moment

[symfony-users] working with filters

2010-04-21 Thread Germana Oliveira
Hi! Is there a way to define a filter for a 'created_at' field ??? THANKS!! -- Germana Oliveira germanaoliveirab arroba gmail punto com http://626f67.wordpress.com http://slcarabobo.wordpress.com -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] sfEasyGMapPlugin

2010-04-21 Thread Omar El Mazny
Hi all, i've been trying all day to integrate sfEasyGMap to my application, the sample works fine but in my application i only see a grey empty square !!! any suggestions ?? thnx in advance !!! -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] Re: sfEasyGMapPlugin

2010-04-21 Thread BenjaM1
Did you set the zoom and the center of your map ? $gMap-setZoom(...); $gMap-setCenter(...); On 21 avr, 16:55, Omar El Mazny omar.elma...@gmail.com wrote: Hi all, i've been trying all day to integrate sfEasyGMap to my application, the sample works fine but in my application i only see a

[symfony-users] Re: sfEasyGMapPlugin

2010-04-21 Thread Omar El Mazny
i tried with the zoom and center same problem !! same grey square On Apr 21, 5:04 pm, BenjaM1 benjamin.grandf...@gmail.com wrote: Did you set the zoom and the center of your map ? $gMap-setZoom(...); $gMap-setCenter(...); On 21 avr, 16:55, Omar El Mazny omar.elma...@gmail.com wrote: Hi

[symfony-users] Multiple actions in one page

2010-04-21 Thread gopi
hi.. I have got two forms to be displayed on a page (both are independent of each other). Ex: user login, search Both the forms are the output of two different actions How do I get both the forms to be displayed on the same page? Component would have been better, but as far I could gather, it

Re: [symfony-users] Multiple actions in one page

2010-04-21 Thread Daniel Lohse
Why wouldn't it be possible to display symfony forms from components? That would be *i n s a n e*. A form is just an object you pass onto the view. Just instantiate your form class in the component via $this-form = new YourFormClass(); and do an echo $form; in your component view. What did you

[symfony-users] Re: Multiple actions in one page

2010-04-21 Thread gopi
hi Daniel, thx for the clarification. I just tried using form in a component and it works. thx gopi On Apr 21, 9:48 pm, Daniel Lohse annismcken...@googlemail.com wrote: Why wouldn't it be possible to display symfony forms from components? That would be *i n s a n e*. A form is just an

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

2010-04-21 Thread comb
well now it's enabled cause the install-task worked with the *.tgz and does this automatically, but maybe you're right and it wasn't enabled before.. any way, it works that way I described :-) On 21 Apr., 08:24, Tom Ptacnik to...@tomor.cz wrote: I think problem was in the

[symfony-users] how to get the pattern of a route?

2010-04-21 Thread comb
Hi! I have two routes: routing.yml video_list_category_bestrated: url: /video/category/:category_slug/bestrated class: sfDoctrineRoute options: { model: VideoCategory, type: object } param: { module: video, action: category } requirements: sf_method: [get] video_list_category:

[symfony-users] FormFilterDate

2010-04-21 Thread Germana Oliveira
Hi!!! I have a table without 'date' so i use the 'created_at' field to define the date and show it to the user, the thing is that now im working with filters and ans error comes out when i try to search something (Notice: Array to string conversion in

[symfony-users] Database changes

2010-04-21 Thread Parijat Kalia
Hey guys, The one sucky part about symfony for me is how to handle database changes. I mean, if I need to go about changing db fields, then must i loose all my existing data? I am sure there is a very easy way around this, coz if there is a long way around it, then that would be crazy as db

Re: [symfony-users] Database changes

2010-04-21 Thread Eno
On Wed, 21 Apr 2010, Parijat Kalia wrote: The one sucky part about symfony for me is how to handle database changes. I mean, if I need to go about changing db fields, then must i loose all my existing data? I am sure there is a very easy way around this, coz if there is a long way around

[symfony-users] Unavailable and Error page - can't use helpers or else?

2010-04-21 Thread godbout
Hi! I'm customizing my error and unavailable page and I'm a bit surprised to see that the include_stylesheet and other helpers don't work. I want to use the same sheets that for my app. Can't I use any symfony framework functionalities in those 2 files? Thx, Cheers -- If you want to report a

[symfony-users] Re: Database changes

2010-04-21 Thread godbout
Yeah, and it looks like it's the same guy that is asking the same thing over and over... http://groups.google.com/group/symfony-users/browse_thread/thread/6f50773c4d21d00/0b0195e283f7cacb?lnk=gstq=Parijat+Kalia#0b0195e283f7cacb On Apr 22, 10:09 am, Eno symb...@gmail.com wrote: On Wed, 21 Apr

Re: [symfony-users] Re: Database changes

2010-04-21 Thread Parijat Kalia
To Eno! Thanks Eno!!! Thing is I am on propel now, and I don't really have the time to work through a shift to doctrine. Although I am sure it isn't the most time consuming activity, but time is a little tight here. Is there something similar in propel? To GODBOUT! Hey ...nice piece of detective

Re: [symfony-users] Re: Database changes

2010-04-21 Thread Gareth McCumskey
@Parijat Don't use symfony's command line tools to propagate database changes to a live system with production data. Those command line tools really are designed for development purposes. The best way to go about altering a live production server is to make the changes to the schema in your