[symfony-users] Re: OO conceptual advice

2010-03-30 Thread Richtermeister
Hey Tom, I wrote the ecommerce part of www.skinmedica.com, which uses a quite complex promotions setup and took some iterations to get it right. I'd be happy to help. Our cart works similar to what Antoine said, where the shopping cart is distinct from the final order, and mostly responsible for

[symfony-users] Re: After editing the data of a member logged, loggingin is not possible

2010-03-30 Thread Tom Ptacnik
Ok, then there are some more steps you have to do to make it work. Just creating the module based on the database isn't enough. Look into the PluginsfGuardUser and other classes in this plugin. There are some methods you have to copy into your generated class (classes), or maybe you can inherit

[symfony-users] Re: Adding action, object_actions - action does not exist ?

2010-03-30 Thread Tom Ptacnik
I think that the problem is in routing because the error: Action general/action does not exist. ... it's looking into the module general instead of your own module. On 26 bře, 11:04, Rs232 n.jo...@gmail.com wrote: hello, here I use the admin generator, I would like to add an action showInfos on

[symfony-users] Re: Trying to translate sfDoctrineGuardPlugin

2010-03-30 Thread Tom Ptacnik
Use the /apps/APPNAME/i18n folder, use the sf_guard.es_ES.xml and in the settings.yml: all: .settings: i18n: true default_culture:es_ES On 29 bře, 15:42, Javier Garcia tirengar...@gmail.com wrote: On 03/29/2010 03:05 PM, Massimiliano Arione wrote: Just use

Re: [symfony-users] Re: sfWidgetFormInputHidden

2010-03-30 Thread Gareth McCumskey
For one you shouldn't define your custom code withing the Base classes as far as I know. You should instead create your own classes that extend that base class. Maybe Doctrine is different that way as I have not used Doctrine at all, but I don't think I am wrong. On Tue, Mar 30, 2010 at 12:00 AM,

Re: [symfony-users] Re: question about cache

2010-03-30 Thread Michał Piotrowski
2010/3/30 Antoine S. antoine.spodobal...@gmail.com: Hi, First you don't really need the doc. The most important is : you can have a cache.yml file at different level and refine for any module, action, partial. Second, the contextual option is very important. If it's true, it will parse the

[symfony-users] Re: Custom Under Maintenance page

2010-03-30 Thread wueb
Do you redirect the default in routing.yml to the module you created? On 29 Mar, 22:51, ruigoncalves skcra...@gmail.com wrote: Hi there! I'm trying to add a custom page to my web application for the times I'm performing maintenance. I'm trying to test the referred page on my development

[symfony-users] Cross app / system wide i18n files

2010-03-30 Thread Benoit
Hello, I had a translated project compouned by 2 apps : backend and frontend. I use i18n even for one language projects, it avoid me redefining sames labels in all backend generator.yml files and it allows further evolution to internationalization. Anyway, my problem is in these apps, certains

Re: [symfony-users] Re: question about cache

2010-03-30 Thread Alexandru-Emil Lupu
?php include_partial('user/my_partial', array( 'user' = $user, 'sf_cache_key' = $user-getId() ) ? http://www.symfony-project.org/book/1_2/12-Caching Alecs 2010/3/30 Michał Piotrowski mkkp...@gmail.com: 2010/3/30 Antoine S. antoine.spodobal...@gmail.com: Hi, First you don't

Re: [symfony-users] Re: Custom Under Maintenance page

2010-03-30 Thread Alexandru-Emil Lupu
http://www.symfony-check.org/ On Tue, Mar 30, 2010 at 11:42 AM, wueb webmaster@gmail.com wrote: Do you redirect the default in routing.yml to the module you created? On 29 Mar, 22:51, ruigoncalves skcra...@gmail.com wrote: Hi there! I'm trying to add a custom page to my web

Re: [symfony-users] Custom Under Maintenance page

2010-03-30 Thread Michał Piotrowski
2010/3/29 ruigoncalves skcra...@gmail.com: Hi there! I'm trying to add a custom page to my web application for the times I'm performing maintenance. I'm trying to test the referred page on my development environment but always appear the symfony page. I had already created a module with a

Re: [symfony-users] Custom Under Maintenance page

2010-03-30 Thread Michał Piotrowski
W dniu 30 marca 2010 11:00 użytkownik Michał Piotrowski mkkp...@gmail.com napisał: 2010/3/29 ruigoncalves skcra...@gmail.com: Hi there! I'm trying to add a custom page to my web application for the times I'm performing maintenance. I'm trying to test the referred page on my development

[symfony-users] demande_aide

2010-03-30 Thread safa boubekri
bonjour svp j'ai installer le plugin sfGuardDoctrine ça marche mais lors de création du module sfGuardAuth il affiche Empty module and/or action after parsing the URL /sfGuardAuth/ (/). vu que j'ai suivi les etapes du http://www.symfony-project.org/plugins/sfDoctrineGuardPlugin vraiment

[symfony-users] problème/sfGuardDoctrine

2010-03-30 Thread safa boubekri
bonjour svp j'ai installer le plugin sfGuardDoctrine ça marche mais lors de création du module sfGuardAuth il afficheEmpty module and/or action after parsing the URL /sfGuardAuth/ (/). vu que j'ai suivi les etapes du http://www.symfony-project.org/plugins/sfDoctrineGuardPlugin vraiment

Re: [symfony-users] demande_aide

2010-03-30 Thread Alexandru-Emil Lupu
english please On Tue, Mar 30, 2010 at 12:47 PM, safa boubekri boubekri.s...@gmail.com wrote:   bonjour svp  j'ai installer le plugin sfGuardDoctrine ça marche mais lors de création du module   sfGuardAuth  il  affiche Empty module and/or action after parsing the URL /sfGuardAuth/ (/).

[symfony-users] Re: Frontend // pager or filter display issue

2010-03-30 Thread ziclo
I simply copied the actions.php file found into the cache folder (for backend) for my frontend module. Then, always from the cache/backend folder i reproduced the same code used into the templates, copied some classes, etc. And it works almost well. Currently i have the same error csrf token:

Re: [symfony-users] Re: OO conceptual advice

2010-03-30 Thread Tom Haskins-Vaughan
Thanks, guys! That's a great help. I will most probably take you up on your offer of help! :) In the meantime, I have a couple of follow on questions: 1. What do you see the benefits of having a separate cart and order objects? 2. The Promotion classes were the logic takes place, are they also

[symfony-users] Why i can not retrieve a constant from app.yml ?

2010-03-30 Thread Javier Garcia
Hi, this is my frontend/config/app.yml all: sf_doctrineguard_plugin: app_sf_guard_plugin_signin_form:sfGuardFormSigninByEmail and i have this code in plugins/sfDoctrineGuardPlugin/modules/sfGuardAuth/lib/BasesfGuardAuthActions.class.php class BasesfGuardAuthActions extends

[symfony-users] Re: Invoice Model

2010-03-30 Thread Massimiliano Arione
You don't need to check. The getObject() method returns null if no object associated, and this is fine with form instance. Just avoid to echo object's id in the form's configure why are you doing this??? cheers Massimiliano On 30 Mar, 01:07, Veríssimo jveriss...@gmail.com wrote: I have

Re: [symfony-users] Why i can not retrieve a constant from app.yml ?

2010-03-30 Thread Benoit Montuelle
Hi, Configuration files use an arborescent model, Say you have a app.yml like this all: sf_doctrineguard_plugin: form:sfGuardFormSigninByEmail You should be able to retrieve the value using $class = sfConfig::get('app_sf_doctrineguard_plugin_form'); All you have to do is

Re: [symfony-users] Why i can not retrieve a constant from app.yml ?

2010-03-30 Thread Jose Antonio Pio Gil
Try this: all: sf_doctrineguard_plugin: app_sf_guard_plugin_signin_form: sfGuardFormSigninByEmail $class = sfConfig::get('app_sf_doctrineguard_plugin_app_sf_guard_plugin_signin_form', 'sfGuardFormSignin'); or change your app.yml to: all: sf_guard_plugin: signin_form:

Re: [symfony-users] Why i can not retrieve a constant from app.yml ?

2010-03-30 Thread Javier Garcia
Works, thanks both! On 03/30/2010 04:02 PM, Jose Antonio Pio Gil wrote: Try this: all: sf_doctrineguard_plugin: app_sf_guard_plugin_signin_form: sfGuardFormSigninByEmail $class = sfConfig::get('app_sf_doctrineguard_plugin_app_sf_guard_plugin_signin_form', 'sfGuardFormSignin'); or

[symfony-users] return redirect() breaks the code ?

2010-03-30 Thread NOOVEO - Christophe Brun
I want to catch some exceptions in my actions and to display nice and informative messages for my users. class utilisateursActions extends autoUtilisateursActions { public function executeDelete(sfWebRequest $request) { try { // do stuff...

Re: [symfony-users] return redirect() breaks the code ?

2010-03-30 Thread Gábor Fási
Calling redirect() throws an sfStopException [1] to stop the execution, as it is not needed anymore after you have redirected. http://trac.symfony-project.org/browser/branches/1.4/lib/action/sfAction.class.php#L204 On Tue, Mar 30, 2010 at 17:14, NOOVEO - Christophe Brun c.b...@nooveo.fr wrote:

Re: [symfony-users] return redirect() breaks the code ?

2010-03-30 Thread Rafael Barbosa
The very last thing the redirect() method does is throw a sfStopException that's why it goes all the way through try AND catch. On Tue, Mar 30, 2010 at 12:14 PM, NOOVEO - Christophe Brun c.b...@nooveo.fr wrote: I want to catch some exceptions in my actions and to display nice and informative

[symfony-users] What about the Remember me widget? What it serves for? Is useful?

2010-03-30 Thread Javier Garcia
Hi, the signin form of sfDoctrineGuardPlugin shows the widget Remember me. I suppose it serves for the web browser 'remember' the password, but now i think it is not very used so i should remove it.. Am i right? Javi -- If you want to report a vulnerability issue on symfony, please send it

[symfony-users] Swift Mailer Configuration

2010-03-30 Thread Jonathan Franks
I'm a bit confused. I altered my factories.yml to look like this... all: mailer: param: transport: param: host: smtp.gmail.com port: 465 encryption: ssl username: username password: password But, when I try to

Re: [symfony-users] What about the Remember me widget? What it serves for? Is useful?

2010-03-30 Thread Gábor Fási
It is not the browser's remember password feature. If checked, the plugin will set a cookie for a longer period, that kinda acts like a long-term sessionid cookie. It means the user will not need to log in, even after the browser is closed and the session cookie is deleted. On Tue, Mar 30, 2010

Re: [symfony-users] What about the Remember me widget? What it serves for? Is useful?

2010-03-30 Thread Daniel Lohse
No, it sets a cookie with a configurable lifetime (standard is 14 days) and automatically logs the user in to your app (only if he didn't log out). It's actually a pretty good example for a symfony filter (not filter form, mind you :)). And no, the password is not saved anywhere in this

Re: [symfony-users] What about the Remember me widget? What it serves for? Is useful?

2010-03-30 Thread Daniel Lohse
Ah, you beat me to it! :) Sent from my iPhone On Mar 30, 2010, at 5:42 PM, Gábor Fási maerl...@gmail.com wrote: It is not the browser's remember password feature. If checked, the plugin will set a cookie for a longer period, that kinda acts like a long-term sessionid cookie. It means the user

Re: [symfony-users] how to call stored procedure

2010-03-30 Thread Felipe Gutierrez
I have the same questions about postgres and symfony (or querying a view in postgres 8.2.4 using symfony 1.4.1) , If I see something useful I let you now. rey_b...@yahoo.com 2010/3/26 birdmilk birdm...@ukr.net Hello, i'd like to ask: Does anybody knows how to call stored procedures via

[symfony-users] Unable to retrieve data from an additional database table through a LEFT JOIN

2010-03-30 Thread El Duderino
I have been expanding on the Jobeet tutorial by adding a JobApplication table that includes the JobeetJob id as job_id each time after each successful application. All seems to be going well in the backend app in the application module that by default lists all the data for each row but I get

[symfony-users] $UpperCamelProperty generated in jobeet action class. is this better?

2010-03-30 Thread sanemat
hi. i have question about name rule. i try to learn symfony, but i confuse below. action class, executeIndex method, '$this-jobeet_jobs' at jobeet sample code (underscore_style) '$this-JobeetJobs' at generated code (UpperCamelCase) symfony1.3 propel UpperCamelCase parameter is better symfony

[symfony-users] issues in uninstall of sfGuardPlugin

2010-03-30 Thread gopi
Hi.. I install symfony with the default doctrine ORM enabled (instead of propel) I installed sfGuardPlugin using ./symfony plugin:install sfGuardPlugin php symfony doctrine:build --all --no-confirmation This gave an error Fatal error: Class 'sfPropelBaseTask' not found in .XXX

Re: [symfony-users] issues in uninstall of sfGuardPlugin

2010-03-30 Thread Michał Piotrowski
2010/3/30 gopi mgo...@gmail.com: Hi.. I install symfony with the default doctrine ORM enabled (instead of propel) I installed sfGuardPlugin using ./symfony plugin:install sfGuardPlugin php symfony doctrine:build --all --no-confirmation This gave an error Fatal error: Class

[symfony-users] propel relation m:n

2010-03-30 Thread Julian Reyes
Hi i have a problem with this type or relations. in the jobeet tutorial explain the ORM make it relations many to many automaticly buts don't works. only saved student and guardian but no student_guardian example schema: student: ~ guardian: ~ studiant_guardian: ~ ok. i need

[symfony-users] Re: issues in uninstall of sfGuardPlugin

2010-03-30 Thread gopi
Following steps solved the issue + delete the task folder from the plugin [this made sure that the file using sfPropelBaseTask is not in the system] + then try ./symfony plugin:uninstall sfGuardPlugin thx gopi We just chose symfony( after evaluating django, cake, zend and RoR) and getting

[symfony-users] Re: issues in uninstall of sfGuardPlugin

2010-03-30 Thread gopi
Following steps solved the issue + delete the task folder from the plugin [this made sure that the file using sfPropelBaseTask is not in the system] + then try ./symfony plugin:uninstall sfGuardPlugin thx gopi We just chose symfony( after evaluating django, cake, zend and RoR) and getting

[symfony-users] Filter Build Error

2010-03-30 Thread despuestambien
Hello, After installing plugin sfDoctrineGuardPlugin, it was necessary to do a new doctrine:build and this error came up. I searched for it in google, but couldn't find anything. Has someone any idea? The same happens when we do a doctrine:build -- all I looked for the file

[symfony-users] Re: sfWidgetFormInputHidden

2010-03-30 Thread Veríssimo
You are correct, that code from the base class was automatic generated by symphony. I haven't added any code yet to the extended class. Perhaps i must overload the base class with other Widgets and Validators. I have been reading the Widgets and Validators API, but there isn't must information

[symfony-users] Re: Invoice Model

2010-03-30 Thread Veríssimo
The echo was just a debug line, but I should only use the embed form only if the $this-getObject() != null. Because when it is null the embed form(Invoiceline) is saved with the variable invoiceid = null. thank you. On Mar 30, 2:20 pm, Massimiliano Arione garak...@gmail.com wrote: You don't

[symfony-users] Re: OO conceptual advice

2010-03-30 Thread Antoine S.
Hi, Cool Daniel, I am happy that you confirm this choice. For multi promotion, the weight is a good idea. I was thinking of a config file, to say if a promotion are combinable with the other (matrix). But in fact a matrix with weight would be perfect.. 1. First you need to store the cart in the

[symfony-users] embeding form by ajax

2010-03-30 Thread Belgacem TLILI
i'm searching for an exemple of how to embed form in a main form using ajax i have an idea about but i can't find an exemple to do this plz 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

[symfony-users] Re: OO conceptual advice

2010-03-30 Thread Richtermeister
Hey Tom, any time. The reason to keep orders and the cart separate is an issue of separation of concerns, where we're trying to avoid having classes do too many things (for all the obvious reasons of maintainability, easier unit testing and future flexibility). In our system orders are

[symfony-users] Re: OO conceptual advice

2010-03-30 Thread Richtermeister
Hey Antoine, yeah, the weight is helpful, because it allows you to quickly declare certain promotions king.. for example, our subtotal promotion has a weight of 10, where other promotions range around 1-5 so far, so that it always gets applied last. As promotions get more similar, the weight

Re: [symfony-users] Re: OO conceptual advice

2010-03-30 Thread Tom Haskins-Vaughan
On Tue, Mar 30, 2010 at 8:10 PM, Richtermeister nex...@gmail.com wrote: Hey Tom, any time. The reason to keep orders and the cart separate is an issue of separation of concerns, where we're trying to avoid having classes do too many things (for all the obvious reasons of maintainability,