[symfony-users] Re: [1.4] sfDoctrineActAsKeyValueStorePlugin with form values

2011-06-02 Thread Tom Boutell
)    home_address:      type: string(255)    telephone:      type: string(25) IronManApplication2011:  inheritance:    extends: Application    type: column_aggregation    keyField: object_type    keyValue: iron_man2011 So I came across Tom Boutell/P'unk Ave's plugin

[symfony-users] sfDoctrineActAsKeyValueStorePlugin: store extra data with Doctrine objects without schema changes

2011-04-12 Thread Tom Boutell
-aGet('seen_welcome', false); For more information see: http://trac.apostrophenow.org/wiki/sfDoctrineActAsKeyValueStorePlugin You do not need Apostrophe to use this plugin. Cheers! -- Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com -- If you want to report

[symfony-users] Re: Practical Symfony Jobeet Tutorial not working. slugify replaces view with the words 'Paris, France'

2011-03-18 Thread Tom W
cleared after creating that class? Cheers, Francesco On Thu, Mar 17, 2011 at 5:32 PM, Tom W tomwallac...@gmail.com wrote: Have rebuilt it from Day 4 5,  once I change routing.yml to include job_show_user: url: /job/:company_slug/:location_slug/:id/:position_slug It then can't find

[symfony-users] Re: Practical Symfony Jobeet Tutorial not working. slugify replaces view with the words 'Paris, France'

2011-03-18 Thread Tom W
I've solved this by remaking //lib/Jobeet.class.php in another text editor It was then picked up ok , some strange file bug perhaps On Mar 18, 9:24 am, Tom W tomwallac...@gmail.com wrote: Yes of course , first thing I did Please ignore my last post about routing.  Barking up the wrong tree

[symfony-users] Re: Practical Symfony Jobeet Tutorial not working. slugify replaces view with the words 'Paris, France'

2011-03-17 Thread Tom W
rules default_index: url: /:module param: { action: index } default: url: /:module/:action/* On Mar 16, 11:04 pm, Matt Gibson goth...@gothick.org.uk wrote: On 16 Mar 2011, at 15:28, Tom W wrote: I have exactly the same problem. Paris, France Fatal error: Class 'Jobeet' not found

[symfony-users] Re: Practical Symfony Jobeet Tutorial not working. slugify replaces view with the words 'Paris, France'

2011-03-17 Thread Tom W
framework. On Mar 16, 11:04 pm, Matt Gibson goth...@gothick.org.uk wrote: On 16 Mar 2011, at 15:28, Tom W wrote: I have exactly the same problem. Paris, France Fatal error: Class 'Jobeet' not found in /Applications/MAMP/htdocs/ sfprojects/jobeet/lib/model/doctrine/JobeetJob.class.php

[symfony-users] Re: Practical Symfony Jobeet Tutorial not working. slugify replaces view with the words 'Paris, France'

2011-03-16 Thread Tom W
I have exactly the same problem. Paris, France Fatal error: Class 'Jobeet' not found in /Applications/MAMP/htdocs/ sfprojects/jobeet/lib/model/doctrine/JobeetJob.class.php on line 19 I've created //lib/Jobeet.class.php OK but is that where it should be ? The SVN repository is interesting since

[symfony-users] Per-application schema.yml files

2011-02-27 Thread Tom Boutell
! -- Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com -- 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

[symfony-users] Apostrophe 1.5.1 released, makes everything perfect forever

2011-02-06 Thread Tom Boutell
filter dropdown * Author and category filters can be combined with other filters properly * Google Calendar URLs were often too long; imposed a character limit rather than a word limit to ensure this does not happen -- Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com

[symfony-users] SillyCMS updated to Symfony 2.0 PR5

2011-01-23 Thread Tom Boutell
, testing out more functionality and offering something that is tantalizingly close to useful (: Pull requests offering new features are quite welcome, I need the git experience anyway! -- Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com -- If you want to report a vulnerability

[symfony-users] Re: Grails to Symfony2 Benchmark

2011-01-19 Thread Tom Boutell
Mmm. His throughput was 3x higher with APC, and it does look like he enabled it correctly, but he was still pegging CPU and memory the whole time. I would have to study his specific code more to figure out if he's doing anything wrong for Symfony that he's doing right for Grails. On Jan 17, 4:58 

[symfony-users] Apostrophe 1.5 is out!

2011-01-18 Thread Tom Boutell
about it. (: -- Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com -- 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

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

[symfony-users] MINI HOWTO: implement a Twig extension in a bundle in Symfony 2

2011-01-11 Thread Tom Boutell
: class: Application\SillyCMSBundle\Twig\Extensions\WikiText tags: - { name: twig.extension } If you have problems, triple-check that your namespace paths are consistent. You can find the whole thing here: https://github.com/boutell/SillyCMS -- Tom Boutell P'unk Avenue

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] Re: A simple Wiki written in Symfony 2 (aka an interesting sandbox-derived practice project)

2011-01-11 Thread Tom Boutell
Update: this project now includes a Twig extension written as a Symfony bundle. The Twig extension implements a simple Wiki syntax. -- 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

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] Re: Three questions about Symfony 2 routes

2011-01-10 Thread Tom Boutell
That is what I have since done. It turns out that you can use -get to fetch the in-URL parameters as well as query string parameters, so you can still write actions that don't care what the route looks like, which I think is an important feature. So my third question is answered, but the first

[symfony-users] Re: A simple Wiki written in Symfony 2 (aka an interesting sandbox-derived practice project)

2011-01-10 Thread Tom Boutell
A further update: login and logout buttons are now implemented, and edit buttons shown only when logged in, thanks to answers from symfony-devs. -- 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

[symfony-users] Re: Three questions about Symfony 2 routes

2011-01-10 Thread Tom Boutell
All three questions have now been answered. I figured out the first two just now. #1 #2: Yes you can capture the leading /, and even a missing leading /. Also you can capture slashes (most useful in the final parameter). When I write: show: pattern: /:slug defaults: { _controller:

Re: [symfony-users] Grails to Symfony2 Benchmark

2011-01-09 Thread Tom Boutell
Claiming that similar graphs can be made in paintbrush is not helpful. If you click through to the original blog post that backs the article: http://cutiecode.maniacmansion.it/ He presents very complete source code and software and hardware specs and shows a good understanding of what he is

[symfony-users] Re: Minified JavaScript in Production

2011-01-09 Thread Tom Boutell
Apostrophe (a CMS plugin for Symfony, among other things) includes a minifier for JS and CSS which is integrated into Symfony so that whatever you have in view.yml, etc. will wind up as part of the minified bundle. I'm not an expert on Closure but I'm not sure whether you can count on JS code

Re: [symfony-users] Grails to Symfony2 Benchmark

2011-01-09 Thread Tom Boutell
Mmm. But hitting the database abstractions would probably be friendlier to PHP than, say, a math benchmark (: -- 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] Re: A simple Wiki written in Symfony 2 (aka an interesting sandbox-derived practice project)

2011-01-09 Thread Tom Boutell
I have updated this project to demonstrate the user authentication component (a little). That raised some bug reports and questions which I've sent to symfony-devs. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this

[symfony-users] Re: Symfony 2 tutorial on forms and Doctrine

2011-01-08 Thread Tom Boutell
Damon and Tim, you are right about the : syntax, it does work. I was probably confused by too many other things that didn't work in that code. The updated example for the orm overview: http://docs.symfony-reloaded.org/master/guides/doctrine/orm/overview.html Uses find() instead and the syntax

[symfony-users] More comments on the Symfony 2 tutorials

2011-01-08 Thread Tom Boutell
I'm reading the master versions now, thanks to those who pointed them out. I'm continuing to summarize my impressions since it should be useful in improving these guides. If I don't share these impressions now I will know too much about Symfony 2 to remember them later (: Continuing with

[symfony-users] Re: Locale error when creating a form in Symfony 2

2011-01-08 Thread Tom Boutell
Actually, let's get modern: I popped the SillyCMS project up on github. g...@github.com:boutell/SillyCMS.git No need to guess whether I posted enough code to reproduce the problem or not (: -- If you want to report a vulnerability issue on symfony, please send it to security at

Re: [symfony-users] Re: Locale error when creating a form in Symfony 2

2011-01-08 Thread Tom Boutell
Thanks! MacPorts has a very, very, very a la carte PHP build in which almost everything is a separate port to install. I am running port install php5-intl right now. I suggest adding this one to the installation instructions. It's pretty opaque when you run up against it, mostly because errors

Re: [symfony-users] Re: Locale error when creating a form in Symfony 2

2011-01-08 Thread Tom Boutell
That was it. I am making progress again (on to the next bug (: ) -- 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,

[symfony-users] Three questions about Symfony 2 routes

2011-01-08 Thread Tom Boutell
as just changing the route to go from using query string parameters to using pretty URLs, as you could do in Symfony 1.x. Is that correct? Thanks! -- Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com -- If you want to report a vulnerability issue on symfony, please send

[symfony-users] Re: Three questions about Symfony 2 routes

2011-01-08 Thread Tom Boutell
Some research into my third question: I have figured out that when you call path() in twig any parameters that are not part of the route are added to the query string. And I've also figured out that I can call $this-get('request')-get('paramname') to get at one of those parameters. So

[symfony-users] A simple Wiki written in Symfony 2 (aka an interesting sandbox-derived practice project)

2011-01-08 Thread Tom Boutell
clone SillyCMS, learn from it, improve it and share your feedback. Cheers! -- Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com -- 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

[symfony-users] Symfony 2 tutorial on forms and Doctrine

2011-01-07 Thread Tom Boutell
part, and it would still work. I suspect the answer is that later I'll be able to get the engineer value from the form and discover I've received an object, not just an ID, but this is never mentioned or demonstrated. -- Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com

[symfony-users] Re: Symfony 2 tutorial on forms and Doctrine

2011-01-07 Thread Tom Boutell
http://docs.symfony-reloaded.org/guides/doctrine/orm/overview.html seems to be untested or perhaps based on something that worked long ago? $user = $em-createQuery('SELECT u FROM HelloBundle:User WHERE id = ?', $id); $user-setBody('new body'); This will not work, there is no execution

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
. Any advice is much appreciated. Cheers, Tom -- The Harvest Cloud Who says buying local food can't be easy? Find out more @ harvestcloud.com -- 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] 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

[symfony-users] Symfony taking a beating in favorite-PHP-framework poll

2010-12-02 Thread Tom Boutell
interested in how it is playing out for this question) -- Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com -- 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

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
to use the full culture to translate doctrine records? Any pointers much appreciated. Thanks, Tom -- The Harvest Cloud Who says buying local food can't be easy? Find out more @ www.harvestcloud.com -- If you want to report a vulnerability issue on symfony, please send it to security at symfony

[symfony-users] Re: sfValidatorString returing text Array when used as form filter validator

2010-09-30 Thread Tom Ptacnik
What is in this array? On 28 zář, 18:49, pantherse panthe...@gmail.com wrote: What I want to do is replace the validator for a field to sfValidatorString instead of the sfValidatorPass in the base form filter class. However, when I do that the field's value becomes the text Array instead of

[symfony-users] Re: Is there an easy way to enable display the lookup values instead of IDs in indexSuccess.php in symfony 1.4.6?

2010-09-22 Thread Tom Ptacnik
For that create a partial, like guiguiboy sad and create a link here. Instead of just echo $issue-getEmp() do something like link_to() On 22 zář, 15:20, dmitrypol dmitry...@gmail.com wrote: Thank you both.  I do have one more question.  I created a page listing all employees symfony

[symfony-users] Re: motion : new mailling list for Synfony2

2010-09-02 Thread Tom Ptacnik
Agree On 1 zář, 16:23, sam zoulil...@gmail.com wrote: Hello, I follow this mailling list for a while, and I see more and more subject on Synfony2. I think that can be a good idea to split this one in 2 : synfony1 and synfony2 or at least allways use a tag like [sf2] in the subject. I am

[symfony-users] Re: Unsecure module into secure application

2010-08-29 Thread Tom Ptacnik
I think you can, because login page is unsecured action in the secured app... On 28 srp, 03:28, Alvaro Garcia maxpo...@gmail.com wrote: Hi! I have secured the application (application/config/security.yml) and a want an unsecured module. Then I have the file

[symfony-users] Re: sfFormExtraPlugin - jquery UI DatePicker - Safari 5

2010-08-24 Thread Tom Ptacnik
Try this http://garakkio.altervista.org/datepickerui/ I like it. On 16 srp, 21:42, Joe666 joe...@gmail.com wrote:  Hello guys, I installed the sfFormExtraPlugin as per the README file, then I downloaded jquery 1.4.2 and jquery UI 1.8.4, installed, included in the project, then I go to one of

[symfony-users] Re: disable form value remembering?

2010-08-24 Thread Tom Ptacnik
The filter value is saved to the session - the filter is saved even if you move to another page and go back. Also the value is showed on the form ... it's good to know which filter is set. How do you want to change it? ... only don't show the value on the form but let the filter value in the

[symfony-users] Re: created_at gets deleted on edit

2010-08-23 Thread Tom Ptacnik
Try to unset it in the form class (configure method) . . . . . unset($this['updated_at']); On 18 srp, 15:15, Christopher Schnell christopher.schn...@mda.ch wrote: A part of it, I can answer myself: the updated_at column is set to null if I press save in the Form and do not really make an

[symfony-users] Re: Yaml and html tags

2010-08-22 Thread Tom Ptacnik
xemple: job: title: my job description: | Cooker, i can find more information at : a href=a_website.commy_website.com/a. On 16 srp, 00:33, Reo rweil...@gmail.com wrote: Hi, I was wondering if it is possible to put some HTML tags in YAML files. Exemple:  

[symfony-users] Re: Symfony 1.4-compatible minifier for Symfony now included in Apostrophe, can be used in any Symfony project

2010-08-18 Thread Tom Boutell
, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Tue, Aug 17, 2010 at 3:32 PM, Tom Boutell t...@punkave.com wrote: Daniel, this almost works and I got pretty excited thinking about it... but there's a tragic flaw

[symfony-users] Re: Symfony 1.4-compatible minifier for Symfony now included in Apostrophe, can be used in any Symfony project

2010-08-18 Thread Tom Boutell
] [--env=dev|prod|staging] task so as to not need the brute-force symfony cc or go hunting for these minified files manually? Cheers, Daniel On 17.08.2010, at 15:32, Tom Boutell wrote: Daniel, this almost works and I got pretty excited thinking about it... but there's a tragic flaw

[symfony-users] Re: Symfony 1.4-compatible minifier for Symfony now included in Apostrophe, can be used in any Symfony project

2010-08-17 Thread Tom Boutell
. The browser then should just request the file because it doesn't about that file yet (filename is not the same). Am I missing something here? Cheers, Daniel Sent from my iPad On Aug 16, 2010, at 2:59 PM, Tom Boutell t...@punkave.com wrote: You're right, we do need cache invalidation. I just

[symfony-users] Re: Symfony 1.4-compatible minifier for Symfony now included in Apostrophe, can be used in any Symfony project

2010-08-16 Thread Tom Boutell
You're right, we do need cache invalidation. I just came up with a clean way to do it without tweaking app.yml settings, adding a table or making glob() calls: just use a file in the asset-cache folder to hold the current cache key. The OS should cache reads from that file extremely well. It may

[symfony-users] Re: Symfony 1.4-compatible minifier for Symfony now included in Apostrophe, can be used in any Symfony project

2010-08-16 Thread Tom Boutell
I've opened a ticket on this: http://trac.apostrophenow.org/ticket/529 I think manual updates are unnecessary, symfony cc can invalidate the cache key, no muss no fuss (: On Aug 15, 11:44 am, pghoratiu pghora...@gmail.com wrote: It might be worthwhile to take things a step further by

[symfony-users] Re: Symfony 1.4-compatible minifier for Symfony now included in Apostrophe, can be used in any Symfony project

2010-08-15 Thread Tom Boutell
they are cached on the client side)? Please post also a link to the sources. Thanks,     gabriel On Aug 14, 5:08 pm, Tom Boutell t...@punkave.com wrote: We've committed a new CSS and JS minifier to the trunk of apostrophePlugin. It's possible to take advantage of this even if you

[symfony-users] Re: Permalink route

2010-08-15 Thread Tom Ptacnik
/browse/:permalink/* or /browse/* or something like that ;) On 15 srp, 00:05, Arnau Alcázar Lleopart ar...@alcalleop.net wrote: Hi everybody, I've got urls likehttp://example.com/browse/one/twoand I have creayed a route where url is /browse/:permalink The problem is this route is only

[symfony-users] Symfony 1.4-compatible minifier for Symfony now included in Apostrophe, can be used in any Symfony project

2010-08-14 Thread Tom Boutell
/uploads/asset-cache needs to be writable by Apache (project:permissions should take care of this). Enjoy! -- Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

[symfony-users] Re: How i can implement this with sfGuard plugin

2010-08-14 Thread Tom Ptacnik
Maybe better would be to store the id of the user not the username. But the principle is right. And this code of creating the query move to the JobTable class .. create a method with userId parametter. On 12 srp, 21:16, RusAlex interpret...@gmail.com wrote: I have my own opinion: I need to

[symfony-users] Re: symfony form not merging with existing object data (1.4.7-DEV)

2010-08-14 Thread Tom Ptacnik
This behaviour is correct. It depends on the form you are using...I gess that this form is designed to set all attributes of the object. If you want to change only some values of the object, then you need to change the form. Or update just this few attributes of the object manualy and seve it.

[symfony-users] Re: sfGuardAuth causes everything on my homepage to disappear when I embed any code that corresponds with $sform.. any ideas why?

2010-08-11 Thread Tom Ptacnik
I think it can be done by component. Look into the sfGuard template and action .. you need to create the form class (action) then pass it into the component template and show it. On 8 srp, 00:31, Psychonetics mrajcampb...@gmail.com wrote: I'm trying to embed my sfDoctrineGuardPlugin login form

[symfony-users] Re: Embedding form filters

2010-08-11 Thread Tom Ptacnik
I don't think that you need embed form filter. Just add a widget for selecting a school into the person formFilter Something like: public function configure() { $this-widgetSchema['school_id'] = new sfWidgetFormDoctrineChoice(array( 'model' = $this-getRelatedModelName('School'),

[symfony-users] Re: which differences between Doctrine::getTable and Doctrine_Query::create

2010-08-11 Thread Tom Ptacnik
You can use Doctrine::getTable('RankDomain')- findOne or FindOneByXXX On 11 srp, 12:10, RusAlex interpret...@gmail.com wrote: First variant returns an object and you can use method. But second variant returns and array of objects and you must select object (ex.$rank_domain[0]) for using

[symfony-users] Re: a good IDE for Symfony

2010-08-06 Thread Tom Ptacnik
I'm using Eclipse too, and I'm happy with it. On 4 srp, 11:36, Gareth McCumskey gmccums...@gmail.com wrote: For me the biggest aspects of using an IDE like Eclipse is simply that, while it may be bloated and slow to load at times, that it actually speeds up my coding. Auto-completion of class

[symfony-users] Re: Customize admin generator to parse generator.yml with custom properties

2010-08-06 Thread Tom Ptacnik
Great, thank you for sharing your solution. On 4 srp, 12:12, Thor thorste...@gmail.com wrote: Thank you Tom! today i found a bette solution! it's more solid than the solutoin posted in the first link you provided, and i guess it's easier. i don't know how, but in all this time i had

[symfony-users] Re: Problem with filters

2010-08-05 Thread Tom Ptacnik
with 0 on the column enligne. But when I chose this, there is not generated SQL query... So I don't know what to do. On 3 août, 16:35, Tom Ptacnik to...@tomor.cz wrote: What do you want to this filter to do? And what is does instead? ... look on the generated SQL query which is creaded

[symfony-users] Re: Problem with filters

2010-08-03 Thread Tom Ptacnik
What means doesn't work? How it looks before ... show BaseFormFilter class, or the schema of the object at least. Which version of Symfony? On 3 srp, 11:01, florian périn poulet.va...@gmail.com wrote: Hello, I wanted to change the type of my filters auto-generate with admin- generator, but

[symfony-users] Re: Problem with filters

2010-08-03 Thread Tom Ptacnik
('required' = false)),  39       'deuxcolonnes' = new sfValidatorPass(array('required' = false)),  40       'enligne'      = new sfValidatorPass(array('required' = false)),  41       'lienspe'      = new sfValidatorPass(array('required' = false)),  42     ));  43   } On 3 août, 12:26, Tom Ptacnik

[symfony-users] Re: How to turn off filters in admin generator?

2010-07-31 Thread Tom Ptacnik
generator: param: config: filter: class: false Works for me. On 30 čnc, 18:09, halfer google.com.20080213...@jondh.me.uk wrote: Hi all I've discovered a bug in the filters section of the admin generator (when run against Oracle anyway) on Symfony 1.3 and Propel 1.5. I

[symfony-users] Re: Problems with a select to change the language (cookies)

2010-07-30 Thread Tom Ptacnik
Why do you need to delete cookies before? On 28 čnc, 20:47, Javier Garcia tirengar...@gmail.com wrote:   Hi I have followed the steps below to add a select to change the language of my app. http://www.symfony-project.org/jobeet/1_4/Doctrine/en/19#chapter_19_l... It works OK for the first

[symfony-users] Re: how to use Flush wih symfony

2010-07-30 Thread Tom Ptacnik
-Mensaje original- De: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] En nombre de Tom Ptacnik Enviado el: miércoles, 28 de julio de 2010 1:13 Para: symfony users Asunto: [symfony-users] Re: how to use Flush wih symfony I don't understand what are you trying

[symfony-users] Re: Avoid blank embed form to be saved

2010-07-30 Thread Tom Ptacnik
I think that easy solution is to overwrite the save method of the object wich is on the embeded form. Just test if there are some values and if not, end the method. If yes, call parent::save() On 30 čnc, 01:51, J_Wesker j_chave...@hotmail.com wrote: After making some changes on my code and

[symfony-users] Symfony Almost Live: building a new Symfony application in 26 minutes

2010-07-30 Thread Tom Boutell
/symfony-almost-live/ I've kept in my mistakes along with their solutions. More educational that way. Hope you find it helpful! Definitely a good choice for beginning Symfony developers. -- Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com -- If you want to report

[symfony-users] Re: how to use Flush wih symfony

2010-07-28 Thread Tom Ptacnik
I don't understand what are you trying to achieve.Try to explain again. On 25 čnc, 20:12, Julian Reyes Escrigas julian.reyes.escri...@gmail.com wrote: How to use flush with symfony in a long while for send information to user -- If you want to report a vulnerability issue on symfony, please

[symfony-users] Re: problem with $form-getObject()

2010-07-28 Thread Tom Ptacnik
Then you can try to set your form like in this http://melikedev.com/2009/12/09/symfony-w-doctrine-saving-many-to-many-mm-relationships/ article and see how Symfony does this. On 26 čnc, 22:51, Devang Modi dpm...@gmail.com wrote: Thanks for info. I tried something similar but it didn't work.

[symfony-users] Re: Concept Issue

2010-07-28 Thread Tom Ptacnik
quantity. But this quantity is connected just to this combination. I'm not saying that this is the best solution. Maybe someone has a better idea. But I think it can work :) On 26 čnc, 21:23, Micoto mich...@micoto.co.uk wrote: Thanks for replying Tom, It is 2), but with combinations of 1c

[symfony-users] Re: overriding delete method in a Many-to-Many relation

2010-07-28 Thread Tom Ptacnik
What about to overwrite the delete method? On 28 čnc, 09:59, pierre.use...@gmail.com pierre.use...@gmail.com wrote: Hi all, I've a problem with the delete method in my project. here is my schema : USER:   columns:     id:    {type: integer(7), primary: true, autoincrement: true}    

[symfony-users] Re: Concept Issue

2010-07-26 Thread Tom Ptacnik
Hi, there are some questions which you have to answer if you want to design this app. 1) sizes are connected to the type or to the design, or to the combinatioin of designtype? a) all posters have size A5 and A6 (no matter which design), all banners has size A6, A7 (no matter which design)

[symfony-users] Re: Multiple Doctrine Database Issues again

2010-07-23 Thread Tom Ptacnik
Maybe this is for developers list? On 20 čnc, 20:38, PhiKapJames phikapja...@gmail.com wrote: I had this issue back in November and it was fixed on the doctrine side.  I recently updated Symfony from 1.4.3 to the latest 1.4.7 and the issue has cropped back up again.  Even though I'm

[symfony-users] Re: no_script_name and problems with URI

2010-07-23 Thread Tom Ptacnik
If you set no_script_name to false then it shouldn't change you url from http://www.example.com/index.php/module/action to http://www.example.com/moduleName?productId=2 Try to set it to true again (or look on the page in the dev environment - with the frontend_dev.php) and look how the URL

[symfony-users] Re: upgrade sfDoctrineGuardPlugin from 4.0.1 to 4.0.2

2010-07-23 Thread Tom Ptacnik
I want to try a new version (5.0.0). Do you suggest to connect the trunk to my project (http://svn.symfony-project.com/plugins/ sfDoctrineGuardPlugin/trunk/) via svn external or rather instal it like a package? I'm afraid of to much changes in the trunk in the future... What about creating a tag

[symfony-users] Re: backend: forward to another module

2010-07-22 Thread Tom Ptacnik
I think it's because when you want to edit something, you must say what This edit action in mod_B don't know which object it should edit (you didn't send any id, or object) On 20 čnc, 16:10, Martin Henits martin.hen...@gmail.com wrote: in one of my backend modules (mod_A), I need to put a

[symfony-users] Re: Admin generator edit/delete action link error

2010-07-22 Thread Tom Ptacnik
One appliacation in your project can use index.php (probably frontend) the others must use another frontend controller which isn't automaticly executed. Solutions how to add /admin/ or /backend/ into your url are several. Try to look there, it might help you.

[symfony-users] Re: sfGuard default culture for a user

2010-07-21 Thread Tom Ptacnik
I would do that somewhere in the login process of the user. just call getUser()-setCulture($culture); where $culture is readed from the user profile. On 19 čnc, 20:16, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: Hi If I add a profile to a user with some information, also a language

[symfony-users] Re: Filter config

2010-07-20 Thread Tom Ptacnik
I don't think that sfBasicSecurityFilter read files.. On 10 čnc, 23:44, Julian Reyes Escrigas julian.reyes.escri...@gmail.com wrote: Hi I'm trying to change the security of my app from files security.yml to my DB with some more options but I don't get where the filter sfBasicSecurityFilter

[symfony-users] Re: Customize admin generator to parse generator.yml with custom properties

2010-07-20 Thread Tom Ptacnik
Found some stuff: http://fkling.wordpress.com/2009/09/09/custom-properties-in-symfonys-admin-generator-configuration/ http://www.symfony-project.org/gentle-introduction/1_4/en/14-Admin-Generator#chapter_14_summary http://gestadieu.blogspot.com/2009/08/sfadminthemejrollerplugin-symfony-admin.html

[symfony-users] Re: [admin generator]

2010-07-20 Thread Tom Ptacnik
one way is to remove the reset button from the layout On 13 čnc, 20:28, osinet osinet.c...@gmail.com wrote: I probe this example http://www.slideshare.net/jcleveley/working-with- the-admin-generator slide number 39 and 40 and runs but the problem is that the filter can be restored and see the

[symfony-users] Re: how to get changes in modell class pre update

2010-07-20 Thread Tom Ptacnik
look at the method $this-getModified(true/false); On 14 čnc, 12:43, axel at axel.zu...@gmail.com wrote: hello, I have a model with an integer attribute - invitationCount, in case of an model update I would need to know the old and new value. public function preUpdate($event) {  

[symfony-users] Re: Doctrine Admin Generator

2010-07-20 Thread Tom Ptacnik
If you haven't to much credentials (groups..), you can create one form for admin and the second for normal user, they show the form by the credential of the user. On 14 čnc, 23:49, galileo galileo...@gmail.com wrote: You have misunderstand me :) i need display form fields only for those users

[symfony-users] Re: I am trying to call return $ this- renderComponent ('onlineshop', 'homeShopsService', array ('service' = $ item [0])); from components.class.php

2010-07-20 Thread Tom Ptacnik
No you can't. renderComponent() method is only in sfAction, sfActions Look on the Inheritence http://www.symfony-project.org/api/1_4/sfAction#method_rendercomponent On 14 čnc, 22:21, juanes31516 carocobal...@gmail.com wrote: sorry, there is in English- I am trying to call return $ this-

[symfony-users] Re: actions in generator.yml

2010-07-20 Thread Tom Ptacnik
You can create this route and map it to your action my_foo_action: url: /my_module/foo/action param: { module: my_module, action: foo} On 17 čnc, 20:12, Martin Henits martin.hen...@gmail.com wrote: Hi all, I wrote the following piece of code in the generator.yml of a module:

[symfony-users] Re: include_js/css VS partials

2010-07-20 Thread Tom Ptacnik
Which version of Symfony do you use? On 17 čnc, 20:15, comb sa...@gmx.net wrote: Hi! :) I found much on the web regarding the topic, but no solution! :( Normally one would include the css and js in the head. But if I call ?php use_javascript('xyz.js');     php use_stylesheet('xyz.css') ?

[symfony-users] Re: Sluggable behaviour: field called slug is not created

2010-07-20 Thread Tom Ptacnik
Maybe colision with inheritance? Try to move inheritance before actAs (only guess) On 19 čnc, 21:16, Javier Garcia tirengar...@gmail.com wrote: no idea? On Jul 17, 10:35 pm, Javier Garcia tirengar...@gmail.com wrote: Hi, I have this model: Usuario:    actAs:      Sluggable:    

[symfony-users] Re: SQLSTATE[23000]: Integrity constraint violation

2010-07-20 Thread Tom Ptacnik
When does this error occurs? On 19 čnc, 11:24, François SEDE francois.s...@gmail.com wrote: HI all, I have this error : 500 | Internal Server Error | Doctrine_Connection_Mysql_Exception SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key

[symfony-users] Re: Calling stored procedures with SF and Doctrine

2010-07-19 Thread Tom Ptacnik
You can do this without stored procedure in the preInsert() method of the model class. On 7 čnc, 18:38, Ricardo Jose Guzman Milanes guzman.ricardoj...@gmail.com wrote: Hello I was searching in Google about how to call stored procedures, I found this post in this

[symfony-users] Re: Symfony2 or CakePHP ?

2010-07-19 Thread Tom Ptacnik
I wouldn't recomend Symfony2 for a real project till it's finished. On 9 čnc, 16:06, Ekinox ekinox1...@gmail.com wrote: Hello, Will Symfony2 's interface evolve just a little, or will it be rethought before the final release ? So I will know if I should use it for a big project. In fact, I

[symfony-users] Re: check cookies enabled?

2010-07-05 Thread Tom Ptacnik
Just set a cookie and try to read it... http://snippets.symfony-project.org/snippet/179 On 4 čnc, 11:45, comb sa...@gmx.net wrote: Hi! =) What's the proper way to check if a user has cookies enabled with symfony 1.4? Best greets comb -- If you want to report a vulnerability issue on

[symfony-users] Re: sfguardplugin i18n login page

2010-07-04 Thread Tom Ptacnik
Maybe your action for changing language is secured? ... then it won't be executed and it will be redirected to login page again. On 2 čnc, 23:03, fRAnKEnSTEin shirkav...@gmail.com wrote: Hi, I am using  sfguardplugin for everything related to credentials at the backend(generated with the

[symfony-users] Re: Doctrine admin generator and parameters to partial

2010-07-03 Thread Tom Ptacnik
http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chapter_07_sub_partials ?php include_partial('mypartial', array('mytotal' = $total)) ? On 1 čnc, 15:04, Guill Lo guill.b...@gmail.com wrote: Hi! I've got a partial that I'm sharing over different modules to show a photo. I

  1   2   3   4   5   6   7   8   9   >