[symfony-users] Re: trouble connecting to mysql database

2007-10-26 Thread [EMAIL PROTECTED]
Hi Scott, first of all, which symfony version and which propel version are you using? It seems you are not using the most recent symfony version because in 1.0.8 there is a comment in Propel.php:499. First you should update your symfony. The exception could come from an problem/issue with the lo

[symfony-users] Re: sfDoctrine: prepared statements and Doctrine::FETCH_ARRAY

2007-10-26 Thread Johannes Schmidt
Hi Bernhard, thank you for information! Regards, Johannes On 25 Okt., 21:41, Bernhard Schussek <[EMAIL PROTECTED]> wrote: > Hi Johannes! > > Lately I was told on the #doctrine IRC channel, that the correct > constant to use in this case is Doctrine::HYDRATE_ARRAY. It is only by > chance that Do

[symfony-users] Re: Cross Domain Login

2007-10-26 Thread Marek
If the document roots for the domais are set right, you don't need to anything in symfony, domain for link_to() and like functions are detected at runtime. You just need to set up DNS and apache's vhosts. Another thing is that you propably want to set some settings different for each domain, you c

[symfony-users] Re: Symfony coders needed / symfony e-commerse module...

2007-10-26 Thread Ámon Tamás
Hello, What about this e-commerce plugin? Is there a downloadable version of it? Jon Busby írta: > Stefan, > > I'd volunteer some hours for this - if anything else just to get some > experience with another coders symfony code (its nice to see that I'm > building sites correctly, hehe). > >

[symfony-users] Re: Using components/actions in ' ?

2007-10-26 Thread Nicolas Perriault
On 10/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Question is, I need to embed this component/action in another action. could do the trick ? ++ -- Nicolas Perriaulthttp://www.clever-age.com Clever Age - conseil en architecture technique GSM: +33 6 60 92 08 67 Tél: +33 1 53 34 6

[symfony-users] Re: sfDoctrine i18n

2007-10-26 Thread elbouillon
There is no more sfDoctrineI18n in the plugin. I think you needs to use the native I18n doctrine supports described here : http://phpdoctrine.net/index.php/documentation/manual?chapter=plugins#internationalization-with-i18n With the new doctrine yml syntax : http://phpdoctrine.net/index.php/docu

[symfony-users] Best Practices: what about your static content?

2007-10-26 Thread Thierry
I'm just wondering, when you have your nice webapp finished, what do you do with your static pages. Such as about, etc. etc. Do you keep them in a static module in Symfony, or do you use a nice CMS? I lightweight CMS would be very convenient for managing those static pages. Then again, I think a

[symfony-users] Problem with sfPokaYoke

2007-10-26 Thread Janak Jadeja
I am using sfPokaYoke plugin with symfony 1.0.8. I have used it for client side form validation. It was working fine but when I used multiple select box in form ( using it without any validation ). Form validation not working and its giving javascript error: * value.gsub is not a function clean

[symfony-users] [i18n] Change of culture in actions

2007-10-26 Thread Tchinkatchuk
Hi all, I have an issue about i18n and Culture update in action method. It call an action in fr_FR for example. This method sent an email but I need to send it in english so it change the culture before calling methos 'sendemail'. This is good in execution. My probleme is that it change just be

[symfony-users] Re: Standards Complaint Form Validation

2007-10-26 Thread CaffeineInc
I hunted around, and managed to find some configuration settings for the form validation that removed the arrow, and the non-breaking space. It also allows you to customise the error classnames and the id's, but not the object that is returned. adding this to your modules config.php changes the

[symfony-users] Re: Symfony coders needed / symfony e-commerse module...

2007-10-26 Thread Jon Busby
Not yet, its not really in a state to become a plugin yet - I _could_ put it up on my SVN system, or is there somewhere on the symfony site I can upload (I know theres the SVN system but I'm not sure If I want to pollute it yet!) any takers for helping me work on it? Perhaps I should just pu

[symfony-users] Re: Symfony coders needed / symfony e-commerse module...

2007-10-26 Thread Jon Busby
Not yet, its not really in a state to become a plugin yet - I _could_ put it up on my SVN system, or is there somewhere on the symfony site I can upload (I know theres the SVN system but I'm not sure If I want to pollute it yet!) any takers for helping me work on it? Perhaps I should just pu

[symfony-users] Re: Cross Domain Login

2007-10-26 Thread alovak
Andreas, you can use such setting for mod_rewrite in your .htaccess: ProxyPass /images http://domain.com/user_files/ also you need to load proxy and http_proxy modules in Apache. On Oct 25, 1:35 pm, Andreas Stephan <[EMAIL PROTECTED]> wrote: > Marek, > that looks like an interesting an especial

[symfony-users] Re: Multiple schema XML files

2007-10-26 Thread Luciano A. Andrade
If you set different package property in the database tag you will end with deferments sql files, but you have to run thous sql against the database yourself (propel will run all). You could run propel-build-sql every time you have a to build the sql and get a custom sql according with your schema

[symfony-users] Re: Standards Complaint Form Validation

2007-10-26 Thread CaffeineInc
I resolved the problem in the end by realizing that the actual form_error function is only displaying the error messages from the request. You can get around the disgusting non-compliant code, by running your own function put in on of the auto load directories (e.g. myproject/ lib), which uses yo

[symfony-users] sfBasicSecurityUser timeout issue

2007-10-26 Thread Ian P. Christian
I'm not sure if I should post this here, or to the dev list. sfBasicSecurityUser will timeout a session after a certain amount of time, and when it does that, it sets a variable such that $user->isTimedout() returns true - this is great. I am using this in my code as follows: public functi

[symfony-users] php 5.1 compatibility

2007-10-26 Thread [EMAIL PROTECTED]
Hi, My development server runs php 5.2 and prod runs 5.1. I am having trouble with the data model. the 2 relevant snippets are: class Trainings extends BaseTrainings { public function __toString() { return $this->getTitle(); } } and class TrainingDays extends BaseTrainingDays

[symfony-users] Re: ASP model implementation on symfony

2007-10-26 Thread Steve Daniels
Why do you want to have an individual database for each company? Simply relating the entries in a few key tables for each distinct part of the application to unique fk identifiers for each company should suit? Steve Daniels P.S. Multiple databases is possible. Search the archives and the snippe

[symfony-users] Re: OT: Eclipse Workflow

2007-10-26 Thread Thierry
Also what i am missing after using textmate is there vertical selection and mirror typing in Eclipse? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symf

[symfony-users] Re: OT: Eclipse Workflow

2007-10-26 Thread Thierry
good stuff here :) the last question is also interesting had no idea about the new file templates (have been using the templates though) Also a nice one is to type /** above a function, you'll see what it does :) --~--~-~--~~~---~--~~ You received this message

[symfony-users] Re: Sometimes suffix sometimes not

2007-10-26 Thread Tom Haskins-Vaughan
So, I found a way of doing it in case anyone's interested: In routing.yml: print_friendly_url: url: /menus. param: { module: menus, action: index } Note the '.' after menus. Tom Haskins-Vaughan wrote: > Huh. I didn't realise that. Thanks. > > Either way, is this possible in symfony?

[symfony-users] Re: Symfony coders needed / symfony e-commerse module...

2007-10-26 Thread Charley Tiggs
I'd be happy to help work on it. I just need to know how we're communicating about it and what is still needed. Charley Jon Busby wrote: > Not yet, > > its not really in a state to become a plugin yet - I _could_ put it up > on my SVN system, or is there somewhere on the symfony site I can u

[symfony-users] Re: Sometimes suffix sometimes not

2007-10-26 Thread Tom Haskins-Vaughan
Also, not sure if this is fool proof, but as a last rule in routing.yml I tried: catch_all: url: /*. param: { module: catchall, action: index } This will catch everything left at the end of the routing rules: www.domain.com/incorrectly_entered_url etc. Comments? Tom Haskins-Vaughan w

[symfony-users] Re: ASP model implementation on symfony

2007-10-26 Thread Tristan Rivoallan
On 10/23/07, Allan Andal <[EMAIL PROTECTED]> wrote: > Any suggestion on how to implement an on-demand model (application > service provider) in symfony? this plugin may prove useful : http://trac.symfony-project.com/wiki/sfDimensionsPlugin ++ tristan --~--~-~--~~~--

[symfony-users] Re: php 5.1 compatibility

2007-10-26 Thread Michael Smith
I've had similar problems with concatenation. Try return $this- >getTrainings()->__toString() . ' ('.$this->getDate('m/d/Y').')'; Michael On Oct 26, 8:23 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > My development server runs php 5.2 and prod runs 5.1. > > I am having trouble wit

[symfony-users] Re: Desperate: Help needed keeping connection open with REST client

2007-10-26 Thread Ian P. Christian
drmikecrowe wrote: > Hi folks, > > I'm porting RoR app to symfony, and the client is starting to talk to > my system now. Unfortunately, he says that my server is "closing" the > connection between his first call and his immediate 2nd call. This issue has been found - and is currently being dis

[symfony-users] Re: php 5.1 compatibility

2007-10-26 Thread [EMAIL PROTECTED]
On 10/26/07, Michael Smith <[EMAIL PROTECTED]> wrote: I've had similar problems with concatenation. Try return $this- >getTrainings()->__toString() . ' ('.$this->getDate('m/d/Y').')'; Michael I tried that before, but get: Fatal error: Call to a member function __toString() on a n

[symfony-users] Re: sfBasicSecurityUser timeout issue

2007-10-26 Thread Fabien POTENCIER
I think you're right. You can make the change in symfony 1.0 and 1.1 Fabien -- Fabien Potencier Sensio CEO - symfony lead developer http://www.sensiolabs.com/ http://www.symfony-project.com/ Sensio Labs Tél: +33 1 40 99 80 80 Ian P. Christian wrote: > I'm not sure if I should post this here, o

[symfony-users] Re: php 5.1 compatibility

2007-10-26 Thread Michael Smith
That's interesting, that fixed my problems in 5.1.6. __toString() is just a normal public method that you should be able to call like any other. Michael On Oct 26, 10:03 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On 10/26/07, Michael Smith <[EMAIL PROTECTED]> wrote: > > I've had si

[symfony-users] Anyone using MAMP

2007-10-26 Thread Tom Haskins-Vaughan
Hi, I got symfony up and running with MAMP the other day and it was working fine. I just tried to view my site again today and I get a blank page - nothing. I don't think I changed anything in between. I've restarted MAMP several times and rebooted once. No success. Anyone any suggestions? TI

[symfony-users] Re: trouble connecting to mysql database

2007-10-26 Thread [EMAIL PROTECTED]
Hi Carsten, I am using 1.0.8pre. I was not aware of a newer version. It looks like version 1.0.9 is not done yet? I did some playing around with the database.yml file like you suggested, and commenting out the port & encoding lines fixed the problem. I don't need to mess with these, but I am curi

[symfony-users] can't set sf_routing_defaults[sf_culture]

2007-10-26 Thread Marek
Routing uses global_defaults that are set somewhere. In my application it contains just sf_culture, that's set to 'en'. Unless I manage to change it to 'sk', some routing rules won't work. I changed all 'culture' settings in setting.yml and i18n.yml in my application, I even changed the settings

[symfony-users] Re: Anyone using MAMP

2007-10-26 Thread Tom Haskins-Vaughan
I don't think the problem is with symfony. I have the same effect with files in the web root directory. Quenten Griffith wrote: > Are you able to run symfony via the command line in your project > directory? Try a symfony cc and if that does not do anything then look > at your conifg/config.p

[symfony-users] Re: Anyone using MAMP

2007-10-26 Thread Quenten Griffith
Are you able to run symfony via the command line in your project directory? Try a symfony cc and if that does not do anything then look at your conifg/config.php file and see if it is pointing to where you have symfony installed On 10/26/07, Tom Haskins-Vaughan <[EMAIL PROTECTED]> wrote: > > > Hi,

[symfony-users] Re: sfBasicSecurityUser timeout issue

2007-10-26 Thread Ian P. Christian
Fabien POTENCIER wrote: > I think you're right. You can make the change in symfony 1.0 and 1.1 > This fix has been made in branches/1.0 and trunk. I've updated the changelog in branches/1.0 in anticipation for the next 1.0.x release. --~--~-~--~~~---~--~~ You

[symfony-users] Re: php 5.1 compatibility

2007-10-26 Thread Jay Klehr
PHP isn't complaining that the method doesn't exist, but rather that "$this->getTrainings()" is not an object. Jay Michael Smith wrote: > That's interesting, that fixed my problems in 5.1.6. __toString() is > just a normal public method that you should be able to call like any > other. > > Micha

[symfony-users] Re: Anyone using MAMP

2007-10-26 Thread Quenten Griffith
Are the files owned by the same user running MAMP? Are the files world readable? On 10/26/07, Tom Haskins-Vaughan <[EMAIL PROTECTED]> wrote: > > > I don't think the problem is with symfony. I have the same effect with > files in the web root directory. > > Quenten Griffith wrote: > > Are you able

[symfony-users] Re: Anyone using MAMP

2007-10-26 Thread Tom Haskins-Vaughan
Yup. And the weird thing is, the 'Welcome to MAMP' page is working fine. and the pages don't come up with an error (404), they're completely blank, no html at all. Quenten Griffith wrote: > Are the files owned by the same user running MAMP? Are the files world > readable? > > On 10/26/07, *T

[symfony-users] Re: Anyone using MAMP

2007-10-26 Thread Tom Haskins-Vaughan
I'm not sure what that means. And if it is, what can I do? [EMAIL PROTECTED] wrote: > Is it segfaulting by any chance? > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to

[symfony-users] Re: Anyone using MAMP

2007-10-26 Thread [EMAIL PROTECTED]
Is it segfaulting by any chance? --~--~-~--~~~---~--~~ 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 email

[symfony-users] Re: can't set sf_routing_defaults[sf_culture]

2007-10-26 Thread Marek
I traced it down to sfConfig::get('sf_i18n_default_culture', 'en') returning 'en' - sf_i18n_default_culture is not set. I turned out "i18n: on" was ignored in all section. This does not work: all: i18n: on This works: prod: i18n: on dev: i18n: on test: i18n: on --~--~-~--~---

[symfony-users] Re: Anyone using MAMP

2007-10-26 Thread Ant Cunningham
No exp with MAMP. I just wanted to say that setting up a tradiitonal stack on OS X isnt hard at all. There are prebuilt binaries for everything. In fact the only thing of difficulty is if you want to upgrade to Apache2 or use it alnogside the system bundeled 1.3.33. Granted youre not going to have

[symfony-users] Re: Anyone using MAMP

2007-10-26 Thread Carl Vondrick
On Friday, October 26, 2007, Tom Haskins-Vaughan wrote: > I'm not sure what that means. And if it is, what can I do? http://en.wikipedia.org/wiki/Segmentation_fault I only bring it up because I was plagued by a segfaulting Apache server, which would randomly serve a blank page. Check your serve

[symfony-users] Re: Anyone using MAMP

2007-10-26 Thread Tom Haskins-Vaughan
I've never had any problems with LAMP. You'd think that as Mac is trying hard to corner the developer market that AMP would come preinstalled. I think I saw somewhere that Ruby (or Rails) is being bundled with Leopard. Ant Cunningham wrote: > No exp with MAMP. I just wanted to say that setting

[symfony-users] Re: Using components/actions in ' ?

2007-10-26 Thread [EMAIL PROTECTED]
On 10/26/07, Nicolas Perriault <[EMAIL PROTECTED]> wrote: > On 10/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Question is, I need to embed this component/action in another action. > > > could do the trick ? > Yes this could, this is also in principal is what I currently do. But th

[symfony-users] Re: Anyone using MAMP

2007-10-26 Thread Tom Haskins-Vaughan
Thanks Ant, Sorry to be a real idiot, but you couldn't point me in the right direction for setting up a traditional stack could you? Ant Cunningham wrote: > No exp with MAMP. I just wanted to say that setting up a tradiitonal stack > on OS X isnt hard at all. There are prebuilt binaries for eve

[symfony-users] sfDoctrine admin_double_list

2007-10-26 Thread Charley Tiggs
I've created an admin for a users table. I need a double list in order to select the groups the user belongs to. But I'm having a hard time figuring out how to do it. Here's what I have in my generator.yml: generator: class: sfDoctrineAdminGenerator param: model_c

[symfony-users] Re: sfDoctrine admin_double_list

2007-10-26 Thread Charley Tiggs
Nevermind, I got it figured. Had to create a m-n relation within the base user class. It is not enough that the relationship is already referenced via UserGroup. Added the following in schema.yml and rebuilt the models: User: relations: . Groups: class: Group

[symfony-users] sfDoctrine and database indexes

2007-10-26 Thread Charley Tiggs
I'm using schema.yml to manage my models and to create the tables until the database structure settles down. I'm trying to create a multi-column index on a table and am not having any success. Here's the table: Subcategory: tableName: subcategory relations: Category: ~ colum