[symfony-users] Re: sfDoctrineActasTaggablePlugin

2010-11-02 Thread Manu
Aaah.. publish-assets. I think I'll allways forget to run that command before asking questions :) The widget seems to work fine now, I can add and remove tags \o/ The only problem left is a design one, the links to erase a tagging are called "Remove Tag", I'd prefer an image. On Oct 29, 4:5

Re: [symfony-users] Re: Textarea onclick event?

2010-11-02 Thread Alex Pilon
We solved the problem.. if you have nothing to contribute the save your time. On Nov 1, 2010 11:57 PM, "Gareth McCumskey" wrote: And not exactly a great way to endear people to you calling them smart ass. On Tue, Nov 2, 2010 at 4:50 AM, Parijat Kalia wrote: > > Yes smart ass, >... -- Garet

Re: [symfony-users] Re: Textarea onclick event?

2010-11-02 Thread Gareth McCumskey
I am making a contribution, just as Eno was. He was right. The email address for this list is symfony-u...@googlegroups.com, not javascript-users. A 10 second google search brought up millions of Javascript resources, tutorials and advice, amongst which would have contained all the info that Parija

Re: [symfony-users] Re: Textarea onclick event?

2010-11-02 Thread Alex Pilon
I wsnt talking to you, and the posters problem wasn't with javascript. On Nov 2, 2010 6:44 AM, "Gareth McCumskey" wrote: I am making a contribution, just as Eno was. He was right. The email address for this list is symfony-u...@googlegroups.com, not javascript-users. A 10 second google search br

Re: [symfony-users] Re: sfDoctrineActasTaggablePlugin

2010-11-02 Thread Wes John-Alder
Aha, and for you and all the designers of the world, there is a separate CSS class for removal links and popular links containers: 'a-existing-tags' and 'a-popular-tags'. Today I will extend the widget so you can supply your own class names. If you check it out again around 4:30 PM EST, then you

[symfony-users] question about client certificate authentication

2010-11-02 Thread Stan McFarland
Hi, I'm trying to secure an application where all users have client certificates. I want to compare the client certificate name (available in an environmental variable) to the list of valid users kept in a database table. If the user exists in the database, I want to grant the user access -

Re: [symfony-users] question about client certificate authentication

2010-11-02 Thread Alex Pilon
Hi Stan, You can override the default behavior by making a sfGuardAuth folder in your modules folder and overriding how authentication takes place. On Tue, Nov 2, 2010 at 10:15, Stan McFarland wrote: > Hi, > > I'm trying to secure an application where all users have client > certificates. I

[symfony-users] Re: question about client certificate authentication

2010-11-02 Thread Stan McFarland
Thanks, Alex - will give it a try. It was the adding of the sfGuardAuth folder that had me stumped. On Nov 2, 10:29 am, Alex Pilon wrote: > Hi Stan, > > You can override the default behavior by making a sfGuardAuth folder in your > modules folder and overriding how authentication takes place.

Re: [symfony-users] Re: question about client certificate authentication

2010-11-02 Thread Alex Pilon
Yeah, no problem.. read up on the cascading file system that symfony has. It is very useful and makes it possible to very specifically override any aspect of the framework and of plugins. On Tue, Nov 2, 2010 at 10:49, Stan McFarland wrote: > Thanks, Alex - will give it a try. It was the adding

[symfony-users] Re: question about client certificate authentication

2010-11-02 Thread Stan McFarland
Alex, one more question, if you don't mind. I have the validation working, but I'm stuck on something.My executeLogin() method successfully does the login, but the machinery obviously wants to render the loginSuccess.php template. Is there a variable that contains the original request so I ca

Re: [symfony-users] Re: question about client certificate authentication

2010-11-02 Thread Alex Pilon
Hey Stan, If you have an executeLogin method defined in sfGuardAuth/actions/actions.class.php at the end of the executeLogin or whenever you have decided the user is authenticated you should be able to do $this->redirect or forward as you normally would. If this doesn't make sense can you post the

[symfony-users] Re: question about client certificate authentication

2010-11-02 Thread Stan McFarland
It makes sense, but I don't know what to redirect _to_.The user could potentially request any URL (say, url/mymodule/new or url/ mymodule/edit/id/5) as their first session request. If the authentication is successful I want to send them to whatever they originally requested.But once I'm

Re: [symfony-users] Re: question about client certificate authentication

2010-11-02 Thread Alex Pilon
How about redirecting them to the referrer? $request->getReferer(); That will reference where the user came from to get to the Login method that you are using. On Tue, Nov 2, 2010 at 11:38, Stan McFarland wrote: > It makes sense, but I don't know what to redirect _to_.The user > could potent

[symfony-users] Re: Package template/layout as a plugin to re-use across sites?

2010-11-02 Thread rich_81
On Nov 1, 10:52 pm, John Kary wrote: > Our University is using symfony 1.x for many different internal > applications, and we want to easily brand them with our University's > web template. I figured creating this inside a plugin would be best, > so we could easily update the plugin when we tweak

Re: [symfony-users] Re: Package template/layout as a plugin to re-use across sites?

2010-11-02 Thread Stéphane
The Diem CMF/CMS does the same thing. I believe there is no "standard way", but this can be a good one to do so. Regards, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Tue, Nov 2, 2010 at 5:49 PM, rich_81 w

Re: [symfony-users] Package template/layout as a plugin to re-use across sites?

2010-11-02 Thread Alex Pilon
Hi John, I've found sort of a rough solution to this.. there is hopefully a better way to accomplish this. Its a bit of a lengthly discussion and worth having something out there on the net, so I wrote it up on my blog: http://codesauce.com/2010/11/02/keeping-branding-consistent-across-multiple-s

[symfony-users] Re: question about client certificate authentication

2010-11-02 Thread Stan McFarland
It was $request->getUri() that did the trick. Thanks again! On Nov 2, 11:42 am, Alex Pilon wrote: > How about redirecting them to the referrer? $request->getReferer(); That > will reference where the user came from to get to the Login method that you > are using. > > > > > > > > > > On Tue, No

Re: [symfony-users] Re: question about client certificate authentication

2010-11-02 Thread Alex Pilon
Great! On Tue, Nov 2, 2010 at 13:25, Stan McFarland wrote: > > It was $request->getUri() that did the trick. Thanks again! > > > On Nov 2, 11:42 am, Alex Pilon wrote: > > How about redirecting them to the referrer? $request->getReferer(); That > > will reference where the user came from to get

Re: [symfony-users] Re: Why the browser redirects home page to xampp-splash?

2010-11-02 Thread Marcio Pozzato
Thank you Gabriel. That Web Server configuration was correct. Then. it only ran after restarting. The same occur with another symfony features Take into consideration I`m at a trainning room, where equipments are usually out of usage... Marcio Pozzato. 2010/10/27 pghoratiu : > Looks like a p

Re: [symfony-users] Re: several parallel requests from one client?

2010-11-02 Thread Gábor Fási
sfSessionStorage has a shutdown() function [1] that calls session_write_close(), but it does not get called in sfUser's shutdown(), so as far as I can see, in 1.4 you need to call session_write_close() manually. [1] http://trac.symfony-project.org/browser/branches/1.4/lib/storage/sfSessionStorage

Re: [symfony-users] Re: several parallel requests from one client?

2010-11-02 Thread Gareth McCumskey
I saw that myself as well. I just wonder why that was changed though? Thats one of those things when we do eventually convince the sys admins to upgrade PHP to 5.3 and upgrade our projects to symfony 1.4 we will need to add the extra line of code. On Tue, Nov 2, 2010 at 10:48 PM, Gábor Fási wrote

Re: [symfony-users] Re: several parallel requests from one client?

2010-11-02 Thread Alex Pilon
Could you subclass sfUser and add a call to the $this->storage->shutdown() as well as call the parent function? Or even just add the extra call there? That seems less intrusive and allow for upgrading than modify symfony core code. I do work in drupal as well as symfony and always shrivel up and di

Re: [symfony-users] Re: several parallel requests from one client?

2010-11-02 Thread Alex Pilon
Also it seems to me that session_write_storage was removed from the sfUser::shutdown method because the sfUser class has a storage object that by the looks of the contents of /lib/vendor/symfony/lib/storage is not always guarenteed to be using the session. This means that having that function call

[symfony-users] sfDoctrinePollPlugin

2010-11-02 Thread Altansuh A
sfDoctrinePollPlugin on symfony1.0.4 not running help me please? give me sfDoctrinePollPlugin use tutorials. -- 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 "sy

[symfony-users] HowTo use Template in lib?

2010-11-02 Thread Bernhard Marx
Hello together, i new to symfony, but hopefully slowly I get the full knowledge ;-) I extend my Application with a Soap-Server (The Zend-Soap). I added a module an some routing which works fine I have in "apps/frontend/lib" a class for containing the soap- functions... #

[symfony-users] Is this a normal behavior ? 45.54% doing gettimeofday

2010-11-02 Thread Elvis
After doing some concurrency tests on a project, I've checked what does the php calls with strace -c -p apache PID. I've used the latest symfony sandbox and made this call ab -n 100 -c 1 http://test1.domain.ltd/ ( 100 requests with 1 concurrent request, so nothing fancy) and got these results : %

Re: [symfony-users] HowTo use Template in lib?

2010-11-02 Thread Alex Pilon
Hi Bernhard, Check out my blog post http://codesauce.com/2010/10/07/symfony-cron-and-html-emails-getpartial-from-cron/about using get_partial and the likes from other places in symfony applications. The parts you'll want to pay particular attention to are: // this loads in the Partial helpers sf

Re: [symfony-users] sfDoctrinePollPlugin

2010-11-02 Thread Alex Pilon
Hello Altansuh, Please be more specific about what problem you are encountering. Thanks On Mon, Nov 1, 2010 at 05:25, Altansuh A wrote: > sfDoctrinePollPlugin on symfony1.0.4 not running help me please? give > me sfDoctrinePollPlugin use tutorials. > > -- > If you want to report a vulnerabilit

[symfony-users] Stylesheets issue

2010-11-02 Thread xpanshun
Hi all, It seems that my pages only want to use the main.css stylesheet even though I have the line in them. What could be wrong here? Thanks. -- 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] Stylesheets issue

2010-11-02 Thread Alex Pilon
What does your view.yml file look like? Have you cleared the cache? (symfony cc) On Tue, Nov 2, 2010 at 18:18, xpanshun wrote: > Hi all, > > It seems that my pages only want to use the main.css stylesheet even > though I have the line in them. What > could be wrong here? > > Thanks. > > -- > If

Re: [symfony-users] Stylesheets issue

2010-11-02 Thread Gábor Fási
You're looking for `use_stylesheet()`. `include_stylesheets()` outputs the tags for all the css files in your view.yml and `use_stylesheet()` calls. On Tue, Nov 2, 2010 at 23:18, xpanshun wrote: > Hi all, > > It seems that my pages only want to use the main.css stylesheet even > though I have th

Re: [symfony-users] Is this a normal behavior ? 45.54% doing gettimeofday

2010-11-02 Thread Alexandre Salomé
Isn't it because of debug modules (XDebug, ...) ? Try optimisation of benchmark environment, to look like production server. Le 2 nov. 2010 22:50, "Elvis" a écrit : After doing some concurrency tests on a project, I've checked what does the php calls with strace -c -p apache PID. I've used the l

[symfony-users] Re: Package template/layout as a plugin to re-use across sites?

2010-11-02 Thread Kevin Dew
The approach I've taken to doing it (which i believe took inspiration from apostrophe) was to set up a templates folder in my plugin and then just have a require statement in the sites layout to use it. What I also did was make the layout as thin as possible code wise and mostly use partials from a

Re: [symfony-users] Stylesheets issue

2010-11-02 Thread Martin Ibarra Cervantes
in your module->config->view.yml you can put the .css for this module. On Tue, Nov 2, 2010 at 3:23 PM, Gábor Fási wrote: > You're looking for `use_stylesheet()`. `include_stylesheets()` outputs > the tags for all the css files in your view.yml and > `use_stylesheet()` calls. > > On Tue, Nov 2,

[symfony-users] Re: Stylesheets issue

2010-11-02 Thread xpanshun
That was my problem; I forgot to put my stylesheets in the view.yml. Thanks all for the replies! Appreciate it! :) On Nov 2, 7:18 pm, Martin Ibarra Cervantes wrote: > in your module->config->view.yml you can put the .css for this module. > > > > > > > > On Tue, Nov 2, 2010 at 3:23 PM, Gábor Fás

[symfony-users] sfDoctrineRestGeneratorPlugin overriding method

2010-11-02 Thread ashton
Is it possible to use sf_method (or something else) to override the method? I tried to pass in sf_method, but I get "Could not validate extra field "sf_format"". Beyond that, has anyone seen any issues with the routing? /post.xml, /post.json get me Empty module and/or action after parsing the URL

[symfony-users] Re: SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens

2010-11-02 Thread zelaz
I actually am having a very similar error, and yes, it is most likely the validator which is cleaning the choices, which is throwing the error. Here is my example: form construction: $this->setWidgets(array( 'language_format_id' => new sfWidgetFormDoctrineChoice(array('model' => $this- >getR

Re: [symfony-users] Re: Textarea onclick event?

2010-11-02 Thread Parijat Kalia
Oh guys, please chill out, none of that was for either of you, it was for Mr.Eno, because he typically comes up with "smart ass " sentences like those way too often. For both Alex and Gareth, I am grateful for that advice. Thanks a ton! And yes, the issue that I was dealing with is Javascript, b

Re: [symfony-users] HowTo use Template in lib?

2010-11-02 Thread Gareth McCumskey
The short answer ... you don't load templates to display pages from other classes. You should be calling this in the action. In your action you call your Service class and if everything goes well then the ACTION not the Service class will forward to the template. If you do it this way then there i

Re: [symfony-users] Re: several parallel requests from one client?

2010-11-02 Thread Gareth McCumskey
Oh I would not edit the symfony libraries code, thats just silly. Your idea of overwriting the shutdown method is a good one and one I was considering using for that eventual upgrade. So essentially I'd just catch the call to shutdown() and add a session_write_close() after calling parent's shutdow

Re: [symfony-users] Package template/layout as a plugin to re-use across sites?

2010-11-02 Thread Gareth McCumskey
Why not just setup a centralised CDN? This way your templates can just include the html content for things like header blocks with logo's etc in a consistent way and also create a centralised point that if edited will automagically update all related sites using it? On Tue, Nov 2, 2010 at 12:52 AM

[symfony-users] I18N: separate country and language?

2010-11-02 Thread Sebastien Armand [Pink]
Hi everyone, The app we're working on will need to be I18N, and it will need this under different conditions: - The app may be installed for clients in different countries (one install per client) - In one country they might need multiple languages (multicultural teams) However let's sa