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

2009-04-17 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 nex...@gmail.com wrote: Hey Ahmed, look into sfContext::getInstance()-getController()-genUrl

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

2009-04-17 Thread FÁSI Gábor
You can use a normal template to be rendered after an ajax call, just set hasLayout to false either in view.yml, or in your action. I think symfony can do this automatically when the IsXMLHTTPRequest http header is set (automatically done by prototype and jquery). On Thu, Apr 16, 2009 at 16:09,

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

2009-04-17 Thread Tomasz Ignatiuk
OK :) Yes, it is done automatically while using IsXMLHTTPRequest 2009/4/17 FÁSI Gábor maerl...@gmail.com You can use a normal template to be rendered after an ajax call, just set hasLayout to false either in view.yml, or in your action. I think symfony can do this automatically when the

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

2009-04-17 Thread Mr_chon
As you've got the same template for all your module's actions, I'd include $this-setTemplate('my'); in the preExecute method... On 16 avr, 19:54, Kevin Barsotti kevin.barso...@tribaldawn.com wrote: Thank you, that's exactly what I was looking for! Dheeraj Kumar Aggarwal wrote: hi you

[symfony-users] batch script+send email+paramater

2009-04-17 Thread kusum
Hi, how we can send email in a batch process using sendEmail method and how we can pass parameter from batch file to mail action. Thanks, Kusum --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users

[symfony-users] Form doesn't save files

2009-04-17 Thread HAUSa
Hi all, I made a non-Propel form, with several file inputs in it. But, now it doesn't save the files! This is my form.class.php: public function configure(){ $aHospitals = HospitalPeer::selectList(); foreach($aHospitals as $oHospital){

[symfony-users] Re: London symfony users meeting! 17th April

2009-04-17 Thread Ian P. Christian
Last reminder! meeting in Putney night! 2009/4/3 Ian P. Christian poo...@pookey.co.uk: Everyone remember, london meeting! http://www.meetup.com/symfony/calendar/10055154/ Blog: http://pookey.co.uk/blog Follow me on twitter: http://twitter.com/ipchristian

[symfony-users] Re: symfony textmate bundle

2009-04-17 Thread MrMoins
Hi, first congratulation for this excellent bundle. I just want to ask you if it's possible to integrate Doctrine command in the future ? Thank you On 26 mar, 11:54, Dennis Benkert spinecras...@googlemail.com wrote: I just pushed the first preview of the bundle (codename 'conductor's baton')

[symfony-users] Re: Doctrine UNION function or similar solution

2009-04-17 Thread Valkerian
Hi there, it takes a bit of doing and there's a bunch of gotchas but here's how I did it: In the appropriate doctrine class I did this: public function getByLastname($lastname) { $cnn = Doctrine_Manager::connection(); $quoted_lastname = $cnn-quote($lastname, 'string'); $people =

[symfony-users] Schema Problem

2009-04-17 Thread Waseem
i have installed symfony 1.2.5 on windows xp. and using mysql 5 and apache 2.0 and php 5.8 when i run this command get follwoing result. command: pear channel-discover pear.symfony-project.com result: D:\Apache2\htdocs\proj1symfony propel:build-schema PHP Fatal error: Class 'PDO' not found

[symfony-users] Re: London symfony users meeting! 17th April

2009-04-17 Thread Lee Bolding
I'd have gone, but I'm not working in London at the mo, and I live north of the river... Maybe next time! On 17 Apr 2009, at 14:50, Ian P. Christian wrote: Last reminder! meeting in Putney night! 2009/4/3 Ian P. Christian poo...@pookey.co.uk: Everyone remember, london meeting!

[symfony-users] Re: symfony textmate bundle

2009-04-17 Thread Dennis Benkert
Sure! Can the Doctrine users maybe post some suggestions of snippets or commands? It would be exciting go get some response from 'hardcore' Doctrine users to find helpfull shortcuts. - Dennis 2009/4/17 MrMoins cmo...@gmail.com: Hi, first congratulation for this excellent bundle. I just want

[symfony-users] Re: how to prevent symfony to add css/js automatically?

2009-04-17 Thread CharlesMartin
In view.yml, you can either remove them specifically indexSuccess: stylesheets: [-main] or all at once : indexSuccess: stylesheets: [-*] javascripts: [-*] This is for Symfony 1.0, I have no idea if things changed in 1.1 or 1.2 More on this at

[symfony-users] Re: Schema Problem

2009-04-17 Thread FÁSI Gábor
The cli often has a different php.ini, maybe you don't have pdo enabled there. Run a phpinfo() from the command line and it will tell you which php.ini it uses. On Fri, Apr 17, 2009 at 12:40, Waseem whme...@gmail.com wrote: i have installed symfony 1.2.5 on windows xp. and using mysql 5 and

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

2009-04-17 Thread Richtermeister
Hey Eno, that is really really cool :) Thanks for introducing that and sharing the code. Daniel On Apr 16, 12:05 pm, Eno symb...@gmail.com wrote: 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

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

2009-04-17 Thread Richtermeister
Hey Nei, this is so weird, I will be starting a project this weekend that seems to have the same goal / structure. A CMS for multiple websites.. If you like I'd be interested in emailing you directly so we can share some ideas and figure out how to best build this using symfony. Daniel On

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

2009-04-17 Thread Ahmed
Thanks for all; After many search i found that the best way is doing this with helper . @Alexandru-Emil Lupu : Why it's not recomended ? On 17 avr, 08:50, Alexandru-Emil Lupu gang.al...@gmail.com wrote: A thing that you might do is to have a Javascript module in wich you could render the

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

2009-04-17 Thread Jonathan Wage
I've used modules and actions to serve dynamic js files all the time. Just make sure you turn on caching if you can and make sure the right headers are sent for js files so that they are cached in the users browser. - Jon On Fri, Apr 17, 2009 at 1:13 PM, Ahmed ghaliano2...@gmail.com wrote:

[symfony-users] my custom handler isn't autoloading

2009-04-17 Thread Nei Rauni Santos
I'm trying to write a custom handles based in this page Adding Your Own Handler) on http://www.symfony-project.org/book/1_2/19-Mastering-Symfony-s-Configuration-Files my codes is here: http://pastebin.com/d7f7d1cfe. I wrote all passes but it isn't loading.. Is needed to do others things??

[symfony-users] Re: my custom handler isn't autoloading

2009-04-17 Thread Nei Rauni Santos
the paths are wrong.. this is ok http://pastebin.com/m47f52810 all files are under frontend app directory.. Thanks On Apr 17, 4:39 pm, Nei Rauni Santos nra...@gmail.com wrote: I'm trying to write a custom handles based in this page Adding Your Own Handler)

[symfony-users] Re: my custom handler isn't autoloading

2009-04-17 Thread Nei Rauni Santos
It work now.. The problem is that in the manual ins't write to create a file called config.php here the page where I found the best explanation. http://trac.symfony-project.org/wiki/HowToHandleCrossAppsConfigurationFiles the documentation need to be updated. Nei On Apr 17, 4:42 pm, Nei

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

2009-04-17 Thread Derek Almond
I run three or for different set ups where the sites share common code, but the look and feel is different to some extent. each of the two examples below run about 12 differnet sites, with varying degrees of shared content - i wont post all the ULR's or it will look like i'm link spamming, but a

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

2009-04-17 Thread Eran
There is a plugin called ysfDimension. You might want to look at that. 2009/4/17 Derek Almond iamde...@gmail.com I run three or for different set ups where the sites share common code, but the look and feel is different to some extent. each of the two examples below run about 12 differnet

[symfony-users] changing the default signin form's layout in sfGuardAuth

2009-04-17 Thread ckemmler
I want to change the layout of the default signin form in sfGuardAuth. How do I do that? --~--~-~--~~~---~--~~ 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] Re: changing the default signin form's layout in sfGuardAuth

2009-04-17 Thread Eran
Set the layout declaration in your custom template (in Your sfGuard Module) to whatever you want.i.e ?php decorate_with('sfGuard_layout') ? 2009/4/18 ckemmler ckemm...@gmail.com I want to change the layout of the default signin form in sfGuardAuth. How do I do that?

[symfony-users] Re: changing the default signin form's layout in sfGuardAuth

2009-04-17 Thread ckemmler
I mean: just the form, not the layout of the entire page On Apr 17, 6:27 pm, Eran eran...@gmail.com wrote: Set the layout declaration in your custom template (in Your sfGuard Module) to whatever you want.i.e ?php decorate_with('sfGuard_layout') ? 2009/4/18 ckemmler ckemm...@gmail.com I

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

2009-04-17 Thread Nathanael D. Noblet
Derek Almond wrote: I run three or for different set ups where the sites share common code, but the look and feel is different to some extent. each of the two examples below run about 12 differnet sites, with varying degrees of shared content - i wont post all the ULR's or it will look

[symfony-users] Re: changing the default signin form's layout in sfGuardAuth

2009-04-17 Thread Nathanael D. Noblet
ckemmler wrote: I mean: just the form, not the layout of the entire page Create a module in your application with the same name as the module in the plugin, then create a templates folder, with a template for that action. -- Nathanael d. Noblet T: 403.875.4613

[symfony-users] Re: changing the default signin form's layout in sfGuardAuth

2009-04-17 Thread ckemmler
I did that. But the problem I have is that the forms are dynamic, i.e. they can include error messages for example. Thus, what I need is a formatter. The documentation seems to be incomplete in that regard. It speaks of setting a form formatter (I tried the list one, but it didn't work) and also