[symfony-users] Re: How can i use a symfony helper in a js file

2009-04-16 Thread Alexandru-Emil Lupu
A thing that you might do is to have a "Javascript" module in wich you could render the needed Js functions. Ofcourse, this is not recomended... On Thu, Apr 16, 2009 at 7:45 PM, Richtermeister wrote: > > Hey Ahmed, > > look into sfContext::getInstance()->getController()->genUrl > ($internal_uri,

[symfony-users] Re: Multiple actions, one template?

2009-04-16 Thread Grus
There is a global template named "layout.php" located in the path "../ apps/templates". I think it's what you want On Apr 17, 3:48 am, Kevin Barsotti wrote: > I'm working on making an existing module more efficient, and presently > it has numerous (dozens) of actions which call upon an equal num

[symfony-users] Re: Multiple Databases with non-unique table names in Doctrine

2009-04-16 Thread Jonathan Wage
You should be managing your relationships and schema with Doctrine, and then you update your production database by using the database migrations tool. Doctrine will create your initial data from your schema. When using an ORM you need to think in terms of objects/models and how they all relate to

[symfony-users] Re: Multiple Databases with non-unique table names in Doctrine

2009-04-16 Thread dancablam
When you have an ongoing project, and you modify the model, do you typically manually change the schema.yml and also change the schema of the actual database via your db admin tool? Seems prone to inconsistencies that way. I normally like to make changes to my schema from phpMyAdmin and then build

[symfony-users] Fast symfony API searches using Mozilla's Ubiquity extension

2009-04-16 Thread Eno
Here's a quick hack to add a 'symfony' command to Ubiquity which allows you to quickly do a search of the symfony API docs. With Ubiquity installed in Firefox, go to: http://gist.github.com/94237 and Subscribe to the command when prompted. (And if you've never seen Ubiquity and don't know what it

[symfony-users] Re: Multiple actions, one template?

2009-04-16 Thread Kevin Barsotti
Thank you, that's exactly what I was looking for! Dheeraj Kumar Aggarwal wrote: > > hi > you can do this by using > $this->setTemplate('my'); in actions class > On Thu, Apr 16, 2009 at 11:18 PM, Kevin Barsotti > mailto:kevin.barso...@tribaldawn.com>> > wrote: > > > I'm working on making an

[symfony-users] Re: Multiple actions, one template?

2009-04-16 Thread Dheeraj Kumar Aggarwal
hi you can do this by using $this->setTemplate('my'); in actions class On Thu, Apr 16, 2009 at 11:18 PM, Kevin Barsotti < kevin.barso...@tribaldawn.com> wrote: > > I'm working on making an existing module more efficient, and presently > it has numerous (dozens) of actions which call upon an equal

[symfony-users] Re: Multiple actions, one template?

2009-04-16 Thread Рустам
or $this->setTemplate('my'); ;-) On Thu, Apr 16, 2009 at 11:52 PM, Рустам wrote: > in action: > > $this->setTemplate('a'); > > > > On Thu, Apr 16, 2009 at 11:48 PM, Kevin Barsotti > wrote: >> >> I'm working on making an existing module more efficient, and presently >> it has numerous (dozens)

[symfony-users] Re: Multiple actions, one template?

2009-04-16 Thread Рустам
in action: $this->setTemplate('a'); On Thu, Apr 16, 2009 at 11:48 PM, Kevin Barsotti wrote: > > I'm working on making an existing module more efficient, and presently > it has numerous (dozens) of actions which call upon an equal number of > templates that are for all intents and purposes ide

[symfony-users] Multiple actions, one template?

2009-04-16 Thread Kevin Barsotti
I'm working on making an existing module more efficient, and presently it has numerous (dozens) of actions which call upon an equal number of templates that are for all intents and purposes identical, but with differing data, i.e. executeA()-> aSuccess.php executeB()-> bSuccess.php executeC()-

[symfony-users] Re: How can i use a symfony helper in a js file

2009-04-16 Thread Richtermeister
Hey Ahmed, look into sfContext::getInstance()->getController()->genUrl ($internal_uri, $absolute); to generate the url. That's what's being called from within the url_for function, and it's perfectly fine to use that within your app code. Hope this helps, Daniel On Apr 16, 4:26 am, Ahmed wrot

[symfony-users] Re: Many sites using the same application

2009-04-16 Thread Nei Rauni Santos
I have a similar structure actually.. about the "Directory Index" I'm using too! Have you already created this kind of structure with just one document_root? Thanks, Nei On Apr 16, 4:33 am, Alexandru-Emil Lupu wrote: > instead of using ln -s, you might wanna do something like in your apache

[symfony-users] Re: Using ajax for input text update

2009-04-16 Thread Tomasz Ignatiuk
Thank you :) 2009/4/16 Alexandru-Emil Lupu > You could get a json response after the function is executed. > Using that json, you could make a callback that will allow you to update > inputs, or other elements. > maybe > http://www.prototypejs.org/api/ajax/request > http://www.prototypejs.org/ap

[symfony-users] Re: Using ajax for input text update

2009-04-16 Thread Alexandru-Emil Lupu
You could get a json response after the function is executed. Using that json, you could make a callback that will allow you to update inputs, or other elements. maybe http://www.prototypejs.org/api/ajax/request http://www.prototypejs.org/api/ajax/updater Alecs On Thu, Apr 16, 2009 at 5:09 PM, Tom

[symfony-users] Re: Using ajax for input text update

2009-04-16 Thread Tomasz Ignatiuk
Thank you, now I know how exactly return data :) with renderText or renderPartial :) Main problem was that remote_function could update only elements like DIVs, not values of input. I thought that this is how it working. But no one wrote enywhere that you can ommit update and use success with data

[symfony-users] Re: Using ajax for input text update

2009-04-16 Thread Steve the Canuck
There are a few ways to do ajax based rendering. One way is to have the Ajax based action you are calling return you the chunk of HTML and then you just render that HTML. Another way is for the Ajax based action to return you a response (more appropriate if there are multiple pieces of data and

[symfony-users] Re: Override templates/actions of plugin in an application

2009-04-16 Thread Steve the Canuck
I am speculating a bit here, but I think it works like this: - if the template/action is found in an app module, then the app module version is used - if the template/action is found in a plugin, then the plugin version is used this suggests an order of precedence, where the app module overrides

[symfony-users] Re: How can I use Ajax to validate user input?

2009-04-16 Thread Dheeraj Kumar Aggarwal
hi nothing special u have to do in ajax u can send an ajax request to server for user validation if not validated then send the error messages as response else send whatever your response 2009/4/16 Grus > > I read all documents about Form, but didnt find a solution. Could > anybody help? > > > >

[symfony-users] Override templates/actions of plugin in an application

2009-04-16 Thread s.py
Hi, I don't know how to override templates and/or actions of a plugin about an application. I created "plugins/TOTOPLUGIN/modules/TOTO" I have a schema.yml app: TOTOPLUGIN: modules: mymodule1: class: MyModule mymodule2: class: MyModuleTwo In my plugin "plugins

[symfony-users] How can I use Ajax to validate user input?

2009-04-16 Thread Grus
I read all documents about Form, but didnt find a solution. Could anybody help? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.c

[symfony-users] Re: blank screen of death: syntax errors not showing with custom controller using apache rewrite. Please help.

2009-04-16 Thread Roland Cruse
Ohh yeah!! The error_reporting setting got the errors to show. What a relief. Thank you everyone! On Thu, Apr 16, 2009 at 2:41 PM, Dheeraj Kumar Aggarwal wrote: > in settings.yml >     error_reporting:    ?> > > > On Thu, Apr 16, 2009 at 6:02 PM, Roland Cruse wrote: >> >> Thanks for the r

[symfony-users] Re: blank screen of death: syntax errors not showing with custom controller using apache rewrite. Please help.

2009-04-16 Thread Dheeraj Kumar Aggarwal
in settings.yml error_reporting: On Thu, Apr 16, 2009 at 6:02 PM, Roland Cruse wrote: > > Thanks for the response. > > > What is the error logging level set to in your environment? do you > > have show_errors set to on? > Here is my factories.yml > foo: > logger: >param: >

[symfony-users] Re: blank screen of death: syntax errors not showing with custom controller using apache rewrite. Please help.

2009-04-16 Thread Roland Cruse
Thanks for the response. > What is the error logging level set to in your environment? do you > have show_errors set to on? Here is my factories.yml foo: logger: param: level: debug I do not know where show_errors is set. Please tell me. Though I do not have the white death in the

[symfony-users] Re: blank screen of death: syntax errors not showing with custom controller using apache rewrite. Please help.

2009-04-16 Thread Alexander Deruwe
On 16 Apr 2009, at 10:52, Roland Cruse wrote: > Since its a php syntax error symfony logs are not much help...or have > not been for me. Try checking your apache (or whatever you use) error log, if you have access - it probably has more info. Alexander --~--~-~--~~~--

[symfony-users] Re: blank screen of death: syntax errors not showing with custom controller using apache rewrite. Please help.

2009-04-16 Thread FÁSI Gábor
I meant your appname_dev.php front controller, auto-generated in the web folder by generate:app. It calls a die when you're accessing it from somewhere other than localhost. Gábor On Thu, Apr 16, 2009 at 13:30, Roland Cruse wrote: > > Hi FÁSI > > I looked into the symfony/lib/controllers and no

[symfony-users] Re: blank screen of death: syntax errors not showing with custom controller using apache rewrite. Please help.

2009-04-16 Thread Lee Bolding
A different environment shouldn't cause any problems - I run many custom environments using it without any problems. What is the error logging level set to in your environment? do you have show_errors set to on? Also, you're better using the dev controller for your environment - you'll get

[symfony-users] Re: blank screen of death: syntax errors not showing with custom controller using apache rewrite. Please help.

2009-04-16 Thread Roland Cruse
Hi FÁSI I looked into the symfony/lib/controllers and none of them seem to call "die" at least grep did not think so. I do not understand, could you give me some more details. Thanks On Thu, Apr 16, 2009 at 10:58 AM, FÁSI Gábor wrote: > > I suggest uploading the _dev front c

[symfony-users] Re: blank screen of death: syntax errors not showing with custom controller using apache rewrite. Please help.

2009-04-16 Thread Roland Cruse
I installed sfErrorHandler (using symfony 1.2) The log showed proof of installation: "Apr 16 05:55:37 symfony [info] {sfHardenedRenderingFilter} Render to the client". Plus put the error500 scripts to their prospective homes even though I have logging on...but no joy I sorry to say. white screen

[symfony-users] Re: How can i use a symfony helper in a js file

2009-04-16 Thread Ahmed
Hi paolo ; I have already done this before but my goal is to separate the all my Javascript from templates and use helper in this file . Best regards Ahmed > permuter On 16 avr, 13:09, Paolo Mainardi wrote: > Embed this code in a file template and will work :) > > > > On Thu, Apr 16, 2009 at 1:0

[symfony-users] Re: Extending sfController

2009-04-16 Thread Lee Bolding
Cool. OK, let's address some of your points, and through a few ideas around :) 1) OK, that's pretty much what I expected. The way I'd handle these "anchor points" is with Symfony events. Create a set of events within your application, and allow plugins to listen to these events. Maybe a p

[symfony-users] Re: How can i use a symfony helper in a js file

2009-04-16 Thread Paolo Mainardi
Embed this code in a file template and will work :) On Thu, Apr 16, 2009 at 1:08 PM, Ahmed wrote: > > Hi all :) , > I want to use a php function to generate url ( for ajax call) in a js > file like this : > > > $(document).ready(function(){ >$.ajax({ > url: "", > succe

[symfony-users] How can i use a symfony helper in a js file

2009-04-16 Thread Ahmed
Hi all :) , I want to use a php function to generate url ( for ajax call) in a js file like this : $(document).ready(function(){ $.ajax({ url: "", success: function(html){ $("#step1_container").append(html); } }); }) ; But in the genera

[symfony-users] Re: Using ajax for input text update

2009-04-16 Thread Tomasz Ignatiuk
So maybe any guess how to get data from action via ajax and put it into input? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com

[symfony-users] Re: Extending sfController

2009-04-16 Thread Johannes Heinen
Thats it^^, for sure. Thanks for your patience :) Ok, infos... lets see. 1.) When i speak of "modules" i mean a 3rd-party code snippet which integrate into the 1st class app and can fulfill additional tasks (much as a plugin which plugs into a predefined anchor-point). My "modules" have nothing

[symfony-users] Re: blank screen of death: syntax errors not showing with custom controller using apache rewrite. Please help.

2009-04-16 Thread Lee Bolding
I think you answered your own question - if the app doesn't start properly, a plugin to the app (which didn't start) isn't ever going to get instantiated to be able to tell you that ;) If Symfony even fails to start, I believe you should see your default 500 error page, as configured in you

[symfony-users] Re: blank screen of death: syntax errors not showing with custom controller using apache rewrite. Please help.

2009-04-16 Thread FÁSI Gábor
Will that log startup errors? At the initial deploy you cannot be sure that even your app starts successfully, let alone it can connect to the database. On Thu, Apr 16, 2009 at 11:13, Lee Bolding wrote: > > Or use my sfErrorHandlerPlugin ;) > > http://www.symfony-project.org/plugins/sfErrorHandl

[symfony-users] Re: Parse error after a propel:build-model with a i18n table

2009-04-16 Thread Ahmed
Thanks Carsten; yes I forget the " isCulture: true " attribute . my probleme is resolved . Ahmed . On 16 avr, 07:53, Carsten Schumann wrote: > Hi Ahmed, > > there are two things different from my i18n scheme file which is working: > > 1. the indention of the lines containing country: (indention

[symfony-users] Re: blank screen of death: syntax errors not showing with custom controller using apache rewrite. Please help.

2009-04-16 Thread Lee Bolding
Or use my sfErrorHandlerPlugin ;) http://www.symfony-project.org/plugins/sfErrorHandlerPlugin On 16 Apr 2009, at 09:58, FÁSI Gábor wrote: > > I suggest uploading the _dev front controller and commenting the die() > command, but make sure you delete is as soon as you've finished. > > On Thu, Apr

[symfony-users] Re: blank screen of death: syntax errors not showing with custom controller using apache rewrite. Please help.

2009-04-16 Thread FÁSI Gábor
I suggest uploading the _dev front controller and commenting the die() command, but make sure you delete is as soon as you've finished. On Thu, Apr 16, 2009 at 10:52, Roland Cruse wrote: > > Hi symfony coders > > I making a rest application which does not show php syntax errors. > Just a blank s

[symfony-users] blank screen of death: syntax errors not showing with custom controller using apache rewrite. Please help.

2009-04-16 Thread Roland Cruse
Hi symfony coders I making a rest application which does not show php syntax errors. Just a blank screen, quite a pain. I wondering if this has happened to anyone else? The "rest" app lives in an existing symfony application, has been set up as a plugin, has its own routing.yml, has its own fro

[symfony-users] Re: Dynamic security.yml

2009-04-16 Thread Roland Cruse
Hi I am working on an application which needs to be generic where it would be up a user (administrator) to decide what actions other users are allowed. So we built a check box interface to security.yml files in every module using the sfYaml class for reading said files and writing them back again

[symfony-users] Re: Many sites using the same application

2009-04-16 Thread Alexandru-Emil Lupu
instead of using ln -s, you might wanna do something like in your apache config: server 2: Alias /css /home/example1/site/web/css Alias /js /home/example1/site/web/js server 3: Alias /css /home/example1/site/web/css Alias /js /home/example1/site/web/js 2) also ... if your websites are just mirro