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

2010-09-29 Thread Tom Ptacnik
What is in this array? On 28 zář, 18:49, pantherse 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 the actual clea

[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 wrote: > Thank you both.  I do have one more question.  I created a page > listing all employees > symfony doctrine:generate-adm

[symfony-users] Re: difference of route_prefix on apps/app/config/routing.yml and apps/app/modules/module/config/generator.yml

2010-09-02 Thread Tom Ptacnik
Routing and generator are two separate things. Thats why you have to set it in both files. On 2 zář, 01:43, Jochen Daum wrote: > Hi, > > out of interest, why does a generator.yml driven module ignore the > route settings in config/route.yml and needs the settings defined in > apps/app/modules/m

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

2010-09-02 Thread Tom Ptacnik
Agree On 1 zář, 16:23, sam 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 interested in

[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 wrote: > Hi! > I have secured the application (application/config/security.yml) and a want > an unsecured module. Then I have the file > /application/unsecuredModule/config/security.yml c

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

[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 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 the admin g

[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 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 update (i.e. leave all v

[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 : my_website.com. On 16 srp, 00:33, Reo wrote: > Hi, > > I was wondering if it is possible to put some HTML tags in YAML files. > > Exemple: >   job: >     title: my job >     descrip

[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 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 selected when ther

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

[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 wrote: > I have my own opinion: > > I need to add new field "user"

[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 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 methods > > On Aug 11,

[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: 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 wrote: > I'm trying to embed my sfDoctrineGuardPlugin login form on an existing > page

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

2010-08-06 Thread Tom Ptacnik
s: > > http://pastebin.com/9jzcpNmq > > then in my generator i could add my extra context like: > >       list: >         [something] > >       extra: >         foo: bar >         asd: { test: "foo" } > > in the admin theme (or cache file) you ca

[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 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 method names for e

[symfony-users] Re: Problem with filters

2010-08-05 Thread Tom Ptacnik
on enligne, there are only families 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 wrote: > > > > > What do you want to this filter to do? And wha

[symfony-users] Re: Problem with filters

2010-08-03 Thread Tom Ptacnik
s->setWidgets(array( >  24       'nom'          => new sfWidgetFormFilterInput(), >  25       'image'        => new sfWidgetFormFilterInput(), >  26       'description'  => new sfWidgetFormFilterInput(), >  27       'deuxcolonnes'

[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 wrote: > Hello, > > I wanted to change the type of my filters auto-generate with admin- > generator, but when I did it, the fi

[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 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 > believe that if I can turn the

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

2010-07-31 Thread Tom Ptacnik
> >       Sluggable: > > >         unique: true > > >         fields:  [nombre_apellidos] > > >         canUpdate: true > > >         name: 'myslug' > > > > On Jul 27, 10:57 am,JavierGarcia  wrote: > > >> On Jul 20, 12:00 pm, Tom Ptacni

[symfony-users] Re: sfUser::setFlash doesn't work in Chrome?

2010-07-30 Thread Tom Ptacnik
flash works ok in my chrome browser (tested in classic admin generated backend where flash is used after the item is deleted in the list) On 29 čnc, 15:20, Travis wrote: > Yes. The cookie is set. And as you can see, the setAttribute and getAttribute > method work > > > > > cookies enabled? > > >

[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 wrote: > After making some changes on my code and debugging using die's and

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

2010-07-30 Thread Tom Ptacnik
ended"); > > sorry for my grammar, I dont speak well the English > > -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

[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 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 time I change

[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" 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} >     name:   {type:

[symfony-users] Re: Better way of setting default i18n messages for validators?

2010-07-28 Thread Tom Ptacnik
I think that just sfValidatorBase::setDefaultMessage( 'required', 'Required field' ); is enough and the __() helper will be used automaticly. On 27 čnc, 04:23, Gustavo Adrian wrote: > Hi, > > I've found a way to do this in the BaseForm class. I just set the default > message of each validator o

[symfony-users] Re: Concept Issue

2010-07-27 Thread Tom Ptacnik
o them (they would not be allowed to order > just 1 A5 flyer for example, and could not order 10,000 A2 posters. > > I hope I have explained a little better. > > On Jul 26, 8:35 am, Tom Ptacnik wrote: > > > > > Hi, > > > there are some questions which you have to

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

2010-07-27 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 wrote: > Thanks for info. > I tried something similar but it didn't work. > > In doUpdateObj

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

2010-07-27 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" 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 send it to security at symfon

[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 design&type? a) all posters have size A5 and A6 (no matter which design), all banners has size A6, A7 (no matter which design) b

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

2010-07-25 Thread Tom Ptacnik
so appreciate a svn tag > > > On Jul 23, 5:25 am, Tom Ptacnik wrote: > >> 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 extern

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

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

[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 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 specifying two > different d

[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. http://groups.google.com/group/symfony

[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 wrote: > in one of my backend modules (mod_A), I need to put a link to the edit > pag

[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 wrote: > Hi > > If I add a profile to a user with some information, also a language > for a user, how to

[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 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 constraint fails >

[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 wrote: > no idea? > > On Jul 17, 10:35 pm, Javier Garcia wrote: > > > > > Hi, > > > I have this model: > > > Usuario: > >    actAs: > >      Sluggable: > >        unique: true > >  

[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 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_stylesheet('xyz.css') ?> > > from an partial, they are not inclu

[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 wrote: > Hi all, > > I wrote the following piece of code in the generator.yml of a module: > > list: >   actions: >

[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 wrote: > sorry, there is in English-> > > I am trying to call return $ this-> renderComponent ('onlin

[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 wrote: > You have misunderstand me :) > > i need display form fields only for those users that have nee

[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 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) { > >   $oldValue = $this->g

[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 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 complete list p

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

2010-07-19 Thread Tom Ptacnik
I don't think that sfBasicSecurityFilter read files.. On 10 čnc, 23:44, "Julian Reyes Escrigas" 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 read the files. > > Anybo

[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 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 may not use > sy

[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 wrote: > Hello > > I was searching in Google about how to call stored procedures, I found > this post in this > group:http://groups.google.com/group/symfony-users/

[symfony-users] Re: How to use database for Configurations

2010-07-08 Thread Tom Ptacnik
Look there .. the last answer might help you http://groups.google.com/group/symfony-users/browse_thread/thread/18c80307d3455025 On 6 čnc, 08:18, Apul Gupta wrote: > Hi, > > I was using app.yml for configuration purpose but suddenly, I got a > requirement that configuration should be edited from a

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

2010-07-06 Thread Tom Ptacnik
e [propel]" How can I get that > > connection there? > > > On 2 jul, 12:29, Daniel Lohse wrote: > > > > I'd probably go with a plugin that handles dynamic and configurable > > > settings that live in a database, like csSettingsPlugin. :) > > > &g

[symfony-users] Re: Comment ajouter des attributs pour chaque checkbox d'un sfWidgetFormChoice ?

2010-07-06 Thread Tom Ptacnik
try to write your question in english... On 5 čnc, 09:24, François wrote: > Up. > > On Jul 2, 3:29 pm, François wrote: > > > > > Bonjour à tous, > > > Imaginons que dans mon cas j'ai un tableaux d'objets "$check", tous > > les objets ont une méthode "getValeur()" qui me rend leurs valeur, > > va

[symfony-users] Re: sfDoctrineGuardUser: Unable to stay signed in

2010-07-06 Thread Tom Ptacnik
Did you tried to run this app on a different server? .. then you will know if the problem is in the app or in your server. On 5 čnc, 04:31, ashton honnecke wrote: > This behavior (Inability to stay signed in) went away in four of five > apps when I altered the session_name.  However, it remains

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

[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 wrote: > Hi, > > I am using  "sfguardplugin" for everything related to credentials at > the backend(generated with the backend generator)

[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 wrote: > Hi, I've got multiple sites with duplicated backen

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

[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 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 it > works. > > than

[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 wrote: > Hi, > > why the get and set methods of the model classes are created "on the > air", instead of generate t

[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 wrote: > After running through the Jobeet Tuto

[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 $total)) ?> On 1 čnc, 15:04, Guill Lo wrote: > Hi! > > I've got a partial that I'm sharing over different modules to show a > photo. I have 2 different parameters in this partial that are the > user, and t

[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 wrote: > I want to use some configuration settings from the database in my > app.yml configuration

[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 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 Groups "symfony us

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

2010-07-02 Thread Tom Ptacnik
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 wrote: > > Try this > >http://www.symfony-project.org/api/1_4/sfAction#method_getcredential > > > On 30 čvn, 14:49, D

[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: Determine sfGuardPermission required for action, from within an action or filter

2010-06-30 Thread Tom Ptacnik
Try this http://www.symfony-project.org/api/1_4/sfAction#method_getcredential On 30 čvn, 14:49, Donald 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: >   credentials: view

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

2010-06-30 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 wrote: > Hi

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

2010-06-30 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: 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 wrote: > English > Hello everyone! > > I am migrating some projects from S

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

[symfony-users] Re: importing a symfony made website back into symfony to make changes??

2010-06-27 Thread Tom Ptacnik
I think as we don't know the details of your project.. we can't say what is the best solution... On 26 čvn, 18:46, "Martyn " wrote: > hello symfony users, > > my programmer made an excellent website using Symfony with MySQL appl. > due to a family occurance he is off the project- and I mean OFF.

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

2010-06-27 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=gst&q=multiple+databases#dc44e4d364bdc9b2 On 25 čvn, 21:30, stakovicz wrote: > Hi ! > > How can I switch database

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

2010-06-27 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 i

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

2010-06-27 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 wrote: > Please..Very urgent..I have created multiple image slide show but it > is becoming complex when trying to slide show multiple images wit

[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 wrote: > Hi, > > I have this mysql query : > > SELECT n1.*, n2.* FROM ElementNode n1 LEFT JOIN El

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

2010-06-25 Thread Tom Ptacnik
700 (PDT), Tom Ptacnik > 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, >

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

2010-06-24 Thread Tom Ptacnik
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. On 24 čvn, 18:19, Massimiliano Arione wrote: > On 24 Giu, 08:05, Tom Ptacni

[symfony-users] Re: Updating the database with embedded form values

2010-06-24 Thread Tom Ptacnik
Did you copy this code from your editor? If so .. it's only a typo ... Upate -> Update On 24 čvn, 06:39, bretth wrote: > Additionally to this; I have tried using the doUpdateObject() method; > I figure I can put the update code in there. However, the method isn't > getting called. > > In my /lib/

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

2010-06-24 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 wrote: > Hello! > > I got this error while added new value on standrd form generated by > default. > > execute :

[symfony-users] Re: I18n in form filter

2010-06-24 Thread Tom Ptacnik
How do you want to filter look like? Do you want to filter by actual culture of the user? Or by exact translation (culture)? Or do you want to show more translation fields at once ... for example title_en, title_fr, title_de ? On 23 čvn, 15:51, HAUSa wrote: > Is it possible to use fields from t

[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." wrote: > These are just example rou

[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 wrote: > Hi, > > for 1) > seehttp://www.symfony-project.org/jobeet/1_4/Doctrine/en/12#chapter_12_t... > > you can copy out o

[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: Unknown method SfGuardUser::checkPassword

2010-06-23 Thread Tom Ptacnik
I don't know what's wrong but you don't have to copy files from model/ doctrine/sfGuardPlugin into model/doctrine/, the callasses are loaded also from model/doctrine/sfGuardPlugin On 19 čvn, 19:21, Ricardo Jose Guzman Milanes wrote: > Hello, > > After installing sfDoctrineApplyPlugin and calling

[symfony-users] Re: Symfony "design" issue

2010-06-23 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 logg

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

2010-06-23 Thread Tom Ptacnik
Which type of database do you use? On 22 čvn, 15:27, Marxy 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, r.sprint_end AS >

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

2010-06-23 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 en into the DOM and then in the javascript read the value of the div by id? On 23 čvn, 14:57, Massimiliano Arione wrot

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

2010-06-22 Thread Tom Ptacnik
uteNew(sfWebRequest $request) > >   { > >         $fiche = new Fiche(); > >         $fiche->save(); > >         $artiste = new Artiste(); > >         $a = $fiche->getId(); > > >         $artiste->setIdFiche($a); > > >         $this->form = new Art

[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" wrote: > Hello, > I been trying all day to do mult

[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 wrote: > Hi there, > > i have a simple and basic quesion here about symfony : how can i set > values into a form field from the controller in

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

2010-06-22 Thread Tom Ptacnik
w Fiche(); >         $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

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

2010-06-21 Thread Tom Ptacnik
I think that the solution might be owerwriting the doSave method .. or some method where the saving of the object is done. You need to save the foreign object first - to obtain the id from the database, then save the main object. On 19 čvn, 12:24, titiyoyo wrote: > Hi there, > > i'm new to symfo

[symfony-users] Re: backend upload files with i18n

2010-06-20 Thread Tom Ptacnik
Try to look here http://trac.symfony-project.org/ticket/5842 - the issues is described and patch is added. On 17 čvn, 12:02, Jon Labrador wrote: > Hi, > > I am creating my first web with symfony. And i have a problem to > uploads differents files for all $culture of i18n > My class is: > ---

[symfony-users] Re: Advantages over foreign key

2010-06-20 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 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 plain php. d

[symfony-users] Re: Possible to write a table-less doctrine schema definition?

2010-06-16 Thread Tom Ptacnik
XFrom class in his project, his class will be used instead of the plugin one. So it's almost what you want. He has only to copy your XXForm class into his project and modify it. On 16 čvn, 16:59, Tom Ptacnik wrote: > Or you can define it in the schema, generate it, copy it, delete it >

[symfony-users] Re: Possible to write a table-less doctrine schema definition?

2010-06-16 Thread Tom Ptacnik
Or you can define it in the schema, generate it, copy it, delete it from the schema ;) On 15 čvn, 15:56, Daniel Lohse wrote: > AFAIK, there is no such possibility – you're going to have to craft them by > hand. :) > > Cheers, Daniel > > On 15.06.2010, at 14:15, Christian Schaefer wrote: > > > >

[symfony-users] Re: Loading fixtures data error

2010-06-16 Thread Tom Ptacnik
You have there Page: homepage Partial: header So you have to have somewhere in the fixtures homepage and header defined. Do you have it? On 14 čvn, 15:10, dex wrote: > Hello, I bumped into an error today when I was trying to load some > fixtures data. > I kind of know what the problem is, but

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

2010-06-16 Thread Tom Ptacnik
beneath the all key you need to use a category header, > otherwise symfony will make the values separately available as shown > above." > > On Jun 14, 6:26 pm, Tom Ptacnik wrote: > > > > > No, underscores are ok, even if I chage it to > > > all: > >  

  1   2   3   4   >