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

2011-06-02 Thread Tom Boutell
t;      type: string(255) >    email: >      type: string(255) >    office_address: >      type: string(255) >    home_address: >      type: string(255) >    telephone: >      type: string(25) > > IronManApplication2011: >  inheritance: >    extends: Applicatio

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

2011-04-12 Thread Tom Boutell
ibute back, with a default $user->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 win

[symfony-users] WebsiteProfile singleton

2011-03-29 Thread Tom Haskins-Vaughan
ore it? At the moment, I'm storing it myUser, but I've recently been thinking about whether or not I should make a singleton out of it since it needs to be available in every part of the system: Culture::getInstance(); WebsiteProfile::getInstance() Any suggestions/comments? Tom -- The H

[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 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-18 Thread Tom W
creating > that class? > Cheers, > Francesco > > > > On Thu, Mar 17, 2011 at 5:32 PM, Tom W 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/:p

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

2011-03-17 Thread Tom W
y breaks the whole framework. On Mar 16, 11:04 pm, Matt Gibson 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/j

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

2011-03-17 Thread Tom W
sf_method: [get] # default rules homepage: url: / param: { module: job, action: index } # generic rules default_index: url: /:module param: { action: index } default: url: /:module/:action/* On Mar 16, 11:04 pm, Matt Gibson wrote: > On 16 Mar 2011, at 15:28, Tom W wrote: &

[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
(: 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 it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users&quo

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

2011-02-06 Thread Tom Boutell
ry filters are now alphabetically sorted * You can now locate uncategorized posts by selecting "Uncategorized" from the Categories filter dropdown * Author and category filters can be combined with other filters properly * Google Calendar URLs were often too long; imposed a ch

[symfony-users] SillyCMS updated to Symfony 2.0 PR5

2011-01-23 Thread Tom Boutell
elloBundle, 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

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

[symfony-users] Apostrophe 1.5 is out!

2011-01-18 Thread Tom Boutell
e svn access to more translators, and we will hit that. Feel free to nag me 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

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 from that. On Wed, Jan 12, 2011 at 11:16 AM, Tom Haskins-Vaughan wrote: > Can you not set the service type on the object before you pass it to the form? > > $calculation = new Calculation(); >

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 wrote: > This is my Form class: > > class

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 wrote: > ... And anyone has documentation about the hasHelp function mentioned > in the section "Customizing Error Messages Display" of gentle- > in

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 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 a vulnerab

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 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 have 2 actions, index > a

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] 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 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: true } > Milage: >

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

2011-01-11 Thread Tom Boutell
as a service in config.yml and tag it so that the Twig bundle knows to look for it: services: twig.extension.WikiText: class: Application\SillyCMSBundle\Twig\Extensions\WikiText tags: - { name: twig.extension } If you have problems, triple-check that your namespace paths are consistent.

[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: S

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

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-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 m

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: 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 t

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 d

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

2011-01-08 Thread Tom Boutell
ld simple_format_text helper behavior in Twig?) Please 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 securi

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

[symfony-users] Three questions about Symfony 2 routes

2011-01-08 Thread Tom Boutell
instead of arguments passed to the method - there is no such thing 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 yo

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, s

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 error

[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 symfony-projec

[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 forms,

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

[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

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

2011-01-07 Thread Tom Boutell
it shows. My question: what does this transformer actually do for me? It seems to me that I could write this exact code, minus the transformer 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

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 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 just the login form on thi

[symfony-users] Log and notify on order actions

2010-12-30 Thread Tom Haskins-Vaughan
ead of listners. 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 mes

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 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 check that modu

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

2010-12-02 Thread Tom Boutell
;no" votes are quite important, but I am 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 r

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

2010-10-27 Thread Tom Haskins-Vaughan
ake the lang column containing 5 characters by doing this : > X: >   actAs: >     I18n: >       fields: [xxx, yyy, zzz] >       length: 5 > -- > Pierre-Yves > > > 2010/10/26 Tom Haskins-Vaughan >> >> Hi all, >> >> I apologise if this

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

2010-10-26 Thread Tom Haskins-Vaughan
t possible 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, pleas

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

2010-09-29 Thread Tom Ptacnik
What is in this array? On 28 zář, 18:49, pantherse 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 the actual clea

[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 wrote: > Thank you both.  I do have one more question.  I created a page > listing all employees > symfony doctrine:generate-adm

[symfony-users] Re: difference of route_prefix on apps/app/config/routing.yml and apps/app/modules/module/config/generator.yml

2010-09-02 Thread Tom Ptacnik
Routing and generator are two separate things. Thats why you have to set it in both files. On 2 zář, 01:43, Jochen Daum wrote: > Hi, > > out of interest, why does a generator.yml driven module ignore the > route settings in config/route.yml and needs the settings defined in > apps/app/modules/m

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

2010-09-02 Thread Tom Ptacnik
Agree On 1 zář, 16:23, sam 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 interested in

[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 wrote: > Hi! > I have secured the application (application/config/security.yml) and a want > an unsecured module. Then I have the file > /application/unsecuredModule/config/security.yml c

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

[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 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 the admin g

[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 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 update (i.e. leave all v

[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 : my_website.com. On 16 srp, 00:33, Reo wrote: > Hi, > > I was wondering if it is possible to put some HTML tags in YAML files. > > Exemple: >   job: >     title: my job >     descrip

[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
Maybe we could > > provide a apostrophe:clear-minified-resources [--js] [--css] [--all] > > [--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 > > > O

[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
> > Before Printing, Think about Your Environmental Responsibility! > Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! > > On Tue, Aug 17, 2010 at 3:32 PM, Tom Boutell wrote: > > Daniel, this almost works and I got pretty excited thinking about > >

[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
he 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 wrote: > > > You're

[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 wrote: > > It might be worthwhile to take things a step further by versioning > > them in the

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

[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
ng these scripts (thus leaving one file per > script) should result in usually higher performance than generating > two different, but combined files. > > Kind regards, > Johannes > > On Aug 15, 2:04 pm, Tom Boutell wrote: > > > The cached versions are removed by

[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 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 selected when ther

[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
hese resources (in case > 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 wrote: > > > We've committed a new CSS and JS minifier to the trunk of > > apostrophePlugi

[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. O

[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 wrote: > I have my own opinion: > > I need to add new field "user"

[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
ify_gzip turned off, but it won't be as awesome. symfony cc and go to town. That's it - no database tables needed, no schema changes. Note that web/uploads/asset-cache needs to be writable by Apache (project:permissions should take care of this). Enjoy! -- Tom Boutell P'

[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 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 methods > > On Aug 11,

[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: 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 wrote: > I'm trying to embed my sfDoctrineGuardPlugin login form on an existing > page

[symfony-users] apostrophePlugin now sf_output_escaping: true compatible

2010-08-07 Thread Tom Boutell
table. However having it in the trunk means it will be in 1.5 before too long. We might reconsider putting this into 1.4 if the trunk gets heavy testing and proves to be rock solid boring stable in this particular area, but more likely we'll just get to 1.5 soon. -- Tom Boutell P'unk Aven

[symfony-users] Plugins updated: apostrophePlugin, apostropheBlogPlugin, sfDoctrineActAsTaggablePlugin, sfJqueryReloadedPlugin

2010-08-06 Thread Tom Boutell
atible with pkTagahead if necessary Found a bug in some logic in the component.class Fixed a bug with the new tag widget Documented the new tag widget renderer *** sfJqueryReloadedPlugin 1.4.3 *** Updated jQuery UI. (We still haven't moved to jQuery 1.4.x by default due to persistent incompatibi

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

[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 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 method names for e

[symfony-users] Re: Problem with filters

2010-08-05 Thread Tom Ptacnik
on enligne, there are only families 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 wrote: > > > > > What do you want to this filter to do? And wha

[symfony-users] Re: Problem with filters

2010-08-03 Thread Tom Ptacnik
s->setWidgets(array( >  24       'nom'          => new sfWidgetFormFilterInput(), >  25       'image'        => new sfWidgetFormFilterInput(), >  26       'description'  => new sfWidgetFormFilterInput(), >  27       'deuxcolonnes'

[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 wrote: > Hello, > > I wanted to change the type of my filters auto-generate with admin- > generator, but when I did it, the fi

[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 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 > believe that if I can turn the

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

2010-07-31 Thread Tom Ptacnik
> >       Sluggable: > > >         unique: true > > >         fields:  [nombre_apellidos] > > >         canUpdate: true > > >         name: 'myslug' > > > > On Jul 27, 10:57 am,JavierGarcia  wrote: > > >> On Jul 20, 12:00 pm, Tom Ptacni

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

2010-07-30 Thread Tom Boutell
07/30/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 w

[symfony-users] Re: sfUser::setFlash doesn't work in Chrome?

2010-07-30 Thread Tom Ptacnik
flash works ok in my chrome browser (tested in classic admin generated backend where flash is used after the item is deleted in the list) On 29 čnc, 15:20, Travis wrote: > Yes. The cookie is set. And as you can see, the setAttribute and getAttribute > method work > > > > > cookies enabled? > > >

[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 wrote: > After making some changes on my code and debugging using die's and

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

2010-07-30 Thread Tom Ptacnik
ended"); > > sorry for my grammar, I dont speak well the English > > -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

[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 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 time I change

[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" 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} >     name:   {type:

[symfony-users] Re: Better way of setting default i18n messages for validators?

2010-07-28 Thread Tom Ptacnik
I think that just sfValidatorBase::setDefaultMessage( 'required', 'Required field' ); is enough and the __() helper will be used automaticly. On 27 čnc, 04:23, Gustavo Adrian wrote: > Hi, > > I've found a way to do this in the BaseForm class. I just set the default > message of each validator o

[symfony-users] Re: Concept Issue

2010-07-27 Thread Tom Ptacnik
diferrent 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 wrote: > Thanks for replying Tom, > > It is 2), but with combinat

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

2010-07-27 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 wrote: > Thanks for info. > I tried something similar but it didn't work. > > In doUpdateObj

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

2010-07-27 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" 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 send it to security at symfon

[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 design&type? a) all posters have size A5 and A6 (no matter which design), all banners has size A6, A7 (no matter which design) b

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

2010-07-25 Thread Tom Ptacnik
so appreciate a svn tag > > > On Jul 23, 5:25 am, Tom Ptacnik wrote: > >> 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 extern

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

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

[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 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 specifying two > different d

[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. http://groups.google.com/group/symfony

[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 wrote: > in one of my backend modules (mod_A), I need to put a link to the edit > pag

[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 wrote: > Hi > > If I add a profile to a user with some information, also a language > for a user, how to

[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 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 constraint fails >

[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 wrote: > no idea? > > On Jul 17, 10:35 pm, Javier Garcia wrote: > > > > > Hi, > > > I have this model: > > > Usuario: > >    actAs: > >      Sluggable: > >        unique: true > >  

[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 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_stylesheet('xyz.css') ?> > > from an partial, they are not inclu

[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 wrote: > Hi all, > > I wrote the following piece of code in the generator.yml of a module: > > list: >   actions: >

[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 wrote: > sorry, there is in English-> > > I am trying to call return $ this-> renderComponent ('onlin

[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 wrote: > You have misunderstand me :) > > i need display form fields only for those users that have nee

  1   2   3   4   5   6   7   8   9   10   >