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] Re: My question about doSelect and Counting Grouped Elemnts

2010-05-24 Thread Tom Ptacnik
echo count($links_ambito); On 18 kvě, 21:29, Germán Pablo Martins frib...@gmail.com wrote: Hi! I have a Criteria using GroupsByColumn and the thing is I want to show on the template the number of rows (elements) on every group. For example I'm grouping by Country fied and on the template I

[symfony-users] Re: admin i18n doubt

2010-05-24 Thread Tom Ptacnik
For this use the messages.xx.xml file You can see that if the label is showed in the template by __('Some text', array(), 'admin') admin file is used if __('Some text', array(), 'messages') or __('Page admin', array(), 'messages') of __('Some text') then sf_messages_xx.xml is used On 20

[symfony-users] Re: problem rendering embedded form when in edit

2010-05-24 Thread Tom Ptacnik
Show some code of how you embed the form. On 21 kvě, 16:26, Tofuwarrior p...@clearintent.co.uk wrote: Hi, Anyone give me any pointers? I'm stumped and not really sure where to look. Would really appreciate any help anyone could give, deadline is looming :-( I have an embedded form  that

[symfony-users] Re: primary key _forms

2010-05-24 Thread Tom Ptacnik
at default the id is sfWidgetFormInputHidden() ... change it to sfWidgetFormInputText or create some sfWidgetFormPlain (http:// code.google.com/p/uninformed/source/browse/trunk/lib/ sfWidgetFormPlain.class.php?spec=svn112r=112) On 21 kvě, 17:03, safa boubekri boubekri.s...@gmail.com wrote:

[symfony-users] Re: Dumping and loading passwords (re-hashing)

2010-05-24 Thread Tom Ptacnik
I can't check in the changes means, that you can't update the plugin via svn? I fso, than you can do your changes in the model/doctrine/ sfDoctrineGuardPlugin sfGuardUser.class.php don't you? .. then this problem will be solved. On 21 kvě, 18:12, ashton ahonn...@gmail.com wrote: I have a

[symfony-users] Re: edit id in admin

2010-05-24 Thread Tom Ptacnik
So the problem is, that symfony always write the autoincrement id or it doesn't insert id at all? On 21 kvě, 19:51, 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,

[symfony-users] Re: embedForm problem in edit view

2010-05-24 Thread Tom Ptacnik
It's strange. I embed all my subforms in the configure method. // Embed paymentinfo form $this-embedForm('paymentinfo', new PaymentinfoForm($this-getObject()- getMyPaymentinfo())); On 23 kvě, 13:01, Tofuwarrior p...@clearintent.co.uk wrote: UPDATE: I've found that the problem seems to be

[symfony-users] Re: How to retrieve the value of a field in configure() function

2010-05-24 Thread Tom Ptacnik
I think callback is the right way. http://blog.rajatpandit.com/2010/01/01/using-sfvalidatorcallback/ On 22 kvě, 17:48, Stéphane stephane.er...@gmail.com wrote: Wouldn't it be good too to validate them as not required then use an sfValidatorCallback using $this(form)-setPostValidator(new

[symfony-users] Re: Pagination non-database list

2010-05-24 Thread Tom Ptacnik
Where do they come from? On 22 kvě, 23:52, Ricign ric...@gmail.com wrote: Hi, What is the best way to do pagination for list of object. The objects are't come from database. Thanks, Rick -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] Re: Ajax component depending on request uri

2010-05-24 Thread Tom Ptacnik
I can't imagine how to get it via ajax without an action :) On 21 kvě, 02:10, phiamo phi...@googlemail.com wrote: Hi, i think i have a common thing here but searching newsgroups and docs didnt help. i have a component which depents on various request parameter (not directly but classes

[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

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

[symfony-users] Re: language_backend

2010-05-20 Thread Tom Ptacnik
Did you set i18n: on in config/settings.yml http://www.symfony-project.org/book/1_2/13-I18n-and-L10n On 19 kvě, 11:16, safa boubekri boubekri.s...@gmail.com wrote: hello  every body i add in setting.yml of backend   i18n:            true    default_culture:   fr_FR    standard_helpers:

[symfony-users] Re: Question about paths

2010-05-20 Thread Tom Ptacnik
I think you have badly set document_root on you production server. Don't you? Or something like this... On 19 kvě, 18:13, Javier Garcia tirengar...@gmail.com wrote: Hi, in the cover page (login, register...) of my app i have this line: link rel=stylesheet type=text/css

[symfony-users] Re: language_backend

2010-05-20 Thread Tom Ptacnik
Oh, yea, sorry there must be true (not on) ... I took it from the old documentation. Do you have sf_admin.fr.xml in the \apps\Backend\i18n directory now? On 20 kvě, 11:40, safa boubekri boubekri.s...@gmail.com wrote: in my setting.yml,  i  must put   true i dont  kows what is wrong -- If

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: How to show the validation errors inside the modal box?

2010-05-17 Thread Tom Ptacnik
.. } On 13 kvě, 20:36, Javier Garcia tirengar...@gmail.com wrote: It desappears. Javi On May 7, 8:31 am, Tom Ptacnik to...@tomor.cz wrote: What happen if there are no errors on the form in modal box? The modal box remain showed with some information like thank you for your

[symfony-users] Re: I cannot see the images in the browsers of Windows XP (VirtualBox)

2010-05-17 Thread Tom Ptacnik
What does it mean Can't see ? They are not showed in the browser? - On other platform (ie linux) they are show on the sam page? or can't see means something else? On 14 kvě, 13:37, Javier Garcia tirengar...@gmail.com wrote: Hi, I've some browsers installed in VirtualBox/Windows XP, and I can

[symfony-users] Re: IP blocking for a specific page element in a symfony 1.0 project

2010-05-17 Thread Tom Ptacnik
Yes, you can add the relevant ip's into the app.yml. Then in the appropriate action I would do sometnig like if ($actualIP is in_array(config-(app_denied_ips)) { $this-hideEmail = true} And you have to customize you template ?php if (!$hideEmail) echo $email ? On 13 kvě, 10:44, blurmy23

[symfony-users] Re: In the Jobeet tutorial day 4 what is the 'a' parameter to createQuery do?

2010-05-17 Thread Tom Ptacnik
It's only an alias. So usualy when i create query from users I use -createQuery('u'), from Pages -createQuery('p') if from Pages and Programs in one query ... -createQuery('pa'). -from('Programs pr') On 15 kvě, 22:42, Garry Freemyer garry...@pacbell.net wrote: I looked over

[symfony-users] Re: passing values as query string to a form

2010-05-17 Thread Tom Ptacnik
You can create your own route for this form (with customer id), then read the id from the url On 16 kvě, 18:20, TechieMe aru...@gmail.com wrote: basically i have two modules Customers and logs, This is basically CRM tool. it used to record how many times we contacted the customer This is

[symfony-users] Symfony Cache grows to much?

2010-05-17 Thread ToM
Hello All, I've got a question about automatic file cache cleaning in symfony 1.1.x. The problem is that when all the cache files stored in ./cache folder grows the apache server has problems with parsing them consuming to much RAM. I've found in sfCache API that we can set lifetime and

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

[symfony-users] Re: Fatal error: Cannot redeclare class BaseBrandsPeer

2010-05-13 Thread Tom Ptacnik
It means that you have the class BaseBrandsPeer already defined somewhere else (in some file). You have to find it. On 11 kvě, 08:14, Mikay imi...@gmail.com wrote: Hi,guys I'm using symfony 1.0 with propel,and when I visit one page , I got this error,  Fatal error: Cannot redeclare class

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

2010-05-13 Thread Tom Ptacnik
I think, it's because ./symfony doctrine:data-load don't delete existing data. Then if you run it, the sfGuardUser_admin with username admin already exists and it's not created.. then the fixtures can't use sfGuardUser_admin object. What do you think, could it be this? On 12 kvě, 12:14, Etienne

[symfony-users] Re: Alternate layout and a tables doubt (2 doubts in one mail!)

2010-05-13 Thread Tom Ptacnik
an actions and templates folder generated...by Eno's suggestion, I should go and make a change at the configs module and I am all set.but then now there is only one config with a view.yml pagelet me know guys! On Wed, May 12, 2010 at 2:52 AM, Tom Ptacnik to...@tomor.cz wrote: It's

[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

[symfony-users] Re: Question about choice widget

2010-05-12 Thread Tom Ptacnik
What about something like ul.radio_list li {display: inline} On 10 kvě, 15:41, Javier Garcia tirengar...@gmail.com wrote: On Mar 29, 3:09 pm, Massimiliano Arione garak...@gmail.com wrote: You jsut need to customize your css, forcing your li's as inline. No need to modify your template or

[symfony-users] Re: Question about filter forms: search for exact words

2010-05-12 Thread Tom Ptacnik
:10, Javier Garcia tirengar...@gmail.com wrote: Thanks Tom, but after writing the function you say (addProvinciaColumnQuery()) and clicking on the Filter button I get this error : 500 | Internal Server Error | Doctrine_Connection_Mysql_Exception SQLSTATE[HY093]: Invalid parameter number

[symfony-users] Re: Missing parent::configure() in built form filter

2010-05-12 Thread Tom Ptacnik
If you want to modify the class in the plugin folder. Insert the line //$this-widgetSchema['zone_id']-setOption( 'with_empty', false );// into the setup() method. Then you don't need to call parent::configure() in the class in which is in the lib/filter/ doctrine/ptEquipmentPlugin On 11 kvě,

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
WttListWtt: pc-rail-barnham-1930-weekday: WttlistBox: no_particular_key period: 1930 MF year: 1930 On Tue, May 11, 2010 at 10:20 AM, grahamj42 graham...@orange.fr wrote: Tom, Thanks, that fixed the key error. I had to change the date value to '1930-01-01' (including the quotes

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

[symfony-users] Re: Question about filter forms: search for exact words

2010-05-10 Thread Tom Ptacnik
Create your own addXXXColumnQuery .. where XXX is your column name in your MemberFormFilter class. something like: public function addNameColumnQuery($query, $field, $value) { $fieldName = $this-getFieldName($field); if (!empty($value)) {

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
in a transaction? Thanks. Tom ' -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com

[symfony-users] Re: two modules, one model

2010-05-07 Thread Tom Ptacnik
It looks it's not a problem - I've just tested it. Even the routing is solved by combining the model name and module name. I've used classic command symfony doctrine:generate-admin backend JobeetJob --module=job1 symfony doctrine:generate-admin backend JobeetJob --module=job2 On 4 kvě,

[symfony-users] Re: symfony 1.0 + forms

2010-05-07 Thread Tom Ptacnik
If you are new in Symfony, why not to start with the newest stable version - Symfony 1.4 ? On 4 kvě, 16:48, Anasteziya anastez...@gmail.com wrote: Hello! I'm new in symfony and try to understand how it works and work with it. I created the form by using form's helpers and want to call

[symfony-users] Re: Different form filters generated

2010-05-07 Thread Tom Ptacnik
I think the generator was changed a little bit...look on the dates... 1st filter... * @versionSVN: $Id: sfDoctrineFormFilterTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ 2nd filter ...* @versionSVN: $Id: sfDoctrineFormFilterTemplate.php 11675 2008-09-19 15:21:38Z fabien $

[symfony-users] Re: How can i get the SQL clause of that Doctrine_Query object?

2010-05-07 Thread Tom Ptacnik
echo $q-getSqlQuery(); //exit; On 5 kvě, 13:56, Javier Garcia tirengar...@gmail.com wrote: Hi, i have this code:   $this-lista_miembros = $this-filtro-buildQuery($valores_query);   var_dump($this-lista_miembros); var_dump outputs a Doctrine_Query object:     object(Doctrine_Query)[121]

[symfony-users] Re: Adding fields to a record

2010-05-07 Thread Tom Ptacnik
I like $record-setFieldName($value); if I can choose. On 6 kvě, 22:56, dan dan.wil...@gmail.com wrote: Hi all, A quick question: Which is better: $record-set('field_name', $value); or: $record-setFieldName($value); Cheers, Dan. -- If you want to report a vulnerability issue on

[symfony-users] Re: Adding custom :sf_format - incorrect headers sent

2010-05-04 Thread Tom Ptacnik
Did you test it in the production environment? .. The debug toolbar isn't added in prod so maybe this is the point? On 30 dub, 14:20, DEE jasond...@gmail.com wrote: 'csv' is not a supported default :sf_format within symfony's core, and this is a contenttype I wanted to serve up from a route

[symfony-users] Re: problem with error message being applied to the form field

2010-05-04 Thread Tom Ptacnik
Enter a Fee (2nd column) is an error for receipt_amount and it's showed as an global error? On 1 kvě, 09:27, Michael Hodges mhodg...@gmail.com wrote: Hello all, I'm hoping someone can point out my mistake.  For Symfony 1.4.4 with Doctrine I have a form to which I've added    

[symfony-users] Re: Can't select/validate day #31 in sfWidgetFormJQueryDate

2010-05-04 Thread Tom Ptacnik
I think there was/is a bug. Do you have the newest version of the plugin? On 1 kvě, 14:31, Adrien Mogenet adrien.moge...@gmail.com wrote: Hi all, I just noticed a strange bug using a sfWidgetFormJQueryDate, when I tried to select the 2010-12-31, it just doesn't pass... My code :

[symfony-users] Re: How overwrite addFiltersCriteria in symfony 1.4?

2010-05-04 Thread Tom Ptacnik
Do you really need all the values together? Can't you just create a few addXXXColumnQuery methods and create a query in parts? Example of my filter where I added the choice: class CommentFormFilter extends BaseCommentFormFilter { public function configure() {

[symfony-users] Re: Date shows up wrong in the admin generator list

2010-05-04 Thread Tom Ptacnik
Show us how did you set the date in the generator.yml. On 1 kvě, 23:02, fsateler fsate...@gmail.com wrote: I have an admin generator module for managing users in my application. I'm using sfGuardPlugin. The problem I'm facing is that for some reason symfony is parsing the date the wrong

[symfony-users] Re: Symfony 2 Documentation or Tutorials

2010-05-04 Thread Tom Ptacnik
;D On 2 kvě, 15:20, Fabian Lange fabian.la...@symfony-project.com wrote: Yeah there are some books out on it. You'll find them next to the PHP 6 Documentation, or the Windows Server 2015 guides. I really appreciate that you folks want to stay up to date, but Symfony 2 has no shape that one

[symfony-users] Re: foreign key and sfDoctrineGuardPlugin

2010-05-04 Thread Tom Ptacnik
Yes you can do a relation between a user and another table object. Is that what you want? Please describe you question again.. On 3 kvě, 14:37, Sela tzi...@gmail.com wrote: I want to associate a table with the user ID generated from sfDoctrineGuardPlugin when the user is logged in. I thought

[symfony-users] Re: Inheritance of many-to-many relation?

2010-05-03 Thread Tom Ptacnik
if you have your m:n relation defined correctly then simply by $video- getUsers(); On 2 kvě, 10:36, comb sa...@gmx.net wrote: anyone? :-( On 29 Apr., 08:01, comb sa...@gmx.net wrote: Hi! is there a tutorial on inheritance of many-to-many relations work? Assume the following

[symfony-users] Re: sfFormExtraPlugin - sfValidatorSchemaTimeInterval doesn't work

2010-05-03 Thread Tom Ptacnik
Try something like this if the validator doesn't work http://snipt.net/Tram/validation-for-a-date-range-with-to-date-field-not-mandatory/ On 29 dub, 15:12, John drskulls...@gmail.com wrote: Hi, I'm trying to validate two dates : the begin_date has to be before the end_date or else an error

[symfony-users] Re: sfDoctrineRouteCollection - pagination and joins (sf1.4)

2010-05-03 Thread Tom Ptacnik
Create and specify your own table_method On 29 dub, 20:53, BenL benlancas...@holler.co.uk wrote: Hi list, Is it possible to paginate the 'list' action generated by an sfDoctrineRouteCollection without selecting all the records first? If so, how? I can't see any documentation on the subject

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
Thanks for your input, Russ. I haven't used i18n much but I've taken over a CI project that uses keys rather than full sentences. I guess the benefit I was looking at is maintenance of the dictionaries, but I'll bear your advice in mind. Tom On Fri, Apr 30, 2010 at 1:48 PM, rooster (Russ

[symfony-users] Re: findBy order?

2010-04-29 Thread Tom Ptacnik
I think there isn't, but creating a custom query with orderBy is realy simple.. On 27 dub, 16:10, metaphist paulef...@gmail.com wrote: Is there a way to pass an ORDER BY to the Doctrine findBy method? Or do I have to create a custom query at that point? -- If you want to report a

[symfony-users] Re: Fix ID in data fixture yml

2010-04-27 Thread Tom Ptacnik
By which command are you trying to load fixtures? ... if by symfony doctrine:data-load, the old data stay in the db and therefore you can't insert another record with id 1 if you try symfony doctrine:build --all --and-load --no- confirmation then it should be ok, because the db will be erased

[symfony-users] Re: foreign key relations in admin generator

2010-04-26 Thread Tom Ptacnik
, but I can't find it What's wrong? thanks On 23 Apr, 09:29, Tom Ptacnik to...@tomor.cz wrote: I see your schema and there is a relation 1:N, but I think badly specified - i think it should be - Ristorante has 1 ZoneCitta, ZonneCitta has N Ristorantes if so then you have to specify

[symfony-users] Re: The signin form appears even when i have the security set to false

2010-04-26 Thread Tom Ptacnik
Maybe security is set to true in the plugin/module config. On 25 dub, 15:12, Javier Garcia tirengar...@gmail.com wrote: Hi, i have installed sfDoctrineGuardExtraPlugin and when i try to execute an action from sfGuardRegister sfGuardForgotPassword i get the sfDoctrineGuardUser signin form.

[symfony-users] Re: sf directory problem

2010-04-26 Thread Tom Ptacnik
Is your Symfony project working? Can you see at least some homepage on the URL http://mysite or something like that? On 26 dub, 14:13, Tamas Amon sajta...@gmail.com wrote: Hello, I have the following line in my apache settings file: Alias /sf /usr/share/php/data/symfony/web/sf Then when I

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

[symfony-users] Re: how to JOIN TABLE for better performance?

2010-04-23 Thread Tom Ptacnik
An example how to do this is in Practical Symfony jobeet 1.4 (doctrine), but I don't remember the chapter.. On 21 dub, 15:11, comb sa...@gmx.net wrote: Hi Tables: Gig, Song and GigSong (many-to-many). I use a pager and in executeIndex I set up the Query:                 $q =

[symfony-users] Re: autogenerated id columns

2010-04-23 Thread Tom Ptacnik
You need some primary key ... so mark some column as primary and it woun't be autocreated. On 21 dub, 16:43, Tofuwarrior p...@clearintent.co.uk wrote: Is it possible to stop symfony/propel autogenerating id columns in my tables? I have the following schema and don't want id columns on the

[symfony-users] Re: foreign key relations in admin generator

2010-04-23 Thread Tom Ptacnik
: thanks tom.. yes, for these items I've got a M:N relation... so the solution suggested by Arnold isn't good for my problem... do you have some hints to show text labels and not IDs in this particular case? thanks a lot have a nice day On 22 Apr, 08:12, Tom Ptacnik to...@tomor.cz wrote

[symfony-users] Re: frontend: get labels (not id) from child tables

2010-04-23 Thread Tom Ptacnik
Responded in http://groups.google.com/group/symfony-users/browse_thread/thread/94c37bf0a9a26a1 On 22 dub, 10:23, SatBoy78 bruno.mat...@gmail.com wrote: thanks tom... I've got these tables: Ristorante:   connection: doctrine   tableName: ristorante   columns:     id:       type: integer

[symfony-users] Re: foreign key relations in admin generator

2010-04-22 Thread Tom Ptacnik
I think that this // Doctrine_Collection data : Array( 0 : Object(ZoneCitta) ) // means, that you have used a method which gives you a collection of objects (probably some 1:N or M:N relation) and not a single object. On 20 dub, 16:19, SatBoy78 bruno.mat...@gmail.com wrote: Hi I've tried to

[symfony-users] Re: frontend: get labels (not id) from child tables

2010-04-22 Thread Tom Ptacnik
You can do $mainObject-getChild()-getTitle() or something like that. Or you can create a __toString() method in your child object. If this will not work, you will have to give us more clues - how you template code and schema look like. On 21 dub, 10:55, SatBoy78 bruno.mat...@gmail.com wrote:

[symfony-users] Re: Oracle Clob return Resource id #3

2010-04-21 Thread Tom Ptacnik
You use getFirst() method ... you have only one record in the result Better would be something like $result-getContent(); ? And maybe better would be better this at all: $q = Doctrine::getTable('DocumentTplSection')- -createQuery('ds') -where('ds.id = ?', 7); $q-fetchOne(); On 19 dub,

[symfony-users] Re: sfDoctrineActAsTaggablePlugin Unknown method Video::addTag

2010-04-21 Thread Tom Ptacnik
I think problem was in the ProjectConfiguration.class.php - the plugin wasn't enabled..? On 20 dub, 22:59, comb sa...@gmx.net wrote: I got it  to work: I downloaded (instead of svn checkoutthe) the plugins tgz with the Download package-Link from the

[symfony-users] Re: Default culture in routing

2010-04-20 Thread Tom Ptacnik
I think you'll have to create two routes for every action - one for pl language (without pl in URL) and one for other languages (with language in URL) On 18 dub, 20:16, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: Hi I use i18n in symfony 1.4 My default culture is pl (set in

[symfony-users] Re: performance problem with sfDoctrinePage on symfony 1.2

2010-04-20 Thread Tom Ptacnik
Which line of code causes this performance problems? On 19 dub, 17:20, mehdi hadef mehdi.ha...@gmail.com wrote: Hi all, I have a performance problem on a page using sfDoctrinePager. It takes more than 5 seconds to display the page on local server. Let's see the code in my actions.class

[symfony-users] Re: help_foreign key

2010-04-19 Thread Tom Ptacnik
Where is the question? On 15 dub, 14:04, safa boubekri boubekri.s...@gmail.com wrote: hello   i need your help thank you very much in my schema  i have field    as    foreign  key  but in the forms i must  to write  this field but normaly it  will be  written automatically  because it is  

[symfony-users] Re: changed fields

2010-04-19 Thread Tom Ptacnik
Where do you need to check this? If you are using doctrine, than you can do use in model $this- getModified(true/false) method On 18 dub, 12:58, Tamas Amon sajta...@gmail.com wrote: Hello, Something s misunderstood? On 15 April 2010 15:02, Tamas Amon sajta...@gmail.com wrote: Hello,

[symfony-users] Re: configuration problem!?

2010-04-19 Thread Tom Ptacnik
What about symfony check_configuration.php script? On 15 dub, 14:38, Andris andris.ve...@gmail.com wrote: When issuing command: symfony propel:data-load it fails with notice -- Unable to find adapter for datasource [i2]. I use symfony 1.4.5-DEV with latest sfPropel15Plugin. (XAMPP 1.7.4 on

[symfony-users] Re: doctrine routing and slash problem - %2F

2010-04-19 Thread Tom Ptacnik
http://www.devcomments.com/Escape-2f-in-URL-solution-at105103.htm On 17 dub, 11:40, alexmm misiekaleksan...@gmail.com wrote: I database in column 'link' I have for example: documents/proposals documents/contracts And when I write ($link is an object which represents row in above table):

[symfony-users] Re: Colum alias in an aggregate query / Doctrine

2010-04-19 Thread Tom Ptacnik
This works for me. $q = $this-createQuery('p') -select('MAX(p.teid) as maxid'); return $q-fetchOne()-maxid; On 17 dub, 17:32, NOOVEO - Christophe Brun c.b...@nooveo.fr wrote: Hi Andrei, most unfortunately, it doesn't work either. My alias is still v__0 :o(

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

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 richard

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
Cool. Nice one. On Wed, Apr 14, 2010 at 9:41 AM, Richard U richard@gmail.com wrote: Thanks Tom I found a way of doing this... by killing the dead connection and creating a new one... Propel::close(); // kill existing $connection_cdb = Propel::getConnection(); // create new On Wed

<    1   2   3   4   5   6   7   8   9   >