[symfony-users] Re: Admin generator. Two modules from same schema or a module with two views ?

2010-03-18 Thread Richtermeister
Hey There, yes, both solutions work: either create 2 distinct admin modules by specifying the module parameter during creation, or have one smart module that display info/forms differently. In the latter case you'll probably have to custom code more and rely less on the yml configuration. Daniel

[symfony-users] Re: Override some sfConfig params

2010-03-17 Thread Richtermeister
I've also been playing with overriding sfConfig settings from an admin panel. Depending on how early you need these settings to apply, this is not really a difficult issue. In my case I listen for the even that tells me that factories are loaded, and inject my custom settings there. You have to

[symfony-users] Re: Custom logger via factory.yml?

2010-03-12 Thread Richtermeister
it in the controller?  I'm also thinking in terms of how I'll have to modify factories.yml to get this custom logging to work in prod as well as dev without altering the lack of application logging. Thanks a bunch for the help you've already provided here! Scott On Feb 26, 9:25 am, Richtermeister nex

[symfony-users] Re: Escape %2f in URL solution

2010-03-10 Thread Richtermeister
Hey Javier, I've come across this solution (simple string replace) a couple of times, and it works well for me so far, so I guess it's ok. Daniel On Mar 10, 10:03 am, Javier Sanchez javija...@gmail.com wrote: Hi all This is my problem. When i want to route with a parametrer slash / like

[symfony-users] Re: subform update when other widget changes

2010-03-08 Thread Richtermeister
This is somewhat tricky, and I haven't quite figured out a good way either. Of course you'll need some form of ajax to get new widgets from the server, but you'll also need to tell the main form that you've just added new fields, otherwise it'll complain about unexpected values. For complex

[symfony-users] Re: ideas for development architecture in symfony

2010-03-05 Thread Richtermeister
Just to beat that horse some more, since Apostrophe is open-source and built by programmers that encountered all the problems and challenges you're looking to solve, the suggestion is to look at their schema / code for inspiration. Any answer we could give you here would simply re-iterate what's

[symfony-users] Re: getForm() in a regular module?

2010-03-04 Thread Richtermeister
Hey Darren, just look at what the getForm method is doing internally and mimic the behavior in your code. Daniel On Mar 4, 9:06 am, Darren884 darren...@gmail.com wrote: Hi guys, I have used generate:module to generate a CRUD module, however it does not have getForm() in it like my admin

[symfony-users] Re: sf_flash gone in 1.4?

2010-03-01 Thread Richtermeister
The flash variable is now attached to the user. Use $sf_user - getFlash() - has('blah'); They did that because it interacts with the user anyways (storing stuff in session), so now it explicitly belongs to the user. If you need to fix hundreds of templates, you can just listen to the

[symfony-users] Re: Custom logger via factory.yml?

2010-02-26 Thread Richtermeister
, -christian- On Thu, 25 Feb 2010 10:21:00 -0800 (PST) Richtermeister nex...@gmail.com wrote: Hey Chris, you don't need to interact with this logger directly. It just sits there and listens for your custom logging events. The dispatcher is what you need to worry about, since that's used

[symfony-users] Re: Custom logger via factory.yml?

2010-02-25 Thread Richtermeister
into the default logfile as well as into my custom logfile. I want separate logfile just for special notes which should also not appear in the regular log files. bye, -christian- On Wed, 24 Feb 2010 09:25:45 -0800 (PST) Richtermeister nex...@gmail.com wrote: Hey Christian, it's simpler than

[symfony-users] Re: Custom logger via factory.yml?

2010-02-24 Thread Richtermeister
-0800 (PST) Richtermeister nex...@gmail.com wrote: Hey Christian, yeah, I've had some trouble with that as well, but I think I found a good solution. First, I continue to use the regular event system to send log events, but I send events of type blah.log instead of application.log. Now

[symfony-users] Re: Installer Script - building plugin models

2010-02-23 Thread Richtermeister
Nothing? What good is the installer if I can't add / build plugins with it..? Daniel On Feb 22, 1:44 pm, Richtermeister nex...@gmail.com wrote: Hi all, I'm playing with the new installer script functionality, and so far things work great, except for one issue: At one point in my script I

[symfony-users] Re: Custom logger via factory.yml?

2010-02-23 Thread Richtermeister
Hey Christian, yeah, I've had some trouble with that as well, but I think I found a good solution. First, I continue to use the regular event system to send log events, but I send events of type blah.log instead of application.log. Now, to catch those you have to implement a custom logger like

[symfony-users] Installer Script - building plugin models

2010-02-22 Thread Richtermeister
Hi all, I'm playing with the new installer script functionality, and so far things work great, except for one issue: At one point in my script I install a plugin (I use subversion externals for this, and that all works great). Then I would like to build the model, but since the plugin is not

[symfony-users] Re: Plugin wide layout

2010-02-10 Thread Richtermeister
Hey there, look at the sfBlogPlugin, although it's a little outdated, it uses the trick you're looking for, which can be turned on / off via a config parameter (use bundled layout I believe). Daniel On Feb 10, 11:23 am, Avi Block atbl...@gmail.com wrote: Is there a good way to make sure every

[symfony-users] Re: How to get raw data in a partial???

2010-02-08 Thread Richtermeister
Just to your specific point, $sf_user is accessible from every template or partial anyways.. no need to pass it along. Daniel On Feb 8, 1:09 pm, Darren884 darren...@gmail.com wrote: I solved it guys but the above would not work so I had to do a different way. I found out about hasCredential

[symfony-users] Re: appropriate way to insert form value before validation?

2010-02-06 Thread Richtermeister
I would just merge the account_id into the array that you pass to the bind() method. That way it looks to the form as if the value had been submitted. To keep validation in place, only unset the widget, not the validator. Daniel On Feb 5, 2:06 pm, kris chant ch...@supersharpshooter.net wrote:

[symfony-users] Re: generator.yml : disallow a field modification for a user that doesn't have a credential

2010-02-01 Thread Richtermeister
Hey there, I know that sounds like a good idea, but it really isn't. The right place to control access to form fields is in the form class itself, because think about it, the same form that your admin generator uses can be used / embedded elsewhere too, so your credentials restriction wouldn't

[symfony-users] Re: Best way to implement change password functionality?

2010-01-30 Thread Richtermeister
I would suggest reading through the code of the sfGuardPlugin, as this shows exactly how that's done. Daniel On Jan 29, 1:23 pm, Stephen Melrose step...@sekka.co.uk wrote: Hi, I'm trying to get my head around the form framework in Symfony 1.4. I've read the incredibly detailed section in

[symfony-users] Re: Module folders

2010-01-24 Thread Richtermeister
Since symfony 1.1 validation is handled via the form framework, hence those validate folders aren't generated any more. Daniel On Jan 24, 7:20 am, Parijat Kalia kaliapari...@gmail.com wrote: Hey guys, I am working on a symfony project for sometime now. I have a few modules in my project

[symfony-users] Re: Symfony's Database Session's table structure.

2010-01-22 Thread Richtermeister
I agree with Alex, all I see in the docs is that the column holds a timestamp... to me that said the column should be of the type timestamp as well, and that doesn't work. Daniel On Jan 21, 4:11 pm, a...@speedypin.com a...@speedypin.com wrote: I guess not enough where you reference Eno,

[symfony-users] Re: Symfony's Database Session's table structure.

2010-01-19 Thread Richtermeister
I've just had this issue and decided to make the time column a simple integer. That works, and seems to get rid of weird session drops that I had before. Daniel On Jan 19, 2:06 pm, a...@speedypin.com a...@speedypin.com wrote: there is also this

[symfony-users] Re: A strange thing about frontend_dev.php

2009-12-12 Thread Richtermeister
check the settings.yml for the parameter no_script_name. That is probably off for your dev environment, and it should be on. Daniel On Dec 12, 2:29 pm, Parijat Kalia kaliapari...@gmail.com wrote: Hey guys, while developing on the localhost I always access my webpages using

[symfony-users] Re: A strange thing about frontend_dev.php

2009-12-12 Thread Richtermeister
of course I mean the opposite, sorry ;) On Dec 12, 11:26 pm, Richtermeister nex...@gmail.com wrote: check the settings.yml for the parameter no_script_name. That is probably off for your dev environment, and it should be on. Daniel On Dec 12, 2:29 pm, Parijat Kalia kaliapari...@gmail.com

[symfony-users] Re: Symfony DataGrid

2009-12-11 Thread Richtermeister
Hey Nicolas, yeah, ERP stuff is where symfony really shines. Have a look at http://www.siwapp.org/ for inspiration or for a good starting point. Daniel On Dec 11, 9:15 am, NicolAS400 nico.mach...@gmail.com wrote: Hi, with this new release (1.4) I'm found a lot of plugins that didn't apply in

[symfony-users] Re: Recommended CMS for an older Propel-based Symfony 1.0 app?

2009-12-09 Thread Richtermeister
I am running a 1.0 site off the sfDynamicCmsPlugin and I have only good things to say. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send

[symfony-users] Re: How to use Filter Forms without Admin Generator?

2009-12-09 Thread Richtermeister
Nah, sorry, you'll have to write that yourself, as you have to with every form. Reason being that the surrounding html around the form is generated by the admin generator, and without that layer in the cache, there's no partials for you to include.. It's not a lot of work though. Daniel On Dec

[symfony-users] Re: Strange sfGuard bug/problem

2009-12-03 Thread Richtermeister
The problem is that that main.css file doesn't exist. Your browser requests it and smacks into the 404 action, which is then stored as the last requested action. After the login, the guard plugin tries to redirect you to that last url.. Basically, make sure you only reference assets that actually

[symfony-users] Re: Admin Generator Custom themes : is it possible to override only a few templates ?

2009-12-02 Thread Richtermeister
I think he is referring to customizing the admin generator itself via a theme, and from what I remember there is an issue with that. It should allow you selective overrides, but so far you still have to copy the entire generator and make changes there.. I believe the corresponding ticket is this

[symfony-users] sfGuard - different usertypes?

2009-11-25 Thread Richtermeister
Hi all, I'm quite familiar with sfGuard, but there's one thing I've never figured out right. I have to build an application with quite a few different user types - admins, members, affiliates, sales people, and all of these types will use different applications within the project. Now, of course

[symfony-users] Re: The template TestTwigSuccess.php does not exist or is unreadable in .

2009-11-23 Thread Richtermeister
...@uci.cu wrote: Richtermeister wrote: You're not doing anything with the output of twig. as far as the surrounding symfony application is concerned, you're executing the TestTwig action, and it's looking for a corresponding template. In your case you want to echo the twig output and then say

[symfony-users] Re: The template TestTwigSuccess.php does not exist or is unreadable in .

2009-11-19 Thread Richtermeister
You're not doing anything with the output of twig. as far as the surrounding symfony application is concerned, you're executing the TestTwig action, and it's looking for a corresponding template. In your case you want to echo the twig output and then say: return sfView::NONE, or stick the twig

[symfony-users] Re: Licensing Question / Code ownership

2009-11-17 Thread Richtermeister
CMS portion and leave the customer-specific code open for them to edit as they wish. On Mon, Nov 16, 2009 at 8:09 PM, Richtermeister nex...@gmail.com wrote: Hi all, our company is slowly shifting from selling all custom websites to websites built on symfony + our own set of CMS plugins

[symfony-users] Licensing Question / Code ownership

2009-11-16 Thread Richtermeister
Hi all, our company is slowly shifting from selling all custom websites to websites built on symfony + our own set of CMS plugins, and the question of code ownership is starting to come up. Traditionally we simply said that the client buys the entire site including code and is free to do

[symfony-users] Re: Propel - force NOT NULL into generated SQL

2009-11-16 Thread Richtermeister
...@gmail.com wrote: required: true On Mon, Nov 16, 2009 at 19:55, Richtermeister nex...@gmail.com wrote: Hi all, I have a model with a field absolute_url, which is a varchar(255), non-required. When generating the SQL for the tables, propel does not add NOT NULL, but I would like

[symfony-users] RE: Licensing Question / Code ownership

2009-11-16 Thread Richtermeister
Let's keep this on topic. Thanks. On Nov 16, 12:18 pm, Gábor Fási maerl...@gmail.com wrote: Quote from the bottom of *every* mail you get from this levlist: To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com

[symfony-users] Re: sfValidatorPropelUnique fails on updates - 1.2

2009-11-16 Thread Richtermeister
, I think it is not clear enough, so let me repeat briefly, in case anyone comes across this in the future: like Richtermeister says, the problem can be solved by adding a _uniques key to the schema, and using the auto-generated from. If you do not want to do this, for some reason, you need

[symfony-users] Re: what is the easiest way to test whether the user just logged in?

2009-11-14 Thread Richtermeister
Hey Gareth, yep, overriding the authorization method and adding a flash message is the way to go. Daniel On Nov 14, 3:12 am, Gareth McCumskey gmccums...@gmail.com wrote: Determining if the current view a user is seeing is his first SINCE he logged in. The OP wants a flash message as soon as

[symfony-users] Re: How is Sympal plugin going?

2009-11-14 Thread Richtermeister
Hey Tom, just to chime in, I've been pretty impressed with the apostrophe demo site, and I'll be playing with the sandbox over the weekend to see if that's not something for our company to embrace fully as well.. On that note, I love the svnforeign copy script! Comes at the perfect time, as I

[symfony-users] Re: Problem with model in Event Management Plugin

2009-11-10 Thread Richtermeister
I think sfCalendarEvent makes a lot of sense. It suggests an event within a calendar (suggesting properties such as date, time, duration), as opposed to a framework event. Daniel On Nov 10, 5:45 am, Nicolas Perriault nperria...@gmail.com wrote: On Tue, Nov 10, 2009 at 11:58 AM, juro

[symfony-users] Re: Symfony 1.4

2009-11-10 Thread Richtermeister
Hey Sid, it's now called propel:generate-admin and it rocks. Daniel On Nov 10, 2:10 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: sfCompat10Plugin: By deprecating this plugin, we also deprecate all other elements in the framework that rely on this plugin to work (1.0 admin generator, and

[symfony-users] Re: Problem with model in Event Management Plugin

2009-11-09 Thread Richtermeister
My suggestion would be sfCalendarEvent to avoid confusion. Looking forward to play with it! :) Daniel On Nov 9, 12:35 am, Nicolas Perriault nperria...@gmail.com wrote: On Mon, Nov 9, 2009 at 8:00 AM, juro fo...@juro.at wrote: Class sfEvent must be a child class of Doctrine_Record

[symfony-users] Re: Problem with model in Event Management Plugin

2009-11-09 Thread Richtermeister
More specifically, I'd name the plugin sfEventCalendarPlugin and the model classes sfCalendarEvent. Just my 2 cents. Daniel On Nov 9, 12:35 am, Nicolas Perriault nperria...@gmail.com wrote: On Mon, Nov 9, 2009 at 8:00 AM, juro fo...@juro.at wrote: Class sfEvent must be a child class of

[symfony-users] Re: Propel 1.3 Vs Doctrine 1.2

2009-11-04 Thread Richtermeister
@Alecs, glad you raise that question, as I'm in the same position. So far I've worked with Propel, and there was nothing I couldn't do with it. To me it seem the slow development perception stems from the fact that it was pretty mature already. @Eno, yeah that's the usual answer, but it offers

[symfony-users] Re: Why sfGuardUserAdminForm.class.php and sfGuardUserFormSignin.class.php doesnt take the word Plugin ??

2009-11-03 Thread Richtermeister
Hey Javi, The two classes without Plugin are not directly involved with the autogenerated model layer, the are just custom extensions for a specific purpose. It is considered best practice for writing plugins, that you move the model code into Plugin classes and leave the higher model class

[symfony-users] Re: set sf_user id to a doctrine model

2009-10-26 Thread Richtermeister
It means the signature of your save method is different. Make sure you take the same parameters as the parent function. Daniel On Oct 26, 6:19 am, mbernasocchi mbernasoc...@gmail.com wrote: thanks, it works as expected, I just had to add return parent::save($conn); instead of only

[symfony-users] Re: Access sfWebRequest in View

2009-10-19 Thread Richtermeister
$sf_request http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chapter_07_sub_template_shortcuts Daniel On Oct 19, 9:07 am, Simone Fumagalli simone.fumaga...@gmail.com wrote: Hello. Ho do I access sfWebRequest in my view file ? I want to write something like Your referral

[symfony-users] Re: Modifying form object values before saving

2009-10-12 Thread Richtermeister
Hey Eno, err, yeah, sorry. Was writing from memory. :) Daniel On Oct 12, 8:45 am, Eno symb...@gmail.com wrote: On Fri, 9 Oct 2009, Richtermeister wrote: I believe you just need to add an updateXXXField function to the form, where XXX is the camelized fieldname. That method is passed

[symfony-users] Re: Get updated fields from Form

2009-10-12 Thread Richtermeister
There's a getModifiedFields() method on propel objects as well.. no need for looping. Daniel On Oct 12, 2:10 am, Tomasz tomek.ignat...@gmail.com wrote: It is not the best option but it will do the job. Thank you :) I can loop all fields and put into array those which are modified :) On 12

[symfony-users] Re: Extend form class with I18n

2009-10-12 Thread Richtermeister
I would not make separate forms, but just use if($this - isNew()) { unset(.); } Simple and easier to maintain. Daniel On Oct 12, 8:23 pm, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I have a field in my class that contains i18n values. This is my model:   user:    

[symfony-users] Re: Modifying form object values before saving

2009-10-09 Thread Richtermeister
I believe you just need to add an updateXXXField function to the form, where XXX is the camelized fieldname. That method is passed the value just before saving, and you return the updated value, or false to remove it. Daniel On Oct 9, 3:08 pm, Eno symb...@gmail.com wrote: I need to the values

[symfony-users] Re: Own form formatter

2009-10-07 Thread Richtermeister
Hey Hausa, that's fairly easy. Just look at, say, the sfWidgetFormSchemaFormatterList class and create a class that extends it. In that class you can do some major changes just by updating the template properties, like $rowFormat, $decoratorFormat, etc.. Then just tell your form to use that

[symfony-users] sfLogger - why the eventdispatcher?

2009-10-07 Thread Richtermeister
Hi all, one thing I was wondering is why all sfLogger variants have to use the sfEventDispatcher.. it seems that this makes each logger listen to application.log events.. What if I just want a simple logger that logs results from some task I'm doing.. I don't neccessarily want application events

[symfony-users] Re: Template in AJAX request

2009-10-05 Thread Richtermeister
Hey Hausa, if you replace the entire html, why not do a regular reload? The point of Ajax reloads is to load less than the whole page, otherwise there's no benefit. To answer your question though, have you tried $this - setLayout (layout); in the ajax action? Daniel On Oct 5, 7:12 am, HAUSa

[symfony-users] Re: Component- Templating

2009-10-01 Thread Richtermeister
I'll take that :) Because Zend feels like Symfony after you drop it from 100feet into little bits that need sketchy re-assembly. I feel your pain ;) Daniel On Sep 30, 1:05 pm, Eno symb...@gmail.com wrote: On Wed, 30 Sep 2009, ProdigitalSon wrote: If you get around to plugging it in to 1.3

[symfony-users] Re: what plugins or code do symfony developers prefer for image cropping?

2009-09-30 Thread Richtermeister
Hi all, since we're talking about it, I wanted to ask if anybody else is missing the thumbnail_tag() helper that used to be part of the sfThumbnail Plugin. I have an old version that clearly contains it, yet the current repository shows it's not there.. What happened to it? Thanks, Daniel On

[symfony-users] Re: Custom view_class

2009-09-30 Thread Richtermeister
Hey Simone, ah I see.. so, like a small templating setup? Sounds like a good use to me. I'm probably going to use that myself some time soon, but I haven't decided on what template syntax to use. I want to stick with one of the official template engines out there, so that there's existing

[symfony-users] Re: How to execute a stored procedure on a remote db server throught symfony?

2009-09-30 Thread Richtermeister
Hey dagger, it'll have to be a custom query to the effect of Call xyx(), but depending on what data is returned you may still rely on regular propel hydration. Or some manual handling of the result set.. Just for the record, I had major issues last time I tried accessing stored procedures via

[symfony-users] Re: symfony build scripts

2009-09-28 Thread Richtermeister
Hey Davinder, I've been using the sfCombinePlugin for that, works very well. My only issue is that it doesn't yet take the media parameter into consideration, so by default it would lump a print stylesheet together with screen ones.. Easy enough to manually add though. Daniel On Sep 28,

[symfony-users] Re: running code on each request for a given app

2009-09-26 Thread Richtermeister
Hey Chris, that all being said the kind of tracking you're looking to do is really best handled by Google Analytics / Omniture, etc.. Gives you much more insights into your visitor behavior, supports goals funnels.. Daniel On Sep 26, 6:54 am, Chris Renfrow frowt...@gmail.com wrote: Thanks

[symfony-users] Re: Different validation for update/insert

2009-09-23 Thread Richtermeister
Hey Simone, I would use the same form, but in the configure function you do something like: if($this - isNew()) { //add or configure validators for create } else { //add or configure validators for update } clean and easy to maintain. Daniel On Sep 23, 3:16 am, Simone Fumagalli

[symfony-users] Re: Multiple objects' forms on one page

2009-09-22 Thread Richtermeister
Hey Dennis, you should be able to embed related forms in each other. Sounds like the userform should be your starting point, and in the configure function do something like: foreach($this - object - getAddresses() as $key = $address) { $this - embedForm(form_.$key, new AddressForm($address);

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Richtermeister
Hey Ghost, I find that even if something in symfony seems trickier than it needs to be, I usually only need to implement it once and can then either simplify things in my own extensions, or package it and reuse it or what not.. After that, life is smooth sailing. I'll take that over simple

[symfony-users] Re: shouldn't a lack of an id in a form get some kind of error?

2009-09-15 Thread Richtermeister
Jey Jake, if the error is with a field that you're not rendering, you wouldn't see it. Also, you're not rendering global errors and hidden fields from what I can see.. Try just printing the entire form ( echo $form; ) and see if you see where the error lurks, and work backwards from there.

[symfony-users] Re: cant upload file through admin generator

2009-09-13 Thread Richtermeister
Hehehe, thanks :) On Sep 12, 1:12 pm, גולן (במילעל) stu...@yanivgolan.com wrote: Thanks Daniel it did help (BTW liked the delicate graphics in your Blog header...:) ) On Sep 12, 7:57 pm, Richtermeister nex...@gmail.com wrote: Hey Yaniv, I suppose you're using sf1.2 In this case

[symfony-users] Re: sfValidatorPropelUnique fails on updates - 1.2

2009-09-12 Thread Richtermeister
Hey Ben, no, your first version is right. You only need to pass model and column. The object that your form is updating needs to have a primary key set though, in order to be considered an update. otherwise it will be considered new and the update will fail. In the most basic propel form setup

[symfony-users] Re: cant upload file through admin generator

2009-09-12 Thread Richtermeister
Hey Yaniv, I suppose you're using sf1.2 In this case, the type stuff doesn't work any more through the generator file. You need to modify the generated form classes directly (this way form logic is in one central place instead of scattered through many config files..) For specifics read here:

[symfony-users] Re: add field which does not belong to the model

2009-09-04 Thread Richtermeister
The choices option takes an array of the acceptable values, in your case array('f', 'c'). Daniel On Sep 3, 5:56 am, Germana Oliveira germanaolivei...@gmail.com wrote: I have this Code: class DenunciaForm extends BaseDenunciaForm {   public function configure()   {    

[symfony-users] Re: propel:generate-admin module name

2009-09-04 Thread Richtermeister
Hey Dawid, I have the same issue, but only if I forget to specify the module name the first time around. After that symfony seems to remember that name, which is really annoying. I usually end up manually renaming things, which is possible. Just remember to pass the proper module name the first

[symfony-users] Re: Calendar plugin

2009-09-04 Thread Richtermeister
Hey Rajesh, I guess the answer is that it's not available. Doesn't seem to be amongst the official plugins, and nobody came forward with one.. Time to shine and build it ;) Daniel On Sep 4, 8:02 am, Rajesh Kodali rajeshkod...@gmail.com wrote: I am looking at full scale calendar plug in with

[symfony-users] Re: Symfony Facebook Integration

2009-09-04 Thread Richtermeister
Hey Surom, I believe http://www.symfony-project.org/plugins/sfPropelApplyPlugin could help. Haven't tried it yet, but seems to fit the bill. Daniel On Sep 4, 5:21 am, Sorom Uzomah delsa...@yahoo.com wrote: Hello everyone, I have 2 questions         * Is there now a stable plugin for

[symfony-users] Re: sfWidgetFormChoice

2009-08-29 Thread Richtermeister
Hey mattsister , I've had the same issue, and there's an easy fix. The reason is that text fields really submit 2 values, the text content and the is_empty flag, so they arrive as an array. When you switch that to a select, it arrives as a single value, and won't be processed correctly. The

[symfony-users] What happened to sfThumbnailHelper?

2009-08-29 Thread Richtermeister
Hi all, I was just wondering what happened to the helper that used to be included with the sfThumnailPlugin? Used to have a thumbnail_tag() helper, doesn't seem to be in the plugin any more.. Thanks, Daniel --~--~-~--~~~---~--~~ You received this message because

[symfony-users] Re: Symfony 1.2 propel admin generator hide fields only in edit form

2009-08-28 Thread Richtermeister
Hey Sid, I would not rely on the generator.yml to configure which form fields are displayed, since it only hides fields from the interface.. as far as the form is concerned you end up with empty form fields if a field is not displayed and the form is submitted. As shown above the solution is to

[symfony-users] Re: Routing Question: Optional url parameter in the middle?

2009-08-26 Thread Richtermeister
use one route and urls would be like   /library/legal/document2.pdf and if no category was chosen   /library/uncategorized/document.pdf - Dennis Richtermeister wrote: Hi all, quick question. I'm trying to accommodate a url with an optional category. Say you have documents that can

[symfony-users] Re: app.yml nested settings dont work

2009-08-25 Thread Richtermeister
Hey Mintao, yeah, there's a limit as to how deep you can go directly. If you need to access deeper nestings, you have to retrieve the parent array first and access it directly. Daniel On Aug 25, 7:20 am, mintao florian.fack...@mintao.com wrote: Hi, print_r('app_thumbshots') displays the

[symfony-users] Routing Question: Optional url parameter in the middle?

2009-08-25 Thread Richtermeister
Hi all, quick question. I'm trying to accommodate a url with an optional category. Say you have documents that can be categorized, like: /library/legal/ document1.pdf, where legal is a category. Now, for uncategorized documents, I would like those to omit the category parameter, like so:

[symfony-users] Re: Using the Admin Generator for a Plugin

2009-08-17 Thread Richtermeister
Hey Chris, I found the quickest way is to use the generate-admin task to create a new admin generator based on a particular model, and then move that generated module into a plugin. The only thing you need to watch out for is to register the routes manually, because you can't package a

[symfony-users] Re: Symfony 1.2.3: Where is include_custom?

2009-08-12 Thread Richtermeister
Hey Caphun, I believe the place to handle this stuff is in the form classes now, and I find that a better place as well, since it affects all instances of a form and you can adjust the validator at the same time as well (assuming you need to tell it to allow an empty submission or not..). Hope

[symfony-users] Re: Symfony render admin list form

2009-08-12 Thread Richtermeister
hey giugio, without answering your real question (sorry, pressed for time right now), I would just link to the regular admin list for comments and pass a filter parameter to limit the list to the relevant comments (i.e. those related to that article. It's a very clean solution and keeps using

[symfony-users] Re: Symfony 1.2.3: Where is include_custom?

2009-08-12 Thread Richtermeister
:43 PM, Richtermeister nex...@gmail.com wrote: Hey Caphun, I believe the place to handle this stuff is in the form classes now, and I find that a better place as well, since it affects all instances of a form and you can adjust the validator at the same time as well (assuming you need

[symfony-users] Re: Form validation

2009-08-12 Thread Richtermeister
Hey Stefano, I would write a custom post-validator. A post validator is given the entire data array, so from there you can just loop over the array and see if the values keep increasing.. Hope this helps, Daniel On Aug 12, 8:57 am, Stefano stef...@sancese.com wrote: Hi, I'm developing my

[symfony-users] Re: Date widget without days?

2009-08-11 Thread Richtermeister
, and have a great day. Daniel On Aug 11, 3:09 am, François CONSTANT francois.const...@gmail.com wrote: Hi Daniel, U can change the format of the date in the dateWidget. http://www.symfony-project.org/api/1_2/sfWidgetFormDate On 10 août, 19:02, Richtermeister nex...@gmail.com wrote: Hi all

[symfony-users] Date widget without days?

2009-08-10 Thread Richtermeister
Hi all, is there a date widget without days somewhere? I'm looking to use this for the expiration date of a credit card.. Thanks, Daniel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To

[symfony-users] Re: Symfony filter

2009-08-07 Thread Richtermeister
Hey Marcos, I think I've had the same issue before. What's happening is that the text field is really submitting 2 fields, one being the text value, and the other the is empty checkbox value. So when you switch the widget to a choice widget, only one value gets submitted (instead of an array of

[symfony-users] Re: different cache versions for logged and non logged users

2009-08-07 Thread Richtermeister
Also, I believe in sf1.2 you can specify the viewcache manager class, so in there you may be able to add authentication into the cache key.. Daniel On Aug 7, 12:49 am, Zdanek tom...@mikran.pl wrote: -noauth for the cache when not logged in and just the username when they are logged in.

[symfony-users] Re: Form generator

2009-08-04 Thread Richtermeister
Regards, James Collins 2009/8/4 Eno symb...@gmail.com On Mon, 3 Aug 2009, Richtermeister wrote: I am really liking the form framework, and I find it accommodates pretty much all my needs as a programmer. My html guy sees this a little differently though, since he's got a little more

[symfony-users] Re: Forms

2009-08-04 Thread Richtermeister
Hi juaninf, you cannot auto-generate forms that span more than 1 table. However, once all forms are generated, you can embed one inside the other via the embedForm() method. Hope this helps. Daniel On Aug 3, 3:12 pm, juaninf juan...@gmail.com wrote: I know that the php symfony

[symfony-users] Form generator

2009-08-03 Thread Richtermeister
Hi all, I am really liking the form framework, and I find it accommodates pretty much all my needs as a programmer. My html guy sees this a little differently though, since he's got a little more code to write for every form field.. So I was thinking, maybe I can generate the html output of

[symfony-users] Re: How do I create a plugin specific configuration file?

2009-08-01 Thread Richtermeister
is nice because it puts plugin configuration on a specific file and keeps the app.yml not crowded. 2009/7/31 Richtermeister nex...@gmail.com Hey Bruno, what I meant is include the file in the plugin to provide default values. Of course the user needs to overwrite some of those

[symfony-users] Re: How do I create a plugin specific configuration file?

2009-07-31 Thread Richtermeister
-Config If I have success I will post it here. 2009/7/30 Richtermeister nex...@gmail.com Hey Bruno, just include a /yourplugin/config/app.yml file that contains your settings. This file will be included in the configuration automatically. Daniel On Jul 30, 10:16 am, Bruno

[symfony-users] Re: Oops...'Something is broken...500 internal server error'

2009-07-31 Thread Richtermeister
Is this a symfony app? In that case look at the front controller (usually front_dev.php) and see what's causing the error. How did you get a bid for a problem that you're not sure what it is? Daniel On Jul 30, 10:49 am, chip fyn chip...@gmail.com wrote: Is this a real problem or what? The

[symfony-users] Re: How do I create a plugin specific configuration file?

2009-07-30 Thread Richtermeister
Hey Bruno, just include a /yourplugin/config/app.yml file that contains your settings. This file will be included in the configuration automatically. Daniel On Jul 30, 10:16 am, Bruno Reis bruno.p.r...@gmail.com wrote: Thanks Eno, but that does not shows what I am looking for. It explains

[symfony-users] Re: Reading mail from smtp with symfony.

2009-07-24 Thread Richtermeister
Hey Gabor, I'd be interested in what software you use to access the imap servers. Any pointers? :) Thanks, Daniel On Jul 24, 6:33 am, Gábor Fási maerl...@gmail.com wrote: I have a site that needs to regularly collect info from other locations, not mails though, but websites. I achieved

[symfony-users] Re: sfGuardUserFormFilter Customization

2009-07-23 Thread Richtermeister
something like this should work. $this - widgetSchema - setLabel(from_date, From); Daniel On Jul 22, 8:08 pm, Germana Oliveira germanaolivei...@gmail.com wrote: Hi!! Im trying to customize my  UserFormFilter, so i have this in my  setWidget: ...  'created_at'                    = new

[symfony-users] Re: set/getFlash() issue : active during 2 requests

2009-07-20 Thread Richtermeister
Hey Adrien, you're using a forward() command after the mailing form, so the flash gets picked up in the current request and not unset until the next. If you use a redirect(), the flash will truly only be shown once. This is also best practice, since it avoids re-triggering the form by hitting

[symfony-users] Re: How to include a js tag from a plugin on the main layout?

2009-07-17 Thread Richtermeister
Use the use_stylesheet(mystyle, first); helper. It's good practice to include your style NOT last, so that the project can still override it. Daniel On Jul 16, 7:20 am, Bruno Reis bruno.p.r...@gmail.com wrote: Hi there, Is there a way to include a specific js in the main layout from

[symfony-users] Re: Custom rendering of widgets

2009-07-16 Thread Richtermeister
widgets. Daniel On Jul 15, 10:53 pm, Java geek develo...@jsptube.com wrote: Thanks Daniel, This is exactly what I was looking for. I felt that there should be some way other than extending the widgets, but din't know what. Thanks SN - Original Message - From: Richtermeister nex

[symfony-users] Re: Custom rendering of widgets

2009-07-15 Thread Richtermeister
Hey Sudhir, the settings you're looking for is the formatter option in the sfWidgetFormSelectCheckbox class. You can pass this option a callable that will handle the formatting of the checkbox output. Ideally, as you found, you do this by extending the class and putting the custom formatting

[symfony-users] Re: How to move from 1.0 to new form framework..

2009-07-15 Thread Richtermeister
Hey Matias, I find that symfony allows a gradual approach to this. When you leave the sfCompat10Plugin enabled, all your old forms will still work, and you can gradually replace them with form classes. No other changes to your app should be neccessary. If your forms are based on your model, I

<    1   2   3   4   >