[symfony-users] Re: Problem with doctrine:build

2010-07-03 Thread Tom Ptacnik
One problem is in your schema - there you have differents integer types - type: integer(4), integer - if you want to build a relationship you have to have the same integer types. (integer on both, or integer(4) or integer(8)... On 1 čnc, 17:46, Shawn electricbonf...@gmail.com wrote: After

[symfony-users] Re: Question about set/get methods of model classes

2010-07-03 Thread Tom Ptacnik
Because you can have this on the air get/set methods in the parent class and you don't have to generate all get/set methods in your concrete model. On 1 čnc, 18:59, Javier Garcia tirengar...@gmail.com wrote: Hi, why the get and set methods of the model classes are created on the air, instead

[symfony-users] Re: Rich text editor with upload image plugin

2010-07-03 Thread Tom Ptacnik
I'm using tinybrowser with tinyMCE - it works fine for me. On 1 čnc, 22:10, Mariano Sola mariano.s...@gmail.com wrote: Has anyone worked with any rich text editor with the upload image option activated in Symfony 1.4? I did some tests with TinyMCE and iBrowser but I wasn't be able to make

[symfony-users] Re: HELP: error sending mail

2010-07-03 Thread Tom Ptacnik
There is some solution http://markmail.org/message/vc4tgfssxriqrrew -- $message = $this-getMailer()-compose(); $message-setSubject('Asunto'); $message-setTo($email); $message-setFrom('server...@mail.cu'); $message-setBody($mailBody); $this-getMailer()-send($message); -- This error look like On

[symfony-users] Re: one backend multiple sites

2010-07-03 Thread Tom Ptacnik
I think this can be done via .htaccess ... there will be only one project and the domains will be alliased to the one domain (one place). Then you can set in htaccess specific frontend controller for every domain. On 2 čnc, 01:03, david davi...@gmail.com wrote: Hi, I've got multiple sites with

[symfony-users] Re: Determine sfGuardPermission required for action, from within an action or filter

2010-07-02 Thread Tom Ptacnik
I can use, or is there a way to access the action object from within a filter? On Thu, Jul 1, 2010 at 1:59 AM, Tom Ptacnik to...@tomor.cz wrote: Try this http://www.symfony-project.org/api/1_4/sfAction#method_getcredential On 30 čvn, 14:49, Donald chekot...@gmail.com wrote: I'm trying

[symfony-users] Re: Warning: glob() [function.glob]: Unable to access .../plugins/xxxPlugin/modules/* when modules directory doesn't exist

2010-07-02 Thread Tom Ptacnik
5.2.4 (sorry I didn't mention it ;) On 1 čnc, 16:27, axe ca...@centrum.cz wrote: what version of PHP do you use? -- 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

[symfony-users] Re: Use database in app.yml

2010-07-02 Thread Tom Ptacnik
I'm not sure it's possible to do it this way. Why do you want to insert some configuration into the app.yml from database? For what do you need this configuration setting? On 1 čnc, 14:51, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I want to use some configuration settings from

[symfony-users] Re: Re-populate file input field after validation error

2010-07-01 Thread Tom Ptacnik
Problem with automatic refilling file input is due to the security - it's restricted by browsers. (think about what can happen if you could change the file path...you can stole files from the users computer easily.) So if you'll google you'll find many topics where people complain about this...and

[symfony-users] Re: Imploding an array before saving

2010-07-01 Thread Tom Ptacnik
I think you can do this in the doUpdateObject() method of the form class something like that: protected function doUpdateObject($values) { // implode the age $values['age_separation'] == $this-implodeAge($values); parent::doUpdateObject($values); } On 30 čvn, 11:08, Dantes

[symfony-users] Re: Determine sfGuardPermission required for action, from within an action or filter

2010-07-01 Thread Tom Ptacnik
Try this http://www.symfony-project.org/api/1_4/sfAction#method_getcredential On 30 čvn, 14:49, Donald chekot...@gmail.com wrote: I'm trying to determine what sfGuardPermission was required for an action, from within the action. Is this possible? myModule/config/security.yml: show:  

[symfony-users] Warning: glob() [function.glob]: Unable to access .../plugins/xxxPlugin/modules/* when modules directory doesn't exist

2010-07-01 Thread Tom Ptacnik
Hi, I'm using Symfony 1.4.5 and on my production server Warning appears (if I browse the application with debug environment) (unix machine, safe mode is ON) I know why it happen - It's caused by the fact that there aren't directory /modules in any of this plugin What do you suggest? 1) Should I

[symfony-users] Important sfDoctrineApplyPlugin news

2010-07-01 Thread Tom Boutell
The svn trunk of sfDoctrineApplyPlugin will soon contain bleeding edge code. You should NOT pin the svn:externals of your project to the trunk. Instead, you may pin them to the new 1.1 branch, which contains the stable release you're used to. Change your externals to read like so:

[symfony-users] Re: Custom filter for admin generated sfGuardUser module

2010-06-30 Thread Tom Ptacnik
= ? IN (?) AND p2.last_name = ? GROUP BY s.id) dctrn_count_query', array('text' = '')) This was for a filter where first_name = Tom and last_name did not have anything to filter for. Theoretically, the query should not include last_name at all. I have checked the $values and they are correct. Any ideas how

[symfony-users] Re: Organization of library applications

2010-06-30 Thread Tom Ptacnik
try generatePath: parameter in the schema.yml http://groups.google.com/group/symfony-devs/browse_thread/thread/124582b39dd19a55 On 29 čvn, 14:29, Romeu Godoi romeu.go...@gmail.com wrote: English Hello everyone! I am migrating

[symfony-users] Re: Multiple links in a single image slide show..

2010-06-28 Thread Tom Ptacnik
Post more detail, I don't understand what the problem is. Show some code. Or post some link that We can see your gallery. On 23 čvn, 12:15, Vinay reddy vinayreddy1...@gmail.com wrote: Please..Very urgent..I have created multiple image slide show but it is becoming complex when trying to slide

[symfony-users] Re: Plugin from Embedded form in new window

2010-06-28 Thread Tom Ptacnik
What about a little different solution: - When you click on the plus only an input will be shown next to the plus (this input can be defined as hidden and shown by javascript). You will write a new Poll name into this input and it will be used instead of the choice. This new Poll will be added

[symfony-users] Re: Switch database sf 1.4 doctrine

2010-06-28 Thread Tom Ptacnik
Something is here (but not much) http://symfonyexperts.com/question/show/id/38 http://groups.google.com/group/symfony-users/browse_thread/thread/3b09221615b51919/dc44e4d364bdc9b2?lnk=gstq=multiple+databases#dc44e4d364bdc9b2 On 25 čvn, 21:30, stakovicz stakov...@gmail.com wrote: Hi ! How can I

[symfony-users] Re: Doctrine fails on insert new value

2010-06-25 Thread Tom Ptacnik
Try to google it. I'm sure you will find some solution. I found this: http://trac.doctrine-project.org/ticket/568 http://trac.symfony-project.org/ticket/3831 On 22 čvn, 15:27, Marxy oleha.ma...@gmail.com wrote: Hello! I got this error while added new value on standrd form generated by

[symfony-users] Re: How to pass PHP values to addJavascript() (or something else) ?

2010-06-25 Thread Tom Ptacnik
, Tom Ptacnik to...@tomor.cz wrote: So if I need to get some variables in javascript from the app, you advice is to generate it into the DOM? Example: I need to detect which culture is set. Then i should generate div id=culture style=display:none;en/div into the DOM

[symfony-users] Re: How to pass PHP values to addJavascript() (or something else) ?

2010-06-25 Thread Tom Ptacnik
:38 -0700 (PDT), Tom Ptacnik to...@tomor.cz wrote: And what do you suggest if I need for example some texts... some info messages .. assume that I'm using I18n. Is there another way than read it from the DOM .. some hidden generated div, or span.. or whatever. Hi, maybe you could load them

[symfony-users] Re: Doctrine Query Left Join

2010-06-25 Thread Tom Ptacnik
What about $this-nodes = Doctrine::getTable('ElementNode') -createQuery('n1') -select('n1.*, n2.*') -leftJoin('ElementNode n2 ON n1.id = n2.nodeSubnodeOf') -execute(); On 25 čvn, 14:35, Jérémie jeremie.symf...@gmail.com wrote: Hi, I have this mysql query : SELECT n1.*, n2.* FROM ElementNode

[symfony-users] Re: How to pass PHP values to addJavascript() (or something else) ?

2010-06-24 Thread Tom Ptacnik
So if I need to get some variables in javascript from the app, you advice is to generate it into the DOM? Example: I need to detect which culture is set. Then i should generate div id=culture style=display:none;en/div into the DOM and then in the javascript read the value of the div by id? On

[symfony-users] Re: Doctrine fails on insert new value

2010-06-24 Thread Tom Ptacnik
Which type of database do you use? On 22 čvn, 15:27, Marxy oleha.ma...@gmail.com wrote: 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,

[symfony-users] Re: Symfony design issue

2010-06-24 Thread Tom Ptacnik
I think that events would be right way to go ( http://www.symfony-project.org/gentle-introduction/1_4/en/17-Extending-Symfony ) I would create myUser which extends of sfGuardSecurityUser or sfBasicSecurityUser or something like that. Then when credentials will be changed notify(), if user is

[symfony-users] Re: Doctrine schema: two realtionships between two tables

2010-06-24 Thread Tom Ptacnik
I would create an attribute in the GalleryPicture table preview { type: boolean } then I would create a method for retrieving this preview_image - getPreviewImage() in the Gallery model class .. this method wil call a method from GalleryPictureTable.class.php - findPreviewImage($galleryId) body

[symfony-users] Re: backend module

2010-06-24 Thread Tom Ptacnik
Or you can disable it in generator.yml try this... list: object_actions: _edit: ~ batch_actions: {} actions: {} On 23 čvn, 08:30, slau susan@gmx.de wrote: Hi, for 1) seehttp://www.symfony-project.org/jobeet/1_4/Doctrine/en/12#chapter_12_t... you can

[symfony-users] Re: Route does not add a parameter when its defined as a default one.

2010-06-24 Thread Tom Ptacnik
I don't get why in first example the Output: http://localhost/blog/page/2 If you want the output like this just define your route like blog: url: /blog/page/:page param: { module: blog, action: list, page: 1 } On 23 čvn, 13:55, Ivo Az. sep...@gmail.com wrote: These are

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

2010-06-22 Thread Tom Ptacnik
();         $fiche-save();         $artiste = new Artiste();         $a = $fiche-getId();         $artiste-setIdFiche($a);         $this-form = new ArtisteForm($artiste);   } i got the needed id in $a, but when the form is saved no id is written in db... On 21 juin, 09:00, Tom Ptacnik

[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 terence.pi...@gmail.com wrote: Hi there, i have a simple and basic quesion here about symfony : how can i set values into a form field

[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 mo.mughr...@gmail.com wrote: Hello, I been trying

[symfony-users] Re: Advantages over foreign key

2010-06-21 Thread Tom Ptacnik
http://en.wikipedia.org/wiki/Foreign_key http://www.youtube.com/watch?v=KBYU5bAR0_g On 17 čvn, 14:53, Arun Raj R aru...@gmail.com wrote: Thanks Dan Harabagiu, I used it in symfony and it is very useful . But some time i want to use plain php. I don't know how to manage these foreign keys in

[symfony-users] Re: Too many redirects error on symfony.

2010-06-16 Thread Tom Ptacnik
I think that this code will redirect to http even if I'm on http right. And same with https. I'm on https and this filter redirect me to https again.. So I advice to insert conditions...I'll show it on pseudocode if (ImNotOnHTTP $sslEnabled !$secureRequest) { redirect to http }

[symfony-users] Re: Automated web installer

2010-06-14 Thread Tom Ptacnik
- User has to prepare hosting for your app (this can't by done by your install script) - You have to create an install script which will create a database and set database connection settings. On 10 čvn, 14:26, Davide Bellettini davide.bellett...@gmail.com wrote: Hello everybody, i'm working

[symfony-users] Re: practical symfony guide 1.4 routing (or apache?) question

2010-06-14 Thread Tom Ptacnik
Look here http://code-launch.com/?p=36 same problems as you've described On 12 čvn, 11:59, Gábor Fási maerl...@gmail.com wrote: The symptoms you described show otherwise. Try to uncomment the IfModule tags in your .htaccess, if you get an internal server error, you surely have it disabled.

[symfony-users] Re: Managing i18n content for frontend in the backend

2010-06-14 Thread Tom Ptacnik
://www.mda.ch/lms/Bildschirmfoto-1.png Regards, Christopher. -Ursprüngliche Nachricht- Von: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] Im Auftrag von Tom Ptacnik Gesendet: Donnerstag, 10. Juni 2010 10:10 An: symfony users Betreff: [symfony-users] Re: Managing

[symfony-users] app.yml array is not array on first level

2010-06-14 Thread Tom Ptacnik
Do someone know why first solution produce bad array and second will produce good array? I'm talking abou settings in app.yml 1) all: frontend_cultures: [cs, en] will produce (cache/app/dev/app.yml.php): 'app_frontend_cultures_0' = 'cs', 'app_frontend_cultures_1' = 'en', 2) all: frontend:

Re: [symfony-users] Forcing a canonical hostname for absolute links without clobbering the entire context: possible?

2010-06-14 Thread Tom Haskins-Vaughan
to get absolute links has Tom request ? Thanks, Olivier -Message d'origine- De : symfony-users@googlegroups.com [mailto:symfony- us...@googlegroups.com] De la part de Tom Boutell Envoyé : vendredi 13 novembre 2009 23:35 À : symfony-users@googlegroups.com Objet : [symfony-users

[symfony-users] Re: Sorting in one to many relationships

2010-06-14 Thread Tom Ptacnik
In yaml Object: connection: doctrine options: orderBy: column DESC tableName: tablename columns: On 13 čvn, 12:32, Ozzy oye...@gmail.com wrote: Hi, I have a table which is called Articles. It is related to another table ArticleComment via:         $this-hasMany('ArticleComment

[symfony-users] Re: How to show an object_action based on a specific condition (admin generator)?

2010-06-14 Thread Tom Ptacnik
I think you can use GeneratorHelper for that ... apps/appname/module/ lib/moduleGeneratorHelper.class.php On 14 čvn, 00:49, Bruno Reis bruno.p.r...@gmail.com wrote: Hi, Is there a way to specify a specific condition required to show one object_action in a list? I want to show the action

[symfony-users] Re: Doctrine many to many relation problem

2010-06-14 Thread Tom Ptacnik
I think it's because different integer types... they must be the same when you want to create relation user_id: type: integer(5) ... check which type is on the other side. On 14 čvn, 12:00, Jon jon...@gmail.com wrote: Hi, I have a problem with de many to many relations in doctrine. I

[symfony-users] Re: How to add an error to a form field

2010-06-10 Thread Tom Ptacnik
for the confusion, Asier. On Tue, Jun 8, 2010 at 3:55 PM, Tom Ptacnik to...@tomor.cz wrote: How do you want to show the error next to the hidden field? All hidden fields are on the beginning of the form, aren't they? On 7 čvn, 16:35, Asier aillarrame...@gmail.com wrote: Hi there, I have

[symfony-users] Re: using PropelRouteCollections in YAML or elsewhere

2010-06-10 Thread Tom Ptacnik
Show your: symfony app:routes nameOfTheApp On 8 čvn, 18:18, Robert Schoenthal seros...@googlemail.com wrote: he guys, i have a propelRouteCollection: foo:   class: sfPropel15RouteCollection   options:     model:                 Foo     module:               foo     prefix_path:        

[symfony-users] Re: Managing i18n content for frontend in the backend

2010-06-10 Thread Tom Ptacnik
[mailto:symfony-us...@googlegroups.com] Im Auftrag von Tom Ptacnik Gesendet: Dienstag, 8. Juni 2010 16:03 An: symfony users Betreff: [symfony-users] Re: Managing i18n content for frontend in the backend Hi, thank you for your response. I've managed this today as I sad in my first report (one

[symfony-users] Re: Trouble whith session and sfWebRequest

2010-06-10 Thread Tom Ptacnik
Show the URL you are typing. look what echo $request-getParameter('P'); die; shows On 9 čvn, 13:40, Albert Johé albert.j...@gmail.com wrote: I have this easy function: public function executeGProva(sfWebRequest $request)   {        

[symfony-users] Managing i18n content for frontend in the backend

2010-06-08 Thread Tom Ptacnik
Hi, I want to tell you my thoughts about managing I18N content in the backend and want to know your opinions. I want to internationalize my frontend app - classic (i18n/ messages.xx.xml + object with I18n behaviour) .. no problem Then I need to manage internationalized objects (News) in the

[symfony-users] Re: Math problem in my diploma thesis

2010-06-08 Thread Tom Ptacnik
I'll try :) input - arrayA, arrayB while arrayA has values { take value of arrayA one by one while arrayB has values { add combination of value from arrayA and arrayB into the result as array } } return result .. if combinations are only the pairs of numbers (I hope so :) , I

[symfony-users] Re: help:doctrine

2010-06-08 Thread Tom Ptacnik
How is it giving you the id? On 7 čvn, 13:20, safa boubekri boubekri.s...@gmail.com wrote: hello i  make  this  code in my action $this-test = Doctrine_Query::create()    -select('titre')    -from('Cotisation')-execute(); it's give me  the Id   but not  'titre' thank  you -- If you

[symfony-users] Re: How to add an error to a form field

2010-06-08 Thread Tom Ptacnik
How do you want to show the error next to the hidden field? All hidden fields are on the beginning of the form, aren't they? On 7 čvn, 16:35, Asier aillarrame...@gmail.com wrote: Hi there, I have a form with an embedded form, wich can have N embedded forms: parentForm:   wrapperForm:    

[symfony-users] Re: Managing i18n content for frontend in the backend

2010-06-08 Thread Tom Ptacnik
Hi, thank you for your response. I've managed this today as I sad in my first report (one translation on the form via mergeForm, selected language is set in the session), but I would realy like to see your solution. Regards, Tom On 8 čvn, 09:17, Christopher Schnell ty...@mda.ch wrote: Hi

[symfony-users] Re: getRaw produces blank content

2010-06-08 Thread Tom Ptacnik
In the template ?php echo $object-getAtributte(ESC_RAW) ? On 8 čvn, 14:26, el-sid sydneyari...@gmail.com wrote: i mean unescape selected content On Jun 8, 3:23 pm, el-sid sydneyari...@gmail.com wrote: hello all, I am trying to render content from the database that was stored using

[symfony-users] Re: Trying to overwriting a method of a sf class

2010-06-07 Thread Tom Ptacnik
Your solution is good if you need it in one or two form classes. Otherwise implement this method in the BaseForm.class.php which is located in lib/form ... all your form classes are extended from this class, so this method will be avaliable (you have to set it public or protected) On 4 čvn,

[symfony-users] Re: Custom directory structure

2010-06-07 Thread Tom Ptacnik
Try to simulate this localy on your computer. It must work. I've easily changed the project web folder. On 3 čvn, 07:47, Ragnis ragnis.ar...@gmail.com wrote: 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

[symfony-users] Re: render widget as label

2010-06-07 Thread Tom Ptacnik
Look here http://groups.google.com/group/symfony-users/browse_thread/thread/80f7a59e1b132909 On 4 čvn, 22:00, fRAnKEnSTEin shirkav...@gmail.com wrote: Hi there, Is there any way of rendering a form widget as a label? for example if i have a form called fooForm defined as: ... ... public

[symfony-users] Re: the symfony actions is not receiving the request of jquery

2010-06-07 Thread Tom Ptacnik
This is too general. Write more details .. which url, how you send the ajax request, which action, how you routes look, wich symfony version... On 4 čvn, 23:10, Alejandro Linares alejandrolinare...@gmail.com wrote: Somebody please help me, when i send the request from the jquery to the index

[symfony-users] Re: Translation request

2010-06-07 Thread Tom Ptacnik
In Czech: Potřebujeme Symfony programátory. On 4 čvn, 16:33, Денис Горбачев denis.gorbac...@trueoffice.ru wrote: Hello everybody! I want my bannerhttp://share.auditory.ru/2011/Denis.Gorbachev/Projects/Web.Trueoffice...to be available in all languages. I ask you to translate the banner

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

2010-06-04 Thread Tom Ptacnik
I think you should look on this jQuery function, it should help you http://api.jquery.com/live/ On 2 čvn, 19:34, Vincent UNG ung.vinc...@gmail.com wrote: 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

[symfony-users] Re: Custom directory structure

2010-06-04 Thread Tom Ptacnik
, 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 27 kvě, 16:45, Ragnis ragnis.ar...@gmail.com wrote

[symfony-users] Re: use_javascripts_for_form($form) apparently not working

2010-06-04 Thread Tom Ptacnik
This is my solution: http://pastebin.com/5PCWVfuP ... I've moddified my BaseForm class, and now I can do in my forms classes this (I use it in the configure method of the form class): // Set tinymce and tinyBrowser js files import $this-setJavaScripts(array(

[symfony-users] Re: use_javascripts_for_form($form) apparently not working

2010-06-04 Thread Tom Ptacnik
New version of the BaseClass - inicialization of the attributes, better condition for array merging http://pastebin.com/uzvqbAXm On 4 čvn, 12:45, Tom Ptacnik to...@tomor.cz wrote: This is my solution:http://pastebin.com/5PCWVfuP ... I've moddified my BaseForm class, and now I can do in my forms

[symfony-users] Re: method_backned

2010-06-03 Thread Tom Ptacnik
Then it looks that the function getTotals(); is bad. Yet you can try to set $this-test manualy in the action and look if it's correctly passed to the template. If so, focus on the getTotals() function. On 2 čvn, 10:59, safa boubekri boubekri.s...@gmail.com wrote: i try it  it's gives me  white

[symfony-users] Common interfaces for shipping, tax and payments

2010-06-03 Thread Tom Haskins-Vaughan
to program for. Has anyone done anything like this? I know there's the sfPaymentPlugins but what about for shipping and tax? Thanks in advance, Tom -- 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

Re: [symfony-users] Common interfaces for shipping, tax and payments

2010-06-03 Thread Tom Haskins-Vaughan
Thanks, Richard, I'll take a look. Anyone else working on anything else? On Thu, Jun 3, 2010 at 3:15 PM, Richard D Shank deve...@zestic.com wrote: On 06/03/2010 11:18 AM, Tom Haskins-Vaughan wrote: Hi All, We have a US ecommerce site at that we are looking to take into Canada. Since we

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

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

[symfony-users] Re: Custom directory structure

2010-06-01 Thread Tom Ptacnik
 am, Tom Ptacnik to...@tomor.cz wrote: I think it can be done easily... it's just about moving the web folder somewhere else. And you have to configure you virtual in a right way of course. Virtual  - classic - for you into public_html/api   don't forget for alias for vendor/symfony

[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: 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] Re: Creating an array element with sfForm

2010-05-28 Thread Tom Ptacnik
Look here ( http://www.mail-archive.com/symfony-users@googlegroups.com/msg10673.html ) I think it may help you. Or try to find some solution on http://snippets.symfony-project.org/snippets/order_by/date/1 (beware there are many pages ;) On 26 kvě, 21:13, Avi Block atbl...@gmail.com wrote:

[symfony-users] Re: how to prevent save in preInsert?

2010-05-28 Thread Tom Ptacnik
If you want to redirect back to the filled form when user don't wait enough, then I think the best solution would be to do this validation in the moment as classic validation of the form fields. I suggest to create some class for this validation ... FloodProtector.class.php then create some

[symfony-users] Re: method_backned

2010-05-28 Thread Tom Ptacnik
You can't. Action is connected with the routing - url. So if you want to execute some action, you can do redirect, forward or something like that. If you want to call some function/method over the whole app, you should have it in some class - some App/Bussines/Tools class or in the model object.

[symfony-users] Re: Dynamic Forms

2010-05-27 Thread Tom Ptacnik
I think it's easy to do that with classic Symfony sfForm with hand made template ;) Read this http://www.symfony-project.org/forms/1_4/en/03-Forms-for-web-Designers and you will solve your situation. On 24 kvě, 16:01, Asier aillarrame...@gmail.com wrote: Hi there, I started with a form,

[symfony-users] Re: Question about a piece of code in sfDoctrineGuardPlugin

2010-05-27 Thread Tom Ptacnik
Do you mean why sfConfig::get('app_sf_guard_plugin_success_signin_url'); is different from $user-getReferer($request-getReferer())); ? On 24 kvě, 19:00, Javier Garcia tirengar...@gmail.com wrote: Hi, there is this code below in sfDoctrineGuardPlugin. $a =

[symfony-users] Re: Question about sfDoctrineGuardPlugin and signing

2010-05-27 Thread Tom Ptacnik
Why do you want to do that? On 24 kvě, 15:39, Javier Garcia tirengar...@gmail.com wrote: Hi, by default, using sfDGP, when i try to execute an action of an application with security activated, the signin form appears but the URL doesn't change to frontend_dev.php/login. So, what should i

[symfony-users] Re: created_at in FormFilter

2010-05-27 Thread Tom Ptacnik
I don't know if others does, but I don't get the question :) On 25 kvě, 03:01, Germana Oliveira germanaolivei...@gmail.com wrote: Hi!! i have a table on MySQL with a  created_at field : ... created_at     | datetime ... In my symfony project i just begin working with Filters

[symfony-users] Re: problem rendering embedded form when in edit

2010-05-27 Thread Tom Ptacnik
...@clearintent.co.uk wrote: HI Tom, Thanks for sticking with me on this, much appreciated. I think I may have tried that before because when I do, 2 familar things happen. 1 Saem problem with the id being 1. 2 is that when I try to view the edit action I get the following form rendering error which

[symfony-users] Re: Custom directory structure

2010-05-27 Thread Tom Ptacnik
I think it can be done easily... it's just about moving the web folder somewhere else. And you have to configure you virtual in a right way of course. Virtual - classic - for you into public_html/api don't forget for alias for vendor/symfony/data/web/sf (The Alias statement is necessary for

[symfony-users] Re: best practice to save nb_comments

2010-05-27 Thread Tom Ptacnik
I like this solution with postInsert(). It looks better to me than the listener method :) On 26 kvě, 23:23, comb sa...@gmx.net wrote: hmm.. you're right.. cannot get the simplest things some times...:-D But a last question: Isn't it easier to use the PostInsert Record-Hook of the

[symfony-users] Re: generator.yml : how to add a custom edit action ?

2010-05-27 Thread Tom Ptacnik
You can't do that over the generator.yml You have to create it by yourself - create an action methods, routing for them (edit, update), create a new form class something like sfGuardUserProfileForm.class.php ... extended from the base form class, templates - you can copy them from the cache

[symfony-users] Re: Trying to load a .css from sfJqueryReloadedPlugin

2010-05-27 Thread Tom Ptacnik
What is the generated url for loading the css file ... look into your browser and show source fo the web page. Isn't it /css/sfJqueryReloadedPlugin/css/ui-lightness/jquery- ui-1.7.2.custom.css ? On 26 kvě, 12:08, Javier Garcia tirengar...@gmail.com wrote: Hi, i have this lines: ?php

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

2010-05-27 Thread Tom Haskins-Vaughan
Can you not achieve this with credentials? On Thu, May 27, 2010 at 10:53 AM, Ricardo richard.verg...@gmail.com wrote: Somebody can help 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

[symfony-users] Apostrophe 1.4 is out: introducing the blog plugin!

2010-05-26 Thread Tom Boutell
will receive no major feature upgrades and other potentially major breaking changes. -- Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because

Re: [symfony-users] Trying to load a .css from sfJqueryReloadedPlugin

2010-05-26 Thread Tom Haskins-Vaughan
I know it may be a silly question, but do you have the correct url for the css file? I mean, what happens when you put it in your brower location bar? On Wed, May 26, 2010 at 6:08 AM, Javier Garcia tirengar...@gmail.com wrote: Hi, i have this lines: ?php

Re: [symfony-users] Ajax based doubt

2010-05-26 Thread Tom Haskins-Vaughan
+1 for jquery On Wed, May 26, 2010 at 8:51 AM, Eno symb...@gmail.com wrote: On Wed, 26 May 2010, Parijat Kalia wrote: 1) Enabling jQuery or Prototype (which 1 is better and easier to learn) jQuery has a lot more widgets available IMHO. 2) Do I need to download anything off the net, or are

[symfony-users] Re: camel case error in class generation by propel. BUG?

2010-05-25 Thread Tom Ptacnik
If you use schema.yml it will be just like you write it... sfDtPage: actAs: Timestampable: columns: . Page: actAs: Timestampable: columns: . First will create class sfDtPage, the second Page. On 23 kvě, 18:36, Tofuwst will create a class sfDtPage, second

[symfony-users] Re: problem rendering embedded form when in edit

2010-05-25 Thread Tom Ptacnik
Anyone? On May 24, 1:47 pm, Tofuwarrior p...@clearintent.co.uk wrote: Hi Tom, Thanks for replying. My problem has moved on. I can render the forms fine now but when I save in new mode the system saves the parent(storyteller) and the child (contact_details) objects but doesn't put

Re: [symfony-users] creating 2 websites (different domain name) sharing the samedatabse

2010-05-25 Thread Tom Haskins-Vaughan
Yes, it should be fairly easy. 1. create one or more application for each domain name 2. point your domain name's to the same place 3. check in your index.php which domain name you have and launch the appropriate application Tom On Tue, May 25, 2010 at 5:21 AM, mehdi hadef mehdi.ha

Re: [symfony-users] best practice to save nb_comments

2010-05-25 Thread Tom Haskins-Vaughan
Is this what you're looking for? http://www.symfony-project.org/more-with-symfony/1_4/en/08-Advanced-Doctrine-Usage On Tue, May 25, 2010 at 6:42 AM, Stéphane stephane.er...@gmail.com wrote: Hi, No, think about listeners on Doctrine_Record and the postInsert hook. Cheers, Before Printing,

Re: [symfony-users] Re: strip_tags validator

2010-05-25 Thread Tom Haskins-Vaughan
::setDescription(strip_tags($value)); }    gabriel On May 24, 11:56 pm, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: Hi all, I need to call strip_tags() on a form field before I put it in my database, only allowing strong and em tags. I've done this by creating a custom validator (see below

Re: [symfony-users] Preventing users from seeing others information

2010-05-25 Thread Tom Haskins-Vaughan
Instead of using mysite.com/account/profile/5 I would use mysite.com/account/profile And get the user_id from the sessions: $this-profile = $this-GetUser()-getProfile(); On Mon, May 24, 2010 at 6:37 PM, Samuel Morhaim samuel.morh...@gmail.com wrote: If I have something such as

Re: [symfony-users] Re: strip_tags validator

2010-05-25 Thread Tom Haskins-Vaughan
probably doesn't work for the form since form data is loaded into the object by calling -fromArray() which does not necessarily call mutators as far as Doctrine is concerned (not sure what Propel does here). Johannes On May 25, 2:36 pm, Tom Haskins-Vaughan t...@templestreetmedia.com wrote

Re: [symfony-users] Preventing users from seeing others information

2010-05-25 Thread Tom Haskins-Vaughan
As Phil says: $profile = $this-getRoute()-getObject(); if ($this-getUser() != $profile-getUser()) { // return error 404 } On Tue, May 25, 2010 at 9:42 AM, Samuel Morhaim samuel.morh...@gmail.com wrote: Thanks for the replies. Slugs would work for the profile and certain areas and just

<    1   2   3   4   5   6   7   8   9   >