[symfony-users] Re: sfValidatorString returing text Array when used as form filter validator

2010-09-30 Thread Tom Ptacnik
What is in this array? On 28 zář, 18:49, pantherse panthe...@gmail.com wrote: What I want to do is replace the validator for a field to sfValidatorString instead of the sfValidatorPass in the base form filter class. However, when I do that the field's value becomes the text Array instead of

[symfony-users] Re: Is there an easy way to enable display the lookup values instead of IDs in indexSuccess.php in symfony 1.4.6?

2010-09-22 Thread Tom Ptacnik
For that create a partial, like guiguiboy sad and create a link here. Instead of just echo $issue-getEmp() do something like link_to() On 22 zář, 15:20, dmitrypol dmitry...@gmail.com wrote: Thank you both.  I do have one more question.  I created a page listing all employees symfony

[symfony-users] Re: motion : new mailling list for Synfony2

2010-09-02 Thread Tom Ptacnik
Agree On 1 zář, 16:23, sam zoulil...@gmail.com wrote: Hello, I follow this mailling list for a while, and I see more and more subject on Synfony2. I think that can be a good idea to split this one in 2 : synfony1 and synfony2 or at least allways use a tag like [sf2] in the subject. I am

[symfony-users] Re: Unsecure module into secure application

2010-08-29 Thread Tom Ptacnik
I think you can, because login page is unsecured action in the secured app... On 28 srp, 03:28, Alvaro Garcia maxpo...@gmail.com wrote: Hi! I have secured the application (application/config/security.yml) and a want an unsecured module. Then I have the file

[symfony-users] Re: sfFormExtraPlugin - jquery UI DatePicker - Safari 5

2010-08-24 Thread Tom Ptacnik
Try this http://garakkio.altervista.org/datepickerui/ I like it. On 16 srp, 21:42, Joe666 joe...@gmail.com wrote:  Hello guys, I installed the sfFormExtraPlugin as per the README file, then I downloaded jquery 1.4.2 and jquery UI 1.8.4, installed, included in the project, then I go to one of

[symfony-users] Re: disable form value remembering?

2010-08-24 Thread Tom Ptacnik
The filter value is saved to the session - the filter is saved even if you move to another page and go back. Also the value is showed on the form ... it's good to know which filter is set. How do you want to change it? ... only don't show the value on the form but let the filter value in the

[symfony-users] Re: created_at gets deleted on edit

2010-08-23 Thread Tom Ptacnik
Try to unset it in the form class (configure method) . . . . . unset($this['updated_at']); On 18 srp, 15:15, Christopher Schnell christopher.schn...@mda.ch wrote: A part of it, I can answer myself: the updated_at column is set to null if I press save in the Form and do not really make an

[symfony-users] Re: Yaml and html tags

2010-08-22 Thread Tom Ptacnik
xemple: job: title: my job description: | Cooker, i can find more information at : a href=a_website.commy_website.com/a. On 16 srp, 00:33, Reo rweil...@gmail.com wrote: Hi, I was wondering if it is possible to put some HTML tags in YAML files. Exemple:  

[symfony-users] Re: Permalink route

2010-08-15 Thread Tom Ptacnik
/browse/:permalink/* or /browse/* or something like that ;) On 15 srp, 00:05, Arnau Alcázar Lleopart ar...@alcalleop.net wrote: Hi everybody, I've got urls likehttp://example.com/browse/one/twoand I have creayed a route where url is /browse/:permalink The problem is this route is only

[symfony-users] Re: How i can implement this with sfGuard plugin

2010-08-14 Thread Tom Ptacnik
Maybe better would be to store the id of the user not the username. But the principle is right. And this code of creating the query move to the JobTable class .. create a method with userId parametter. On 12 srp, 21:16, RusAlex interpret...@gmail.com wrote: I have my own opinion: I need to

[symfony-users] Re: symfony form not merging with existing object data (1.4.7-DEV)

2010-08-14 Thread Tom Ptacnik
This behaviour is correct. It depends on the form you are using...I gess that this form is designed to set all attributes of the object. If you want to change only some values of the object, then you need to change the form. Or update just this few attributes of the object manualy and seve it.

[symfony-users] Re: sfGuardAuth causes everything on my homepage to disappear when I embed any code that corresponds with $sform.. any ideas why?

2010-08-11 Thread Tom Ptacnik
I think it can be done by component. Look into the sfGuard template and action .. you need to create the form class (action) then pass it into the component template and show it. On 8 srp, 00:31, Psychonetics mrajcampb...@gmail.com wrote: I'm trying to embed my sfDoctrineGuardPlugin login form

[symfony-users] Re: Embedding form filters

2010-08-11 Thread Tom Ptacnik
I don't think that you need embed form filter. Just add a widget for selecting a school into the person formFilter Something like: public function configure() { $this-widgetSchema['school_id'] = new sfWidgetFormDoctrineChoice(array( 'model' = $this-getRelatedModelName('School'),

[symfony-users] Re: which differences between Doctrine::getTable and Doctrine_Query::create

2010-08-11 Thread Tom Ptacnik
You can use Doctrine::getTable('RankDomain')- findOne or FindOneByXXX On 11 srp, 12:10, RusAlex interpret...@gmail.com wrote: First variant returns an object and you can use method. But second variant returns and array of objects and you must select object (ex.$rank_domain[0]) for using

[symfony-users] Re: a good IDE for Symfony

2010-08-06 Thread Tom Ptacnik
I'm using Eclipse too, and I'm happy with it. On 4 srp, 11:36, Gareth McCumskey gmccums...@gmail.com wrote: For me the biggest aspects of using an IDE like Eclipse is simply that, while it may be bloated and slow to load at times, that it actually speeds up my coding. Auto-completion of class

[symfony-users] Re: Customize admin generator to parse generator.yml with custom properties

2010-08-06 Thread Tom Ptacnik
could add my extra context like:       list:         [something]       extra:         foo: bar         asd: { test: foo } in the admin theme (or cache file) you can access your custom properties with $this-getExtraValue('foo'); Y On 20 Lug, 09:32, Tom Ptacnik

[symfony-users] Re: Problem with filters

2010-08-05 Thread Tom Ptacnik
with 0 on the column enligne. But when I chose this, there is not generated SQL query... So I don't know what to do. On 3 août, 16:35, Tom Ptacnik to...@tomor.cz wrote: What do you want to this filter to do? And what is does instead? ... look on the generated SQL query which is creaded

[symfony-users] Re: Problem with filters

2010-08-03 Thread Tom Ptacnik
What means doesn't work? How it looks before ... show BaseFormFilter class, or the schema of the object at least. Which version of Symfony? On 3 srp, 11:01, florian périn poulet.va...@gmail.com wrote: Hello, I wanted to change the type of my filters auto-generate with admin- generator, but

[symfony-users] Re: Problem with filters

2010-08-03 Thread Tom Ptacnik
('required' = false)),  39       'deuxcolonnes' = new sfValidatorPass(array('required' = false)),  40       'enligne'      = new sfValidatorPass(array('required' = false)),  41       'lienspe'      = new sfValidatorPass(array('required' = false)),  42     ));  43   } On 3 août, 12:26, Tom Ptacnik

[symfony-users] Re: How to turn off filters in admin generator?

2010-07-31 Thread Tom Ptacnik
generator: param: config: filter: class: false Works for me. On 30 čnc, 18:09, halfer google.com.20080213...@jondh.me.uk wrote: Hi all I've discovered a bug in the filters section of the admin generator (when run against Oracle anyway) on Symfony 1.3 and Propel 1.5. I

[symfony-users] Re: Problems with a select to change the language (cookies)

2010-07-30 Thread Tom Ptacnik
Why do you need to delete cookies before? On 28 čnc, 20:47, Javier Garcia tirengar...@gmail.com wrote:   Hi I have followed the steps below to add a select to change the language of my app. http://www.symfony-project.org/jobeet/1_4/Doctrine/en/19#chapter_19_l... It works OK for the first

[symfony-users] Re: how to use Flush wih symfony

2010-07-30 Thread Tom Ptacnik
-Mensaje original- De: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] En nombre de Tom Ptacnik Enviado el: miércoles, 28 de julio de 2010 1:13 Para: symfony users Asunto: [symfony-users] Re: how to use Flush wih symfony I don't understand what are you trying

[symfony-users] Re: Avoid blank embed form to be saved

2010-07-30 Thread Tom Ptacnik
I think that easy solution is to overwrite the save method of the object wich is on the embeded form. Just test if there are some values and if not, end the method. If yes, call parent::save() On 30 čnc, 01:51, J_Wesker j_chave...@hotmail.com wrote: After making some changes on my code and

[symfony-users] Re: how to use Flush wih symfony

2010-07-28 Thread Tom Ptacnik
I don't understand what are you trying to achieve.Try to explain again. On 25 čnc, 20:12, Julian Reyes Escrigas julian.reyes.escri...@gmail.com wrote: How to use flush with symfony in a long while for send information to user -- If you want to report a vulnerability issue on symfony, please

[symfony-users] Re: problem with $form-getObject()

2010-07-28 Thread Tom Ptacnik
Then you can try to set your form like in this http://melikedev.com/2009/12/09/symfony-w-doctrine-saving-many-to-many-mm-relationships/ article and see how Symfony does this. On 26 čnc, 22:51, Devang Modi dpm...@gmail.com wrote: Thanks for info. I tried something similar but it didn't work.

[symfony-users] Re: Concept Issue

2010-07-28 Thread Tom Ptacnik
, and could not order 10,000 A2 posters. I hope I have explained a little better. On Jul 26, 8:35 am, Tom Ptacnik to...@tomor.cz wrote: Hi, there are some questions which you have to answer if you want to design this app. 1) sizes are connected to the type or to the design

[symfony-users] Re: overriding delete method in a Many-to-Many relation

2010-07-28 Thread Tom Ptacnik
What about to overwrite the delete method? On 28 čnc, 09:59, pierre.use...@gmail.com pierre.use...@gmail.com wrote: Hi all, I've a problem with the delete method in my project. here is my schema : USER:   columns:     id:    {type: integer(7), primary: true, autoincrement: true}    

[symfony-users] Re: Concept Issue

2010-07-26 Thread Tom Ptacnik
Hi, there are some questions which you have to answer if you want to design this app. 1) sizes are connected to the type or to the design, or to the combinatioin of designtype? a) all posters have size A5 and A6 (no matter which design), all banners has size A6, A7 (no matter which design)

[symfony-users] Re: Multiple Doctrine Database Issues again

2010-07-23 Thread Tom Ptacnik
Maybe this is for developers list? On 20 čnc, 20:38, PhiKapJames phikapja...@gmail.com wrote: I had this issue back in November and it was fixed on the doctrine side.  I recently updated Symfony from 1.4.3 to the latest 1.4.7 and the issue has cropped back up again.  Even though I'm

[symfony-users] Re: no_script_name and problems with URI

2010-07-23 Thread Tom Ptacnik
If you set no_script_name to false then it shouldn't change you url from http://www.example.com/index.php/module/action to http://www.example.com/moduleName?productId=2 Try to set it to true again (or look on the page in the dev environment - with the frontend_dev.php) and look how the URL

[symfony-users] Re: upgrade sfDoctrineGuardPlugin from 4.0.1 to 4.0.2

2010-07-23 Thread Tom Ptacnik
I want to try a new version (5.0.0). Do you suggest to connect the trunk to my project (http://svn.symfony-project.com/plugins/ sfDoctrineGuardPlugin/trunk/) via svn external or rather instal it like a package? I'm afraid of to much changes in the trunk in the future... What about creating a tag

[symfony-users] Re: backend: forward to another module

2010-07-22 Thread Tom Ptacnik
I think it's because when you want to edit something, you must say what This edit action in mod_B don't know which object it should edit (you didn't send any id, or object) On 20 čnc, 16:10, Martin Henits martin.hen...@gmail.com wrote: in one of my backend modules (mod_A), I need to put a

[symfony-users] Re: Admin generator edit/delete action link error

2010-07-22 Thread Tom Ptacnik
One appliacation in your project can use index.php (probably frontend) the others must use another frontend controller which isn't automaticly executed. Solutions how to add /admin/ or /backend/ into your url are several. Try to look there, it might help you.

[symfony-users] Re: sfGuard default culture for a user

2010-07-21 Thread Tom Ptacnik
I would do that somewhere in the login process of the user. just call getUser()-setCulture($culture); where $culture is readed from the user profile. On 19 čnc, 20:16, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: Hi If I add a profile to a user with some information, also a language

[symfony-users] Re: Filter config

2010-07-20 Thread Tom Ptacnik
I don't think that sfBasicSecurityFilter read files.. On 10 čnc, 23:44, Julian Reyes Escrigas julian.reyes.escri...@gmail.com wrote: Hi I'm trying to change the security of my app from files security.yml to my DB with some more options but I don't get where the filter sfBasicSecurityFilter

[symfony-users] Re: Customize admin generator to parse generator.yml with custom properties

2010-07-20 Thread Tom Ptacnik
Found some stuff: http://fkling.wordpress.com/2009/09/09/custom-properties-in-symfonys-admin-generator-configuration/ http://www.symfony-project.org/gentle-introduction/1_4/en/14-Admin-Generator#chapter_14_summary http://gestadieu.blogspot.com/2009/08/sfadminthemejrollerplugin-symfony-admin.html

[symfony-users] Re: [admin generator]

2010-07-20 Thread Tom Ptacnik
one way is to remove the reset button from the layout On 13 čnc, 20:28, osinet osinet.c...@gmail.com wrote: I probe this example http://www.slideshare.net/jcleveley/working-with- the-admin-generator slide number 39 and 40 and runs but the problem is that the filter can be restored and see the

[symfony-users] Re: how to get changes in modell class pre update

2010-07-20 Thread Tom Ptacnik
look at the method $this-getModified(true/false); On 14 čnc, 12:43, axel at axel.zu...@gmail.com wrote: hello, I have a model with an integer attribute - invitationCount, in case of an model update I would need to know the old and new value. public function preUpdate($event) {  

[symfony-users] Re: Doctrine Admin Generator

2010-07-20 Thread Tom Ptacnik
If you haven't to much credentials (groups..), you can create one form for admin and the second for normal user, they show the form by the credential of the user. On 14 čnc, 23:49, galileo galileo...@gmail.com wrote: You have misunderstand me :) i need display form fields only for those users

[symfony-users] Re: I am trying to call return $ this- renderComponent ('onlineshop', 'homeShopsService', array ('service' = $ item [0])); from components.class.php

2010-07-20 Thread Tom Ptacnik
No you can't. renderComponent() method is only in sfAction, sfActions Look on the Inheritence http://www.symfony-project.org/api/1_4/sfAction#method_rendercomponent On 14 čnc, 22:21, juanes31516 carocobal...@gmail.com wrote: sorry, there is in English- I am trying to call return $ this-

[symfony-users] Re: actions in generator.yml

2010-07-20 Thread Tom Ptacnik
You can create this route and map it to your action my_foo_action: url: /my_module/foo/action param: { module: my_module, action: foo} On 17 čnc, 20:12, Martin Henits martin.hen...@gmail.com wrote: Hi all, I wrote the following piece of code in the generator.yml of a module:

[symfony-users] Re: include_js/css VS partials

2010-07-20 Thread Tom Ptacnik
Which version of Symfony do you use? On 17 čnc, 20:15, comb sa...@gmx.net wrote: Hi! :) I found much on the web regarding the topic, but no solution! :( Normally one would include the css and js in the head. But if I call ?php use_javascript('xyz.js');     php use_stylesheet('xyz.css') ?

[symfony-users] Re: Sluggable behaviour: field called slug is not created

2010-07-20 Thread Tom Ptacnik
Maybe colision with inheritance? Try to move inheritance before actAs (only guess) On 19 čnc, 21:16, Javier Garcia tirengar...@gmail.com wrote: no idea? On Jul 17, 10:35 pm, Javier Garcia tirengar...@gmail.com wrote: Hi, I have this model: Usuario:    actAs:      Sluggable:    

[symfony-users] Re: SQLSTATE[23000]: Integrity constraint violation

2010-07-20 Thread Tom Ptacnik
When does this error occurs? On 19 čnc, 11:24, François SEDE francois.s...@gmail.com wrote: HI all, I have this error : 500 | Internal Server Error | Doctrine_Connection_Mysql_Exception SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key

[symfony-users] Re: Calling stored procedures with SF and Doctrine

2010-07-19 Thread Tom Ptacnik
You can do this without stored procedure in the preInsert() method of the model class. On 7 čnc, 18:38, Ricardo Jose Guzman Milanes guzman.ricardoj...@gmail.com wrote: Hello I was searching in Google about how to call stored procedures, I found this post in this

[symfony-users] Re: Symfony2 or CakePHP ?

2010-07-19 Thread Tom Ptacnik
I wouldn't recomend Symfony2 for a real project till it's finished. On 9 čnc, 16:06, Ekinox ekinox1...@gmail.com wrote: Hello, Will Symfony2 's interface evolve just a little, or will it be rethought before the final release ? So I will know if I should use it for a big project. In fact, I

[symfony-users] Re: check cookies enabled?

2010-07-05 Thread Tom Ptacnik
Just set a cookie and try to read it... http://snippets.symfony-project.org/snippet/179 On 4 čnc, 11:45, comb sa...@gmx.net wrote: Hi! =) What's the proper way to check if a user has cookies enabled with symfony 1.4? Best greets comb -- If you want to report a vulnerability issue on

[symfony-users] Re: sfguardplugin i18n login page

2010-07-04 Thread Tom Ptacnik
Maybe your action for changing language is secured? ... then it won't be executed and it will be redirected to login page again. On 2 čnc, 23:03, fRAnKEnSTEin shirkav...@gmail.com wrote: Hi, I am using  sfguardplugin for everything related to credentials at the backend(generated with the

[symfony-users] Re: Doctrine admin generator and parameters to partial

2010-07-03 Thread Tom Ptacnik
http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chapter_07_sub_partials ?php include_partial('mypartial', array('mytotal' = $total)) ? On 1 čnc, 15:04, Guill Lo guill.b...@gmail.com wrote: Hi! I've got a partial that I'm sharing over different modules to show a photo. I

[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] Re: Custom filter for admin generated sfGuardUser module

2010-06-30 Thread Tom Ptacnik
This is how i create filter for joined table.. class sfDtProduktFormFilter extends BasesfDtProduktFormFilter { public function configure() { $this-widgetSchema['title'] = new sfWidgetFormFilterInput(); $this-validatorSchema['title'] = new sfValidatorPass(); } public function

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

[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
. -Ursprüngliche Nachricht- Von: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] Im Auftrag von Tom Ptacnik Gesendet: Dienstag, 8. Juni 2010 08:54 An: symfony users Betreff: [symfony-users] Managing i18n content for frontend in the backend Hi, I want to tell

[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

  1   2   3   4   >