Re: [symfony-users] Re: Populate sfWidgetFormChoice choices with AJAX

2011-01-12 Thread Tom Haskins-Vaughan
Can you not set the service type on the object before you pass it to the form? $calculation = new Calculation(); $calculation-setServiceType($my_value); $form = new CalculationForm($calculation); On Wed, Jan 12, 2011 at 8:12 AM, Emil Rømer Christensen christensen.e...@gmail.com wrote: This is

Re: [symfony-users] Re: Populate sfWidgetFormChoice choices with AJAX

2011-01-12 Thread Tom Haskins-Vaughan
Yeah, I would create an action that returned a json object and create the new select from that. On Wed, Jan 12, 2011 at 11:16 AM, Tom Haskins-Vaughan t...@harvestcloud.com wrote: Can you not set the service type on the object before you pass it to the form? $calculation = new Calculation

Re: [symfony-users] Populate sfWidgetFormChoice choices with AJAX

2011-01-11 Thread Tom Haskins-Vaughan
What do you have so far? On Thu, Jan 6, 2011 at 10:10 AM, Emil Rømer Christensen christensen.e...@gmail.com wrote: Hi there, I have made a form with 3 select boxes using sfWidgetForm. Here is the schema for them: ServiceType:  columns:    name: { type: string(255), notnull: true, unique:

Re: [symfony-users] Pagination problem

2011-01-11 Thread Tom Haskins-Vaughan
Are you still having trouble with this? I tried the link and didn't see anything wrong. On Fri, Jan 7, 2011 at 1:00 PM, Felipe Gutierrez fgutierrez.ch...@gmail.com wrote: Hi Im new in symfony I need a hand with pagination, Im trying to use pagination in a page for search terms, in the module I

Re: [symfony-users] sfForm getValidatorSchema()-setPreValidator() documentation

2011-01-11 Thread Tom Haskins-Vaughan
What are you trying to achieve? On Fri, Jan 7, 2011 at 2:39 PM, neanlos nean...@gmail.com wrote: Anyone has documentation about sfForm getValidatorSchema()- setPreValidator() mentioned in the article http://www.symfony-project.org/gentle-introduction/1_4/en/10-Forms? -- If you want to report

Re: [symfony-users] documentation about hasHelp() mentioned in gentle-introduction 1.4

2011-01-11 Thread Tom Haskins-Vaughan
I just grep'd for the phrase hasHelp in sf1.4.8 and came up with nothing. Is this not in the core library? On Fri, Jan 7, 2011 at 2:53 PM, neanlos nean...@gmail.com wrote: ... And anyone has documentation about the hasHelp function mentioned in the section Customizing Error Messages Display of

Re: [symfony-users] sfDoctrineGuard

2010-12-31 Thread Tom Haskins-Vaughan
.sfGuardAuth/config/view.yml file On Fri, Dec 31, 2010 at 5:14 PM, ma89a2 marcelooliveira...@gmail.com wrote: Hello all. I have an frontend app with sfDoctrineGuard installed and it works fine. Is there a way I can secure the frontend/template/layout.php too ? Because I would like to have

[symfony-users] Log and notify on order actions

2010-12-30 Thread Tom Haskins-Vaughan
sf1.4/doctrine/ubuntu Hi all, Here's hoping all of you (who observe it) had a Merry Christmas and are looking forward to a fine New Year. I am developing an ecommerce application. At each stage in an order's life-cycle, I want to log an event, send a notification and send a user flash. My

Re: [symfony-users] How to run functional tests when using sfDoctrineGuard and many modules are set is_secure true?

2010-12-21 Thread Tom Haskins-Vaughan
Why don't you just log in as part of your test? On Tue, Dec 21, 2010 at 10:23 AM, dmitrypol dmitry...@gmail.com wrote: I implemented sfDoctrineGuardPlugin 5.0.0 and secured most of my modules (some can be publicly accessible). However it really limits my ability to run functional tests. I

Re: [symfony-users] Using country code for i18n Doctrine translations

2010-10-27 Thread Tom Haskins-Vaughan
characters by doing this : X:   actAs:     I18n:       fields: [xxx, yyy, zzz]       length: 5 -- Pierre-Yves 2010/10/26 Tom Haskins-Vaughan t...@templestreetmedia.com Hi all, I apologise if this has been dealt with in the past. In the Gentle Introduction to symfony it says

[symfony-users] Using country code for i18n Doctrine translations

2010-10-26 Thread Tom Haskins-Vaughan
Hi all, I apologise if this has been dealt with in the past. In the Gentle Introduction to symfony it says: Keeping both the language and the country in the culture is necessary because you may have a different French translation for users from France, Belgium, or Canada, and a different

Re: [symfony-users] Forcing a canonical hostname for absolute links without clobbering the entire context: possible?

2010-06-14 Thread Tom Haskins-Vaughan
What about just a new helper, e.g. email_link_to() which calls link_to but adds the hostname on the front? Store the hostname in your app.yml to make it a little more flexible. On Fri, Jun 11, 2010 at 12:30 PM, Olivier LOYNET olivierloy...@gmail.com wrote: Hi, Is any solution has been found to

[symfony-users] Common interfaces for shipping, tax and payments

2010-06-03 Thread Tom Haskins-Vaughan
Hi All, We have a US ecommerce site at that we are looking to take into Canada. Since we will in all likelihood move to more countries, we want to refactor the payment, tax and shipping code to use common interface for each. So that when we move to each new country we have a common interface to

Re: [symfony-users] Common interfaces for shipping, tax and payments

2010-06-03 Thread Tom Haskins-Vaughan
Thanks, Richard, I'll take a look. Anyone else working on anything else? On Thu, Jun 3, 2010 at 3:15 PM, Richard D Shank deve...@zestic.com wrote: On 06/03/2010 11:18 AM, Tom Haskins-Vaughan wrote: Hi All, We have a US ecommerce site at that we are looking to take into Canada. Since we

Re: [symfony-users] sfGuardDoctrinePlugin authentication for all apps

2010-06-02 Thread Tom Haskins-Vaughan
Are all the apps on the same subdomain? On 6/2/10, wueb webmaster@gmail.com wrote: There is any chance to use sfGuardDoctrinePlugin to authentication in all my apps? I mean, i have app1, app2 and app3. If i do a login in app3, app2 and app1 will be able to know i'm already authenticated

Re: [symfony-users] sfGuardDoctrinePlugin authentication for all apps

2010-06-02 Thread Tom Haskins-Vaughan
I mean *domain* :-) On 6/2/10, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: Are all the apps on the same subdomain? On 6/2/10, wueb webmaster@gmail.com wrote: There is any chance to use sfGuardDoctrinePlugin to authentication in all my apps? I mean, i have app1, app2 and app3

Re: [symfony-users] generare_csv

2010-06-02 Thread Tom Haskins-Vaughan
How far have you got? On 6/2/10, safa boubekri boubekri.s...@gmail.com wrote: HELLO how can i genrate csv which contain the result of table thank you -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this

Re: [symfony-users] Re: configure getListBatchActions() in backend

2010-05-27 Thread Tom Haskins-Vaughan
Can you not achieve this with credentials? On Thu, May 27, 2010 at 10:53 AM, Ricardo richard.verg...@gmail.com wrote: Somebody can 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 you

Re: [symfony-users] Trying to load a .css from sfJqueryReloadedPlugin

2010-05-26 Thread Tom Haskins-Vaughan
I know it may be a silly question, but do you have the correct url for the css file? I mean, what happens when you put it in your brower location bar? On Wed, May 26, 2010 at 6:08 AM, Javier Garcia tirengar...@gmail.com wrote: Hi, i have this lines: ?php

Re: [symfony-users] Ajax based doubt

2010-05-26 Thread Tom Haskins-Vaughan
+1 for jquery On Wed, May 26, 2010 at 8:51 AM, Eno symb...@gmail.com wrote: On Wed, 26 May 2010, Parijat Kalia wrote: 1) Enabling jQuery or Prototype (which 1 is better and easier to learn) jQuery has a lot more widgets available IMHO. 2) Do I need to download anything off the net, or are

Re: [symfony-users] creating 2 websites (different domain name) sharing the samedatabse

2010-05-25 Thread Tom Haskins-Vaughan
Yes, it should be fairly easy. 1. create one or more application for each domain name 2. point your domain name's to the same place 3. check in your index.php which domain name you have and launch the appropriate application Tom On Tue, May 25, 2010 at 5:21 AM, mehdi hadef

Re: [symfony-users] best practice to save nb_comments

2010-05-25 Thread Tom Haskins-Vaughan
Is this what you're looking for? http://www.symfony-project.org/more-with-symfony/1_4/en/08-Advanced-Doctrine-Usage On Tue, May 25, 2010 at 6:42 AM, Stéphane stephane.er...@gmail.com wrote: Hi, No, think about listeners on Doctrine_Record and the postInsert hook. Cheers, Before Printing,

Re: [symfony-users] Re: strip_tags validator

2010-05-25 Thread Tom Haskins-Vaughan
::setDescription(strip_tags($value)); }    gabriel On May 24, 11:56 pm, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: Hi all, I need to call strip_tags() on a form field before I put it in my database, only allowing strong and em tags. I've done this by creating a custom validator (see below

Re: [symfony-users] Preventing users from seeing others information

2010-05-25 Thread Tom Haskins-Vaughan
Instead of using mysite.com/account/profile/5 I would use mysite.com/account/profile And get the user_id from the sessions: $this-profile = $this-GetUser()-getProfile(); On Mon, May 24, 2010 at 6:37 PM, Samuel Morhaim samuel.morh...@gmail.com wrote: If I have something such as

Re: [symfony-users] Re: strip_tags validator

2010-05-25 Thread Tom Haskins-Vaughan
probably doesn't work for the form since form data is loaded into the object by calling -fromArray() which does not necessarily call mutators as far as Doctrine is concerned (not sure what Propel does here). Johannes On May 25, 2:36 pm, Tom Haskins-Vaughan t...@templestreetmedia.com wrote

Re: [symfony-users] Preventing users from seeing others information

2010-05-25 Thread Tom Haskins-Vaughan
As Phil says: $profile = $this-getRoute()-getObject(); if ($this-getUser() != $profile-getUser()) { // return error 404 } On Tue, May 25, 2010 at 9:42 AM, Samuel Morhaim samuel.morh...@gmail.com wrote: Thanks for the replies. Slugs would work for the profile and certain areas and just

Re: [symfony-users] Re: Preventing users from seeing others information

2010-05-25 Thread Tom Haskins-Vaughan
the id. there are some good posts here: http://www.php.net/manual/en/function.hash-hmac.php TW On May 25, 1:38 pm, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: Instead of using   mysite.com/account/profile/5 I would use   mysite.com/account/profile And get the user_id

Re: [symfony-users] Re: sfWidgetFormI18nLanguageChoice not found

2010-05-25 Thread Tom Haskins-Vaughan
Try sfWidgetFormI18nChoiceLanguage On Tue, May 25, 2010 at 11:33 AM, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: By the way, I use Symfony 1.4 :) On 25 mei, 17:32, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: In form I use the sfWidgetFormI18nLanguageChoice. But,

Re: [symfony-users] creating 2 websites (different domain name) sharing the samedatabse

2010-05-25 Thread Tom Haskins-Vaughan
Actually, no, Eno is right. You can't share session cookies between domains. On Tue, May 25, 2010 at 11:54 AM, mehdi hadef mehdi.ha...@gmail.com wrote: Could I share cookies and session between the two domain names with this method ? 2010/5/25 Tom Haskins-Vaughan t...@templestreetmedia.com

Re: [symfony-users] sum()+backend

2010-05-25 Thread Tom Haskins-Vaughan
Any more details? On Tue, May 25, 2010 at 1:34 PM, safa boubekri boubekri.s...@gmail.com wrote: hello every body how  can  i  create  method  to have sum() in the  backend thank you  a lot -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] strip_tags validator

2010-05-24 Thread Tom Haskins-Vaughan
Hi all, I need to call strip_tags() on a form field before I put it in my database, only allowing strong and em tags. I've done this by creating a custom validator (see below). It works fine, but is there a better way to do this? Thanks, Tom protected function doClean($value) { return

[symfony-users] Where to put a WSDL file

2010-05-21 Thread Tom Haskins-Vaughan
Hey guys, In my everlasting quest for doing things the right way, I'm just wondering where I should put a WSDL file in a plugin. I know it's not really a big deal, but hey... My initial feeling is to put it in myPlugin/data/ Any thoughts? Thanks, Tom -- If you want to report a

Re: [symfony-users] Where to put a WSDL file

2010-05-21 Thread Tom Haskins-Vaughan
Thanks, Daniel! :) On Fri, May 21, 2010 at 10:30 AM, Daniel Lohse annismcken...@googlemail.com wrote: Yeah, the data directory seems to be the correct location for such a file. :) On 21.05.2010, at 16:11, Tom Haskins-Vaughan wrote: Hey guys, In my everlasting quest for doing things

Re: [symfony-users] edit id in admin

2010-05-21 Thread Tom Haskins-Vaughan
I'm intrigued...why would you want to change the id? On Fri, May 21, 2010 at 1:51 PM, Mihai Rusoaie mi...@rusoaie.com wrote: Hello! When I insert an new object in the database, I want the id to be assigned automatically (autoincrement). In the edit form, however, I want to be able to change

Re: [symfony-users] Jobeet Day 7: Unable to find the JobeetCategory object with the following parameters array ( 'slug' = 'design',)).

2010-05-20 Thread Tom Haskins-Vaughan
Look in your database. Do you have a jobeet_category record with a slug 'design'? On Thu, May 20, 2010 at 2:54 PM, asuarez ali.sua...@gmail.com wrote: Hi. I finished day 7 of the tutorial (1.4 doctrine) and it's not working, I get an 404 error and the message 'Unable to find the

[symfony-users] Re: Doctrine Behavior example in symfony 1.4 book - CountCache

2010-05-16 Thread Tom Haskins-Vaughan
I have the same problem. I stumpled across this: http://forum.symfony-project.org/index.php?t=rviewgoto=90931th=24670#msg_90931 But I'd love to know if there was a cleaner way to do it. Any Doctrine developers out there got any suggestions? Thanks, Tom On Apr 5, 8:03 am, mstralka

[symfony-users] Re: Do doctrine record event listeners use transactions

2010-05-13 Thread Tom Haskins-Vaughan
Anyone? :) On May 10, 1:20 pm, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: Hi all, Having read the chapter in More with symfony 1.3 1.4 on Doctrine Behaviours: http://www.symfony-project.org/more-with-symfony/1_4/en/08-Advanced-D... I just have a quick question. When you use

Re: [symfony-users] Problem while loading fixture with the plugin sfDoctrineGuardPlugin

2010-05-12 Thread Tom Haskins-Vaughan
Try: sfGuardUserGroup: sfGuardUserGroup_admin_admin: User: sfGuardUser_admin Group: sfGuardGroup_admin On Wed, May 12, 2010 at 6:14 AM, Etienne etienne.mic...@gmail.com wrote: Hey everyone, I've a problem while loading a set of fixture in my project. When I run the command ./symfony

Re: [symfony-users] problem with plugin install

2010-05-12 Thread Tom Haskins-Vaughan
Did you clear your cache? On 5/12/10, . sziget...@gmail.com wrote: I tried it now, but I got the same result. :( Is there a step-by-step guide about how to install plugin for Symfony 1.4.4 ? Thanks! On máj. 11, 18:59, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: Did you enable

Re: [symfony-users] Re: Doctrine won't load 3-level heirarchy as data fixture

2010-05-11 Thread Tom Haskins-Vaughan
Try this: WttListWtt: pc-rail-barnham-1930-weekday: WttlistBox: pc-rail-barnham period: 1930 MF year: 1930 On Mon, May 10, 2010 at 5:32 PM, grahamj42 graham...@orange.fr wrote: During my tests, I specified all the attributes of the relations, although I know I don't need to be so

Re: [symfony-users] How to specify wich input or button is gonna validate my form

2010-05-11 Thread Tom Haskins-Vaughan
Use javascript to disable the form submission when you click the Retour button On Tue, May 11, 2010 at 3:40 AM, François calv...@gmail.com wrote: Hi, I have a little problem, here how my code looks like : form action=?php echo url_for('create_account'); ? method=post        fieldset        

Re: [symfony-users] Re: Doctrine won't load 3-level heirarchy as data fixture

2010-05-11 Thread Tom Haskins-Vaughan
) and then it loaded. This is an area that really needs documenting; I would never have thought to concatenate the keys at the two levels above, and the code is pretty opaque. The aim of 'less magic' in Symfony 2.0 is a good one, in my opinion. Regards, Graham On May 11, 2:28 pm, Tom Haskins

Re: [symfony-users] Re: Doctrine won't load 3-level heirarchy as data fixture

2010-05-11 Thread Tom Haskins-Vaughan
than the fixture tag. Another issue stemming from lack of documentation. Thanks, again. On May 11, 4:45 pm, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: It's not really a case of concatenating. It's just a case of using the key of the parent object. It could be anything really.The

Re: [symfony-users] problem with plugin install

2010-05-11 Thread Tom Haskins-Vaughan
Did you enable them in your ProjectConfiguration class? On Tue, May 11, 2010 at 10:08 AM, . sziget...@gmail.com wrote: Hi!  I use the (1.4.4) Symfony, but I can't manage none of the plugins to install.  symfony plugin:install (one of the plugins)  ,the result for this:   plugin    

Re: [symfony-users] Doctrine and Guard Group problem

2010-05-11 Thread Tom Haskins-Vaughan
How would you do this in SQL? On Tue, May 11, 2010 at 3:58 AM, Laurent DELAGE laur...@2lage.org wrote: Hi all ! I've a problem more specificaly with doctrine. I've never solved it the right way. I want to get all users, but those who have a particular permission, that i know only by mail.

[symfony-users] Doctrine versionable on whole project

2010-05-10 Thread Tom Haskins-Vaughan
Hi all, I would like to use some kind of versioning over a complete schema rather than a single table. I'd like to to something like the Doctrine Versionable behaviour, but using a global revision number instead, similar to subversion. Has anyone done anything like this? Thanks, Tom -- If

Re: [symfony-users] Doctrine won't load 3-level heirarchy as data fixture

2010-05-10 Thread Tom Haskins-Vaughan
Can you show us your code? On Mon, May 10, 2010 at 10:51 AM, grahamj42 graham...@orange.fr wrote: I'm trying to build a simple app to help me learn Symphony. I have a Parent-Child-Grandchild set of objects. The model builds correctly and the tables are created with the appropriate foreign key

[symfony-users] Do doctrine record event listeners use transactions

2010-05-10 Thread Tom Haskins-Vaughan
Hi all, Having read the chapter in More with symfony 1.3 1.4 on Doctrine Behaviours: http://www.symfony-project.org/more-with-symfony/1_4/en/08-Advanced-Doctrine-Usage I just have a quick question. When you use the doctrine event listeners, are the resulting inserts/updates wrapped in a

Re: [symfony-users] Undefined offset?

2010-05-03 Thread Tom Haskins-Vaughan
What does your select statement look like? On Sun, May 2, 2010 at 5:43 PM, Parijat Kalia kaliapari...@gmail.com wrote: Hey guys, I have a DB table called configurations , that has the following columns config_id -tiny int   auto_incremented and primary key admin_id   varchar not null

Re: [symfony-users] How to customize generate-module?

2010-05-03 Thread Tom Haskins-Vaughan
Did you try symfony generate:module frontend mymodule? On Mon, May 3, 2010 at 7:35 AM, saki sakrame...@gmail.com wrote: Hi! I use the next command to generate a new module: symfony doctrine:generate-module --with-show --non-verbose-templates frontend xy xyz Unfortunately after this, I have

Re: [symfony-users] html in toString?

2010-05-02 Thread Tom Haskins-Vaughan
I would use helpers rather than putting html in the model: // in MyUserHelper.php: function user_format(User $user) { return 'strong'.$user-name.'/strong'; } // In your template: echo user_format($user); On Sun, May 2, 2010 at 5:10 AM, Daniel Lohse annismcken...@googlemail.com wrote: That

Re: [symfony-users] Automated Database Check

2010-04-30 Thread Tom Haskins-Vaughan
+1, I'd use Ajax for this. On Thu, Apr 29, 2010 at 8:01 PM, Julian Reyes julian.reyes.escri...@gmail.com wrote: you can make a ajax script with a request time (1 minute is a good time) for check in the database -- If you want to report a vulnerability issue on symfony, please send it to

Re: [symfony-users] I'm a newbie, I want to know something about cache

2010-04-30 Thread Tom Haskins-Vaughan
Welcome! Typically, with a question like that you'd get a suggestion like RTFM, but since you're new, here's a freebie: Either manually delete the relevant file (or all files) in the symfony/cache directory or run the command symfony cc. On Fri, Apr 30, 2010 at 1:54 AM, rimoe meiyo...@gmail.com

Re: [symfony-users] Re: i18n with technical names instead of text

2010-04-30 Thread Tom Haskins-Vaughan
I've been thinking about using 'keys' instead of full sentences: echo __('layout.greeting'); But is this an acceptable/symfony way to do it? On Fri, Apr 30, 2010 at 10:45 AM, rafaelgou rafael...@gmail.com wrote: You can simply user: _('mainPage.linkToLogin' ) in your code. But if you

Re: [symfony-users] Re: i18n with technical names instead of text

2010-04-30 Thread Tom Haskins-Vaughan
) russmon...@gmail.com wrote: On Apr 30, 7:37 pm, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: I've been thinking about using 'keys' instead of full sentences:   echo __('layout.greeting'); But is this an acceptable/symfony way to do it? Symfony won't tell you off if you do, it's up

Re: [symfony-users] Re: Symfony 1.4 - sfOutputEscaperObjectDecorator::__toString()

2010-04-25 Thread Tom Haskins-Vaughan
Try removing the closing tag. If there's any white space after the closing tag it can sometimes cause problems. On Sat, Apr 24, 2010 at 2:00 PM, Dale Attree dale.att...@gmail.com wrote: A closing php tag. On Apr 24, 1:27 pm, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: What's

Re: [symfony-users] Symfony 1.4 - sfOutputEscaperObjectDecorator::__toString()

2010-04-24 Thread Tom Haskins-Vaughan
What's on your line /project/apps/manager/templates/layout.php on line 15? On Tue, Apr 20, 2010 at 2:24 AM, Dale Attree dale.att...@gmail.com wrote: Hi everyone, I downloaded Symfony 1.4.4 from SVN and did the setup as per the tutorial. When I try to access any of my modules, I get the

Re: [symfony-users] Re: How to access generator.yml variables in view ?

2010-04-24 Thread Tom Haskins-Vaughan
You could add a slot to the layout and then set it from the generated modules. On Fri, Apr 23, 2010 at 12:50 PM, Richtermeister nex...@gmail.com wrote: If you're already inside the generated module, you should have access to the configuration class. that should contain all the info from the

Re: [symfony-users] Re: organizing partials in folders

2010-04-17 Thread Tom Haskins-Vaughan
As far as I know there is indeed a forum. I guess enough people are happy with the mailing list to keep it ticking over ;-) On Fri, Apr 16, 2010 at 5:57 PM, Joshua houseaddi...@gmail.com wrote: god i freaken hate these group nonsense. why can't symfony guys spring for a real forum? mistake in

Re: [symfony-users] call javascript from actionsclass

2010-04-16 Thread Tom Haskins-Vaughan
Can you not just output the options with PHP as HTML in the first page call? On Fri, Apr 16, 2010 at 5:29 AM, kim thechosendra...@gmail.com wrote: hello this should be a simple question but i really don't find the solution on the internet I want to start a javascript function from my

Re: [symfony-users] Re: Question about routing

2010-04-16 Thread Tom Haskins-Vaughan
Did you enable the plugin in the Project config? On Fri, Apr 16, 2010 at 11:52 AM, Javier Garcia tirengar...@gmail.com wrote: I don't know if it's related, but i'm gettin also this error after clicking on 'Register' button: Fatal error: Class 'sfGuardExtraMail' not found in /opt/lampp/htdocs/

Re: [symfony-users] schema query problem-- 2 tables only generated from mysql- please help

2010-04-16 Thread Tom Haskins-Vaughan
Try: ... -leftJoin('p.User u') ... Tom On Fri, Apr 16, 2010 at 2:46 PM, Andro Fumero fugitive...@yahoo.com wrote: Schema.yml Im just new to Symfony. please help.--- wasted whole day fixing this.

Re: [symfony-users] symfony 1.2 db connections timing out

2010-04-14 Thread Tom Haskins-Vaughan
I think I came across this after trying to download a very large file ~100MB between db calls. I don't remember how I fixed it, but I think I just tried to reconnect manuallly to the db. I'll have a dig around and see what I can come up with. Tom On Tue, Apr 13, 2010 at 12:55 AM, Slavka

Re: [symfony-users] sfWidgetFormSelectDoubleList order of items?

2010-04-14 Thread Tom Haskins-Vaughan
How do you see this working from a user's point of view? What order is supposed to be recorded? I mean how do you anticipate telling the form the correct order? Would it not be better to do the songs for one gig at a time and just click to add a song in the order which you want to store them. You

Re: [symfony-users] symfony 1.2 db connections timing out

2010-04-14 Thread Tom Haskins-Vaughan
, Apr 14, 2010 at 10:16 PM, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: I think I came across this after trying to download a very large file ~100MB between db calls. I don't remember how I fixed it, but I think I just tried to reconnect manuallly to the db. I'll have a dig around

Re: [symfony-users] Re: subdomain-based affiliate programme for ecommerce site

2010-04-12 Thread Tom Haskins-Vaughan
/config/ app.yml view.yml settings.yml /affiliatename/   #override your defaults here   view.yml Might be worth looking into before engineering it yourself. On Apr 8, 2:35 am, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: Hi there, I'm working on an ecommerce site

Re: [symfony-users] help_language

2010-04-12 Thread Tom Haskins-Vaughan
# apps/frontend/config/settings.yml all: .settings: default_culture: it_IT http://www.symfony-project.org/jobeet/1_4/Doctrine/en/19 On Mon, Apr 12, 2010 at 10:42 AM, safa boubekri boubekri.s...@gmail.com wrote: hello  how can i  change the language of my project from english to an

Re: [symfony-users] Re: subdomain-based affiliate programme for ecommerce site

2010-04-09 Thread Tom Haskins-Vaughan
? On 8 dub, 03:35, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: Hi there, I'm working on an ecommerce site that will eventually have an affiliates programme that will work like so:   * There will be several affiliates.   * Each affiliate will be able to 'skin' the site by adding

Re: [symfony-users] Re: Symfony 1.4 Switching among multiple databases

2010-04-08 Thread Tom Haskins-Vaughan
If you will be manually setting up each database, then you can just use multiple connections in your databases.yml file. On Thu, Apr 8, 2010 at 4:23 AM, MP maria.pasc...@gmail.com wrote: Hello all again, really nobody has answer for this...? Please, if somebody knows it I would be very glad

[symfony-users] subdomain-based affiliate programme for ecommerce site

2010-04-07 Thread Tom Haskins-Vaughan
Hi there, I'm working on an ecommerce site that will eventually have an affiliates programme that will work like so: * There will be several affiliates. * Each affiliate will be able to 'skin' the site by adding their own css stylsheet. * For each purchase on the website the affiliate

Re: [symfony-users] Re: How would you reverse the notnull:true in a schema of a plugin?

2010-04-03 Thread Tom Haskins-Vaughan
On Apr 2, 5:27 am, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: Why don't you just store the email in the username field? On Thu, Apr 1, 2010 at 9:07 AM, Javier Garcia tirengar...@gmail.com wrote: Hi, sfGuardUser model of sfDoctrineGuardPlugin is defined this way: sfGuardUser

Re: [symfony-users] How would you reverse the notnull:true in a schema of a plugin?

2010-04-01 Thread Tom Haskins-Vaughan
Why don't you just store the email in the username field? On Thu, Apr 1, 2010 at 9:07 AM, Javier Garcia tirengar...@gmail.com wrote: Hi, sfGuardUser model of sfDoctrineGuardPlugin is defined this way: sfGuardUser:  actAs: [Timestampable]  columns:    id:      type: integer(4)      

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

2010-03-30 Thread Tom Haskins-Vaughan
nights :) Does that help? Let me know if you have any specific questions and I'd be happy to help more. Daniel On Mar 29, 5:56 pm, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: (sf1.4/Doctrine) Hi all, Let's say I'm developing an ecommerce solution. I have the following models

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

2010-03-30 Thread Tom Haskins-Vaughan
, while serializing propel objects is both tricky and introduces potential for stale data. That help? Daniel On Mar 30, 6:09 am, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: Thanks, guys! That's a great help. I will most probably take you up on your offer of help

[symfony-users] OO conceptual advice

2010-03-29 Thread Tom Haskins-Vaughan
(sf1.4/Doctrine) Hi all, Let's say I'm developing an ecommerce solution. I have the following models: Order - takes a shopping cart all the way through to an actual order. OrderItem - link between the Order and one or more Products Product - a catalogue of products Promotion - e.g., buy one

Re: [symfony-users] Re: CMS, Catalog/Cart - Users and Administration ???

2010-03-27 Thread Tom Haskins-Vaughan
I'd recommend sfGuard. It's very well supported among many plugins On Fri, Mar 26, 2010 at 12:03 PM, Bill P. maxar...@yahoo.com wrote: I'm not married to anything yet. Mainly trying to understand what or how I would do such a thing. I want a central user namagement that will allow CMS roles

Re: [symfony-users] XML template for API call

2010-03-27 Thread Tom Haskins-Vaughan
/0cACgkQIdlZQSANiub0VwCfQ3rlAppjthKi1q7ySHa4yc33 q6MAoJYsuitJ659vXHsV3oDXdXkre8D0 =ypYy -END PGP SIGNATURE- On Sat, Mar 27, 2010 at 2:25 PM, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: Hi, I need to access the UPS shipping API for an ecommerce site. I'm writing a class for this: sfShippingServiceUps. Now

Re: [symfony-users] XML template for API call

2010-03-27 Thread Tom Haskins-Vaughan
/Linux) Comment: Use GnuPG with Firefox : http://getfiregpg.org (Version: 0.7.10) iEYEARECAAYFAkuuBFMACgkQIdlZQSANiuZ7VgCfSlZDzY/4ooYvNGVrj4H2Hn4s deMAnja+e4smQhqbFlupiuHv+Moy1Yiq =YBH6 -END PGP SIGNATURE- On Sat, Mar 27, 2010 at 3:03 PM, Tom Haskins-Vaughan t...@templestreetmedia.com

Re: [symfony-users] Re: XML template for API call

2010-03-27 Thread Tom Haskins-Vaughan
, there's this: http://www.symfony-project.org/plugins/sfUPSShippingPlugin Daniel On Mar 27, 6:41 am, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: Thanks, Alecs. I'll take a look On Sat, Mar 27, 2010 at 9:12 AM, Alexandru-Emil Lupu gang.al...@gmail.com wrote: -BEGIN PGP

Re: [symfony-users] apostrophePlugin is now internationalized

2010-03-26 Thread Tom Haskins-Vaughan
Looks great! But this worries me a little: By default, a new Symfony 1.4 project escapes all output that is emitted in templates. Apostrophe's strategy is to store valid UTF-8 encoded HTML to begin with, addressing this issue in validators. Currently you must disable output escaping in

Re: [symfony-users] no web debug toolbar in symfony 1.2.12

2010-03-25 Thread Tom Haskins-Vaughan
Is it set for the correct environment (prod, dev, etc)? Did you clear your cache? symfony cc Does it appear if you change it to true instead of on? I don't remember when that change happened. On Thu, Mar 25, 2010 at 1:05 PM, Peter Peltonen peter.pelto...@gmail.com wrote: I would like to use

Re: [symfony-users] no logs created in symfony 1.2.12

2010-03-25 Thread Tom Haskins-Vaughan
Does the logdirectory have write permissions for the web server user? On Thu, Mar 25, 2010 at 12:55 PM, Peter Peltonen peter.pelto...@gmail.com wrote: I have a problem with my symfony 1.2.12 installation that I inherited from another developer: no logs are being created in the log directory.

Re: [symfony-users] Re: Best way to store app settings that are configurable from administrator interface

2010-03-25 Thread Tom Haskins-Vaughan
Perhaps. I just wanted to make it clear that I was commenting on Adi's email rather than Alex's :) On Thu, Mar 25, 2010 at 9:04 AM, Gorka glopezdeto...@gmail.com wrote: Wouldn't Alex's solution also need a cache reload? On 24 mar, 13:58, Tom Haskins-Vaughan t...@templestreetmedia.com wrote

Re: [symfony-users] How to implement a basic filter on frontend with Doctrine sf1.4??

2010-03-25 Thread Tom Haskins-Vaughan
+1 I've always been interseted in doing this On 3/25/10, trankh juliend1...@gmail.com wrote: Hello, I am a beginner to symfony. I haven't found a correct explanation for How to implement a basic filter on frontend with Doctrine?? I tried to tweek admin backend filters and copy to frontend

Re: [symfony-users] for the sfGuardPlugin, how do determine from within layout.php if a user has authenticated

2010-03-25 Thread Tom Haskins-Vaughan
I'm pretty sure a user instance is created regardless of whether you're logged in or not, or even whether or not you're using sfGuard. On 3/25/10, michael hodges mhodg...@gmail.com wrote: Hello all, Another newbie question. I've spent several days hunting for a way to determine if a user has

Re: [symfony-users] Best way to store app settings that are configurable from administrator interface

2010-03-24 Thread Tom Haskins-Vaughan
I think the problem you're going to run into here is that the cache needs to be reloaded each time you make a change to the app.yml file. So perhaps it's best to have a config table in your database. On Tue, Mar 23, 2010 at 11:04 AM, Adi VELICU adi.vel...@gmail.com wrote: Hello, I am new to

Re: [symfony-users] Best way to store app settings that are configurable from administrator interface

2010-03-24 Thread Tom Haskins-Vaughan
Sorry Alex, this was meant to arrive before yours ;-) On Wed, Mar 24, 2010 at 8:57 AM, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: I think the problem you're going to run into here is that the cache needs to be reloaded each time you make a change to the app.yml file. So perhaps it's

Re: [symfony-users] Re: Accessing user session from a custom routing class

2010-03-24 Thread Tom Haskins-Vaughan
Looks like there's some good stuff here: http://www.symfony-project.org/more-with-symfony/1_4/en/02-Advanced-Routing On Wed, Mar 24, 2010 at 11:28 AM, Alan Bem alan@gmail.com wrote: On Wed, Mar 24, 2010 at 4:08 PM, HiDDeN davidmoralesmoj...@gmail.com wrote: I have tried sfRoute::$context

Re: [symfony-users] Losing data upon creating new tables

2010-03-24 Thread Tom Haskins-Vaughan
http://www.symfony-project.org/doctrine/1_2/en/07-Migrations I don't know if there are any major differences for sf1.4. On Wed, Mar 24, 2010 at 4:53 PM, Parijat Kalia kaliapari...@gmail.com wrote: Migrations? I haven't yet heard of them. Does the book cover it by any chance? Please give me

Re: [symfony-users] Re: how get an object saved in session

2010-03-23 Thread Tom Haskins-Vaughan
What does this produce: var_dump($a); On Tue, Mar 23, 2010 at 11:57 AM, Jérémie jeremie.symf...@gmail.com wrote: Belgacem TLILI wrote: now i have save the form fiels in an array then i have save this array in the user session $forms1= Array($form-getValues());

Re: [symfony-users] Re: how get an object saved in session

2010-03-23 Thread Tom Haskins-Vaughan
But is it an array or an object with an array interface? On Tue, Mar 23, 2010 at 12:19 PM, Belgacem TLILI belgacem0...@gmail.com wrote: $a[0] means it will return the 1st box of my array, On Mar 23, 5:02 pm, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: What does this produce

Re: [symfony-users] Date format: es_ES

2010-03-23 Thread Tom Haskins-Vaughan
which widget are you using? On Tue, Mar 23, 2010 at 2:14 PM, Javier Garcia tirengar...@gmail.com wrote: Hi, in the Edit action, i have a date widget with a format month/day/year. I would like that the format of that date widget was day/month/year. I have followed the manual, and i now i

Re: [symfony-users] Accessing user session from a custom routing class

2010-03-23 Thread Tom Haskins-Vaughan
+1 On Tue, Mar 16, 2010 at 1:17 PM, Jose Antonio Pio Gil joseto...@gmail.com wrote: I have the same question about it! 2010/3/16 HiDDeN davidmoralesmoj...@gmail.com Is there some way to acces the user object from a custom routing class? I'd like to add a parameter when generating a url,

Re: [symfony-users] about i18n for template

2010-03-19 Thread Tom Haskins-Vaughan
Hey Andy, That's something that I have often thought of but never tackled. Have you tried using something like %HELLO% instead of [HELLO]? On Thu, Mar 18, 2010 at 9:40 PM, Andy Cheung andychi...@gmail.com wrote: Hello, I would like to ask if it is possible to return another language

Re: [symfony-users] Re: Question about an AJAX link and the dev and prod enviroments

2010-03-16 Thread Tom Haskins-Vaughan
What if client has javascript disabled? Then you should create a normal link first a href=?php echo url_for(miembros/filtrar?page=2); ?Next/a And then use javascript to change it if it is available. On Tue, Mar 16, 2010 at 9:06 AM, Massimiliano Arione garak...@gmail.com wrote: What if

Re: [symfony-users] Doctrine - How can I make innerJoin query in that case ?

2009-12-31 Thread Tom Haskins-Vaughan
You need to specify this in your schema: City: columns: city: type: string(255) Travel: columns: id_city_departure: type: integer id_city_arrival: type: integer relations: DepartureCity: class: City local: id_city_departure foreign: id

[symfony-users] Re: Re-open Doctrine Connection was Re: Server has gone away

2009-10-18 Thread Tom Haskins-Vaughan
OK, guys. Sorry for not getting back to you earlier but I had to put this project on the back burner for a while while I worked on a another project (Code Igniter -- eurgh!). Anyway, I managed to reconnect to the database after I downloaded the file by adding the following: $conn =

[symfony-users] Re: Re-open Doctrine Connection was Re: Server has gone away

2009-09-30 Thread Tom Haskins-Vaughan
, 2009 at 8:59 AM, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: OK, so assuming I have in fact lost a connection during a script due to inactivity, is there a way to open a doctrine connection in the middle of a script, or is that just all taken care of at initialization? TIA, Tom

[symfony-users] Re: Re-open Doctrine Connection was Re: Server has gone away

2009-09-30 Thread Tom Haskins-Vaughan
Thanks, Mariusz. I saw that page, but I wan't sure how it integrates with symfony. I guess I'll look into it further. On Wed, Sep 30, 2009 at 9:29 AM, Mariusz Sasinski sasin...@weboticx.com wrote: On Wednesday 30 September 2009 09:16:02 am Tom Haskins-Vaughan wrote: Sorry to bump this, guys

[symfony-users] Re: Re-open Doctrine Connection was Re: Server has gone away

2009-09-30 Thread Tom Haskins-Vaughan
cron jobs - then couldn't you: 1) Use standard ftp commands (rather than via PHP) to download the files in the cron job itself. 2) In the same cron job - after the files have been transferred - start the PHP side to process the files. On Wed, 30 Sep 2009 15:16:02 +0200, Tom Haskins-Vaughan t

  1   2   3   4   >