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

2009-11-09 Thread Nicolas Perriault
On Mon, Nov 9, 2009 at 8:00 AM, juro fo...@juro.at wrote: Class sfEvent must be a child class of Doctrine_Record There's already a sfEvent class in symfony (the one used by the event dispatcher), so you have a naming conflict there. Rename your model name to something else should solve your

[symfony-users] Re: link_to_remote() - using ajax to delete posts

2009-11-09 Thread Murali Krishna B
Hi all, I am also facing the same problem in deleting posts with AJAX. The partial is creating some random id's for delete links. But events are not added for those links. When it is done from template, I can see all delete links and their events. But When I deleted a post from them, partial is

[symfony-users] my solution for i18n forms

2009-11-09 Thread dziobacz
Creating i18n forms with only some fields from table isn't possible so I give You my idea :) I have schema.yml: Firm: actAs: I18n: fields: [description, address] columns: id_firm: type: integer(1) primary: true autoincrement: true email: type:

[symfony-users] Re: link_to_remote() - using ajax to delete posts

2009-11-09 Thread dziobacz
You must add in partial file '_yourpartialfile.php': ?php use_helper('Javascript') ? On 9 Lis, 10:31, Murali Krishna B muralikrishna.vi...@gmail.com wrote: Hi all, I am also facing the same problem in deleting posts with AJAX. The partial is creating some random id's for delete links. But

[symfony-users] Re: link_to_remote() - using ajax to delete posts

2009-11-09 Thread Murali Krishna B
Hi, Thanks for reply, I added this helper in my partial. Still not working :( -- Murali 2009/11/9 dziobacz aaabbbcccda...@gmail.com You must add in partial file '_yourpartialfile.php': ?php use_helper('Javascript') ? On 9 Lis, 10:31, Murali Krishna B muralikrishna.vi...@gmail.com

[symfony-users] Re: form-Render() when embedding?

2009-11-09 Thread Gareth McCumskey
?php echo $form['widget1']-render() ? ?php echo $form['widget2']-render() ? Documentation is a wonderful thing: http://www.symfony-project.org/forms/1_2/en/03-Forms-for-web-Designers#chapter_03_sub_using_the_render_method_on_a_field On Mon, Nov 9, 2009 at 3:35 AM, cosmy c.zec...@gmail.com

[symfony-users] Some question regarding SF plugins

2009-11-09 Thread ReynierPM
Hi every: I use several plugins in my applications: sfGuardDoctrine, sfExtraWidgets and so on. I follow Symfony Blog every day and see that many of those plugins are updated constantly. My question here is: are the tarball (.tar.gz) updated too or just the SVN code is updated? When those

[symfony-users] Re: link_to_remote() - using ajax to delete posts

2009-11-09 Thread dziobacz
Maybe try include in frontend\(or backend)\config\view.yml: javascripts:[jquery] And download jquery from: http://jquery.com/ and add it to web\js Then: symfony cc On 9 Lis, 11:15, Murali Krishna B muralikrishna.vi...@gmail.com wrote: Hi, Thanks for reply, I added this helper in my

[symfony-users] Re: form-Render() when embedding?

2009-11-09 Thread cosmy
Yes documentation is a great thing but maybe i haven't explained well the situation. I don't want to access the widget of the main form but a child one. My form embed several forms of the same class, so the widgets of these forms have the same names, but not the forms (I numerate them while

[symfony-users] How to disable sfBrowser output to use tests with phpUnit?

2009-11-09 Thread Bruno Reis
I´m using phpunit with symfony. For functional tests, we set up a bootstrap to use the sfBrowser. It is working fine, but I need to use only the output from phpdoc. How is that possible? --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[symfony-users] Re: form-Render() when embedding?

2009-11-09 Thread Gareth McCumskey
My apologies for misunderstanding. Have you perhaps just tried: ?php echo $form['embedded_form']['widget1']-render() ? On Mon, Nov 9, 2009 at 4:59 PM, cosmy c.zec...@gmail.com wrote: Yes documentation is a great thing but maybe i haven't explained well the situation. I don't want to access

[symfony-users] Re: form-Render() when embedding?

2009-11-09 Thread Gareth McCumskey
Of course one other way of seeing what the $form object contains is just doing a var_dump($form); and working back from there On Mon, Nov 9, 2009 at 4:59 PM, cosmy c.zec...@gmail.com wrote: Yes documentation is a great thing but maybe i haven't explained well the situation. I don't want to

[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: Symfony BugHuntDay - Who 's coming?

2009-11-09 Thread Stefan Koopmanschap
People coming from the Utrecht area might be able to get a ride in my car. I can take up to three people with me to Belgium Stefan On Thu, Nov 5, 2009 at 7:41 PM, James Cauwelier james.cauwel...@gmail.com wrote: Are there other people with similar problems?  Which railway station would be

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

2009-11-09 Thread juro
sfCalendar makes sense sfCalendarEvent doesn't sfDoctrineEventManagementPlugin sfDoctrineEMEvent.class sfDoctrineEMCalendar.class ?? On Nov 9, 9:56 pm, Nicolas Perriault nperria...@gmail.com wrote: On Mon, Nov 9, 2009 at 8:39 PM, juro fo...@juro.at wrote: sfEventManagementPlugin

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

2009-11-09 Thread Nicolas Perriault
On Mon, Nov 9, 2009 at 8:39 PM, juro fo...@juro.at wrote: sfEventManagementPlugin Event.class.php Calendar.class.php Try to always prefix your symfony-related class names with sf or something else. Here you could use sfCalendar and sfCalendarEvent. Also, if your plugin is tied with an ORM,

[symfony-users] Re: Doctrine nestedSet delete with application level cascade

2009-11-09 Thread David Ashwood
Setup a Doctrine Record Event listener: http://www.doctrine-project.org/documentation/manual/1_1/en/event-listeners#record-listeners Pre or Post Delete - it's up to you. On Mon, 2009-11-09 at 21:02 +0100, Georg Gell wrote: Is there a way to have a table with the nestedSet behaviour cascade

[symfony-users] Re: form-Render() when embedding?

2009-11-09 Thread Germana Oliveira
I dont know if im right but i think you want to do this: $form['embedded form']['widget']-render() Gareth McCumskey escribió: Of course one other way of seeing what the $form object contains is just doing a var_dump($form); and working back from there On Mon, Nov 9, 2009 at 4:59 PM,

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

2009-11-09 Thread Nicolas Perriault
On Mon, Nov 9, 2009 at 8:59 PM, juro fo...@juro.at wrote: ?? Another idea: prefix your class names with two or three characters of your choice, eg. if your name is John Doe: jdDoctrineCalendarPlugin jdEvent.class.php jdCalendar.class.php ++ -- Nicolas Perriault http://prendreuncafe.com -

[symfony-users] Re: Pager without database

2009-11-09 Thread Hong Kil Dong
http://snippets.symfony-project.org/snippet/177 On Nov 9, 8:33 am, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Is it possible to make a pager that doesn't use the database? In that case I make an array of objects myself and pass it on to the pager.

[symfony-users] Dynamic Routes from Database

2009-11-09 Thread Greg Freeman
I want to be able to create routes that map to modules/actions/ parameters dynamically and store them in a database. This is for a CMS. What is the best way to do this? - Subclass Routing - Load using event listeners ([url]http://dfwtek.com/blog/129-dynamic- routes-in-symfony12.html[/url]) -

[symfony-users] Re: Dynamic Routes from Database

2009-11-09 Thread Alexandru-Emil Lupu
I guess the slugs would be ok... On Tue, Nov 10, 2009 at 8:12 AM, Greg Freeman g...@imagize.com.au wrote: I want to be able to create routes that map to modules/actions/ parameters dynamically and store them in a database. This is for a CMS. What is the best way to do this? - Subclass