[symfony-users] Re: Loading a new class during program execution

2009-03-20 Thread Gareth McCumskey
I know this response is a bit late but thought you might still find this handy: http://www.symfony-project.org/api/1_1/sfAutoload#method_reloadclasses Gareth On Tue, Mar 17, 2009 at 11:47 PM, isleshocky77 sost...@sowebdesigns.comwrote: Is there a way to reload the autoloaded classes?

[symfony-users] Re: Few simple questions about symfony 1.0

2009-03-20 Thread torso
I tried to dump data, but I get erros about many to one reference. It's sql error: invalid result set tablename_id, in my schema.yml it is Tabelname_id not lowercase tablename_id. Is it that why I get error? or what it's? On 17 maalis, 14:39, Ghizlane Zinbi ghizlane.zi...@gmail.com wrote: Hi,

[symfony-users] Re: Few simple questions about symfony 1.0

2009-03-20 Thread Gareth McCumskey
http://www.symfony-project.org/book/1_0/08-Inside-the-Model-Layer On Fri, Mar 20, 2009 at 9:16 AM, torso petteri.torsso...@gmail.com wrote: I tried to dump data, but I get erros about many to one reference. It's sql error: invalid result set tablename_id, in my schema.yml it is Tabelname_id

[symfony-users] how can i check version of doctrine ?

2009-03-20 Thread dziobacz
how can i check version of doctrine which I am using in symfony? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe

[symfony-users] Re: About admin generator again, set filters dynamically?

2009-03-20 Thread Alan Bem
:( I'm using 1.2 and dunno backward compatibility issues with previous versions. Cheers, Alan On Thu, Mar 19, 2009 at 9:19 PM, Frank He hexuf...@gmail.com wrote: maybe I am using symfony propel-init-admin users Users, this method is still for 1.0, that is why I can not find the file you

[symfony-users] Re: admin generator and i18n

2009-03-20 Thread Ghizlane Zinbi
Hi, I m using 1.0 symfony version, but i cant display $nationalite-getLibelle(). Why? 2009/3/19 Joan Teixidó eliog...@gmail.com which version are you using?? if it's 1.0, the generator can't automaticly do things with i18n tables (but is easy to add the behavior). Joan 2009/3/19 Ghizlane

[symfony-users] Re: Buffer sizes for a typical Symfony Linux server

2009-03-20 Thread Lee Bolding
You're better off finding an Apache mailing list to ask these kind of questions. Or even a specific SysAdmin / LAMP one. Most people here are developers, not SysAdmins ;) On 20 Mar 2009, at 04:30, Sumedh wrote: No one... :( sob sob... :) Sumedh wrote: Hi All, We are upgrading our

[symfony-users] Re: disable project but allow access based on IP address

2009-03-20 Thread Sid Bachtiar
Why not just use .htaccess to limit access to the website? On Fri, Mar 20, 2009 at 10:32 PM, CiPheR an...@stepuptravel.org wrote: Is there a way to disable project but allow only specific IPs to use the site? This is very useful for performing post-install validation so that testers can

[symfony-users] disable project but allow access based on IP address

2009-03-20 Thread CiPheR
Is there a way to disable project but allow only specific IPs to use the site? This is very useful for performing post-install validation so that testers can validate the new release without necessarily opening the site up to the public. --~--~-~--~~~---~--~~ You

[symfony-users] Custom Query Objects with Propel 1.3

2009-03-20 Thread Joao
Hello symfonians, Im trying to get objects from a custom query with Propel 1.3 , symfony 1.2. The snippet: http://snippets.symfony-project.org/snippets/tagged/custom/order_by/date doesnt work with Propel 1.3 and PDO Any tips ? Thanks Joao --~--~-~--~~~---~--~~

[symfony-users] Admin generator : Use different Peer method according to the credential of the connected user

2009-03-20 Thread Olivier Revollat
I would like to know if it's possible to make an admin generator based module to use a different SQL request for the 'list' action depending on the credential of the connected user ...In practice, I have two credential admin and operator and I show a lisitng of orders : I would like that the

[symfony-users] Re: disable project but allow access based on IP address

2009-03-20 Thread Lee Bolding
Why not take a look at the IP exclusion clause in the dev controller and modify this accordingly? Make a backup of your existing index.php, then copy the dev controller to index.php and add your exclusions. Or, as Sid said - use .htaccess Or iptables. Or a firewall. Many ways to skin

[symfony-users] Re: disable project but allow access based on IP address

2009-03-20 Thread CiPheR
Thanks for the suggestions. IP tables or firewall is not really appropriate since I still want users to see the unavailable page, not completely block them. .htaccess is the easiest for one off manipulation, though it would be nice to have the feature self-contained in the framework and not have

[symfony-users] Re: Admin generator : Use different Peer method according to the credential of the connected user

2009-03-20 Thread Tomasz Ignatiuk
You can ovverride buildCriteria() method in actions. Check there credentials and add Criteria to it --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to

[symfony-users] Re: Admin generator : Use different Peer method according to the credential of the connected user

2009-03-20 Thread Alan Bem
Use *your_module*GeneratorConfiguration.class.php. Its PHP based generator configuration. U can specify peer there without touching actions. Cheers, Alan On Fri, Mar 20, 2009 at 1:07 PM, Tomasz Ignatiuk tomek.ignat...@gmail.comwrote: You can ovverride buildCriteria() method in actions. Check

[symfony-users] Re: disable project but allow access based on IP address

2009-03-20 Thread Alan Bem
I u want to do that highly congiurable (create module maybe with IP table?) I would use execution filter - create your own or modify existing security filtter. Cheers, Alan On Fri, Mar 20, 2009 at 12:40 PM, CiPheR an...@stepuptravel.org wrote: Thanks for the suggestions. IP tables or firewall

[symfony-users] Re: disable project but allow access based on IP address

2009-03-20 Thread Sid Bachtiar
Could be made a plugin ;-) On Sat, Mar 21, 2009 at 2:02 AM, Alan Bem alan@gmail.com wrote: I u want to do that highly congiurable (create module maybe with IP table?) I would use execution filter - create your own or modify existing security filtter. Cheers, Alan On Fri, Mar 20, 2009

[symfony-users] Re: a blank white screen

2009-03-20 Thread saad
Hi, I got the exact same problem. I tried to look at the code, but without any success. Did you find a solution? Thanks, Saad On Feb 28, 8:26 pm, Brian Racer bra...@gmail.com wrote: There is sfErrorLogger http://www.symfony-project.org/plugins/sfErrorLoggerPlugin and sfDoctrineErrorLogger

[symfony-users] Re: a blank white screen

2009-03-20 Thread Lee Bolding
Is doesn't seem silly to anybody else that an error handler that relies on a DB connection is itself, yet another single point of failure? If you've experienced a fatal error, or even a badly handled non-fatal error, I can't see this is going to help you much. Heh, if the error is

[symfony-users] Re: Admin generator : Use different Peer method according to the credential of the connected user

2009-03-20 Thread Olivier Revollat
Thanks for your answers :)I also see that you can put your peer method directly in the generator.yml file like this : config: list: peer_method: myOwnPeerMethod I work, but I think their is some pb with filter now ... 2009/3/20 Alan Bem alan@gmail.com Use

[symfony-users] Re: disable project but allow access based on IP address

2009-03-20 Thread Alan Bem
Yep, it could be :) On Fri, Mar 20, 2009 at 2:05 PM, Sid Bachtiar sid.bacht...@gmail.comwrote: Could be made a plugin ;-) On Sat, Mar 21, 2009 at 2:02 AM, Alan Bem alan@gmail.com wrote: I u want to do that highly congiurable (create module maybe with IP table?) I would use execution

[symfony-users] Re: sfFormExtraPlugin sfWidgetFormJQueryDate in IE always fatally failed

2009-03-20 Thread Paolo Mainardi
On Fri, Mar 20, 2009 at 3:15 PM, xhe hexuf...@gmail.com wrote: This is how I used it: step: create a form by this configue public function configure(){ $this-setWidgets( array( 'reportedMember' = new sfWidgetFormInput(), 'reportingMember' = new

[symfony-users] Re: sfFormExtraPlugin sfWidgetFormJQueryDate in IE always fatally failed

2009-03-20 Thread Frank He
I see. The jquery I used is jquery-1.3.min.js, but if i use current stable jquery-ui, 1.7.1, then the IE browser is broken, i changed to legacy one with version of 1.5.3, then IE is fine. Thanks man for your advice. Frank On Fri, Mar 20, 2009 at 10:17 AM, Paolo Mainardi

[symfony-users] Re: Loading a new class during program execution

2009-03-20 Thread isleshocky77
Yeah. I had found that yesterday I guess I should've posted a reply in case anyone had the same problem. My problem was that I was looking through the sfCoreAutoad class instead the sfAutoload class. But thanks again. -- Stephen Ostrow sost...@sowebdesigns.com On Mar 20, 3:06 am, Gareth

[symfony-users] strange thing: $this-getUser()-getGuardUser()-getId() before query

2009-03-20 Thread dziobacz
I have in file action.class.php - this site is only for log in persons: $id = $this-getUser()-getGuardUser()-getId(); $this-friends = Doctrine_Query::create() -select('s1.*, s2.username as username') -from('SfGuardUserProfile s1') -innerJoin('s1.SfGuardUser

[symfony-users] Re: Loading a new class during program execution

2009-03-20 Thread Gareth McCumskey
I thought you might have as well but figured if an answer was posted others might find it useful as well :) On Fri, Mar 20, 2009 at 5:22 PM, isleshocky77 sost...@sowebdesigns.comwrote: Yeah. I had found that yesterday I guess I should've posted a reply in case anyone had the same problem. My

[symfony-users] sfPropelUniqueValidator insn't working?

2009-03-20 Thread Tomasz Ignatiuk
Hi I one of my modules I use primary key as a varchar, called logo. So the default validator which is created by Propel is: sfValidatorPropelChoice(array('model' = 'Partner', 'column' = 'logo', 'required' = false)) but while validating it throws error that it is invalid. So in configure I

[symfony-users] mysql connection problems on ovh

2009-03-20 Thread ckemmler
I'm on a plan90 @ ovh I get the following message: Can't connect to local MySQL server through socket '/var/run/mysqld/ mysqld.sock' (2) when trying to propel:build-all dev: propel: param: classname: DebugPDO test: propel: param: classname: DebugPDO all: propel:

[symfony-users] Re: mysql connection problems on ovh

2009-03-20 Thread Gregoire Laporte
Can you connect on your db by www.ovh.com/phpmyadmin ??? Date: Fri, 20 Mar 2009 12:32:33 -0700 Subject: [symfony-users] mysql connection problems on ovh From: ckemm...@gmail.com To: symfony-users@googlegroups.com CC: damien.liege...@gmail.com I'm on a plan90 @ ovh I get the

[symfony-users] Re: mysql connection problems on ovh

2009-03-20 Thread ckemmler
well that one particular page doesn't work, but I can connect to this one: http://90plan.ovh.net/phpMyadmin/ On Mar 20, 12:47 pm, Gregoire Laporte saturn1...@hotmail.com wrote: Can you connect on your db bywww.ovh.com/phpmyadmin??? Date: Fri, 20 Mar 2009 12:32:33 -0700 Subject:

[symfony-users] Re: mysql connection problems on ovh

2009-03-20 Thread Gregoire Laporte
And on localhost , with user : root , it works? Date: Fri, 20 Mar 2009 12:49:20 -0700 Subject: [symfony-users] Re: mysql connection problems on ovh From: ckemm...@gmail.com To: symfony-users@googlegroups.com well that one particular page doesn't work, but I can connect to this one:

[symfony-users] Re: mysql connection problems on ovh

2009-03-20 Thread ckemmler
What do you mean? Of course it doesn't run with user root. I'm using a federated plan, so I have a user configured with limited rights to the db. And the db doens't run on localhost, but on the server I specified, namely mysql5-52.90 On Mar 20, 12:53 pm, Gregoire Laporte saturn1...@hotmail.com

[symfony-users] Re: mysql connection problems on ovh

2009-03-20 Thread Alistair MacDonald
ckemmler wrote: all: propel: class: sfPropelDatabase param: classname: PropelPDO dsn: mysql:dbname=;host:mysql5-52.90 username: password: encoding: utf8 persistent: true pooling: true Because you need to say

[symfony-users] Re: mysql connection problems on ovh

2009-03-20 Thread ckemmler
! :-) nice shot - thanks On Mar 20, 1:26 pm, Alistair MacDonald iamsl...@gmail.com wrote: ckemmler wrote: all:   propel:     class: sfPropelDatabase     param:       classname: PropelPDO       dsn: mysql:dbname=;host:mysql5-52.90       username:      

[symfony-users] sfGuardExtraPlugin

2009-03-20 Thread ckemmler
This plugin seems to buy me everything I need. However, I can't install it using plugin:install... What about other ways of installing it? How do I know that it's going to work? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[symfony-users] Re: tutorial problem (@ add a record relative to another table)

2009-03-20 Thread der mick
hey Candide and Alex, i've got the same probleme and actually can't find any solution for it. how can i set the value of hidden field blog_post_id to equivalent of $_GET['post_id']? thanks for help mick On 17 Feb., 22:23, ckemmler ckemm...@gmail.com wrote: Thank you alex! But unfortunately

[symfony-users] Re: tutorial problem (@ add a record relative to another table)

2009-03-20 Thread der mick
Hey Candide, i'd the same problem, but i find a solution. edit action.class.php (apps/frontend/modules/comment/actions/ actions.class.php) and search for the processForm function. modify this function like this code: protected function processForm(sfWebRequest $request, sfForm $form) {

Re : [symfony-users] sfGuardExtraPlugin

2009-03-20 Thread Loïc Vernet
Try by SVN or download the pear package. ++ De : ckemmler ckemm...@gmail.com À : symfony users symfony-users@googlegroups.com Envoyé le : Vendredi, 20 Mars 2009, 23h58mn 04s Objet : [symfony-users] sfGuardExtraPlugin This plugin seems to buy me everything I

Re: Re : [symfony-users] sfGuardExtraPlugin

2009-03-20 Thread ckemmler
Thanks! Did that. I have two problems now 1. the README there tells me: * Add method `retrieveByUsernameOrEmailAddress` to get a user by email or username in lib/model/sfGuardPlugin/sfGuardUserPeer.class e.q. [PHP] static public function retrieveByUsernameOrEmailAddress

Re: Re : [symfony-users] sfGuardExtraPlugin

2009-03-20 Thread ckemmler
This might be more interesting: I just tried to trigger the register action by going to: http://localhost/web/frontend_dev.php/sfGuardRegister/register This got me: Fatal error: Class 'sfGuardFormRegister' not found in /eclipse/

[symfony-users] Preventing post validators from running

2009-03-20 Thread Benjamin
I'm trying to do something very simple. All I want to do is validate a field. If the field is valid I want to verify that it is (unique), ie not already in the database. I have tried many different combinations of validators, but symfony insists on running a database query to check if it

Re: Re : [symfony-users] sfGuardExtraPlugin

2009-03-20 Thread pixelmeister
Try symfony plugin:inslall --release=xx.xx.xx sfGuardExtraPlugin and make shure you register the plugin in the ProjectConfiguration.class.php Example: $this-enablePlugins('sfGuardExtraPlugin'); OR $this-enableAllPluginsExcept(array('sfXXXPlugin', 'sfCompat10Plugin')); regards,

[symfony-users] Re: sfEasyGMapPlugin v1.0 out

2009-03-20 Thread Yevgeniy A. Viktorov
Hello Thomas, Originally I had idea about ajaxified widget based implementation, something like: 1. Implement the widget, initially it's might be single field to hold lat/lng.; 2. Implement button on the right of field, to open up modal window with gmap; 3. Modal window will show the map and

[symfony-users] Re: Preventing post validators from running

2009-03-20 Thread Sid Bachtiar
This may seem minor, but it's wasting resources and driving me nuts. Yep, sfValidatorAnd has driven many people mad, nut, crazy, and generally annoyed. Use sfValidatorAndWithBreak for more proper operator 'And' behaviour from http://forum.symfony-project.org/index.php/m/70930/ On Sat, Mar

[symfony-users] Re: Preventing post validators from running

2009-03-20 Thread Alan Bem
sfValidatorPropelUnique as post validator? When did that changed? Here's some live code from one of my forms: $this-setValidator('health_care_institution_book_number', new sfValidatorAnd(array( new sfValidatorRegex(array('required' = false, 'pattern' =

[symfony-users] How can I get the widget type ?

2009-03-20 Thread fredlab
Hey, Suppose you have define a widget as is : $this-setWidget('problem_code', new sfWidgetFormJQueryAutocompleter (array( 'url' = $context-getController()-genUrl('@ajax_getProblems'), ))); Is there any way I can get the widget type (shoud be equal to sfWidgetFormJqueryAutocompeter in this

[symfony-users] Re: How can I get the widget type ?

2009-03-20 Thread Alan Bem
get_class($this-getWidget()) On Sat, Mar 21, 2009 at 1:37 AM, fredlab frederic.beauf...@free.fr wrote: Hey, Suppose you have define a widget as is : $this-setWidget('problem_code', new sfWidgetFormJQueryAutocompleter (array( 'url' =

[symfony-users] Re: How can I get the widget type ?

2009-03-20 Thread Alan Bem
Of course, supply the name of a widget. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send

[symfony-users] Re: Preventing post validators from running

2009-03-20 Thread Benjamin
I guess I'm just going to have to write my own validator. Using the recommend methods throws global errors and I need them specific to the field. Alan Bem wrote: sfValidatorPropelUnique as post validator? When did that changed? Here's some live code from one of my forms:

[symfony-users] Re: Preventing post validators from running

2009-03-20 Thread Alan Gabriel Bem
My example does not throw global error. On Mar 21, 1:48 am, Benjamin agtle...@gmail.com wrote: I guess I'm just going to have to write my own validator.  Using the recommend methods throws global errors and I need them specific to the field. Alan Bem wrote: sfValidatorPropelUnique as post

[symfony-users] Re: Preventing post validators from running

2009-03-20 Thread Benjamin
Are you running at as a post validator though? In symfony 1.2 I'm not able to run sfValidatorPropelUnique if it's not in a post validator. I tried setting throw_global_error to false but it wouldn't take it. Anyway, I wrote a custom validator and it works fine. Alan Gabriel Bem wrote: My

[symfony-users] How to access sfWebRequest object from the model

2009-03-20 Thread Benjamin
Hello, In my user model I would like to capture the user's ip address for new records in the user-save() event. I am using symfony 1.2. What is the best way to access the sfWebRequest object from within the model? Thank you, Benjamin --~--~-~--~~~---~--~~ You

[symfony-users] in my error logs: Action uploads/assets does not exist.

2009-03-20 Thread Lawrence Krubner
As far as I know, I never call an action called uploads/assets. Yet I'm getting this in my error logs: [21-Mar-2009 00:21:10] Action uploads/assets does not exist. I thought maybe I'd accidentally typed this into some module so I did this: cd /apps/frontend/modules grep -R uploads\/assets *

[symfony-users] Re: in my error logs: Action uploads/assets does not exist.

2009-03-20 Thread Eno
On Fri, 20 Mar 2009, Lawrence Krubner wrote: I've got the sfMediaLibraryPlugin installed, and it uploads files to uploads/assets, but I don't see how that can be an issue. I've haven't been using or testing the plugin, yet these errors appear. How do you know that noone else is calling that