[symfony-users] Accessing a foreign model from a different module/controller

2008-05-01 Thread Gould, Adrian
Problem Taking the my_first symfony tutorial as the basis for this problem... We have a module called main which has no associated table/model. We want to access the Post model from this controller so that we can put the last five posts on the default page that is displayed using the main

[symfony-users] Re: Accessing a foreign model from a different module/controller

2008-05-01 Thread Thomas Dedericks
Hi, you can access the Post model inside any module using the PostPeer class. In your controller action : $c = new Criteria(); $c-addDescendingOrderByColumn(PostPeer::ID); $c-setLimit(5); $this-posts = PostPeer::doSelect($c); and you'll have access to the

[symfony-users] Re: Accessing a foreign model from a different module/controller - SOLVED

2008-05-01 Thread Gould, Adrian
Thanks Thomas DOH! I missed a simple thing in the solution I had - a semicolon! BUGGER :-) Ady --- Adrian Gould Lecturer in IT / Network Engineering / Multimedia Business Finance Computing [Midland Campus] Swan TAFE PO BOX 1336, Midland WA 6936 Phone: (08) 9267 eMail: [EMAIL PROTECTED]

[symfony-users] sfLucene - addrange and timestamp, list all

2008-05-01 Thread gimler
hello, i have successfull installed sfLucenePlugin. but i run into problems: my search.yml config: fields: id: unindexed text: boost: 1.5 type: text tag: text user: text created_at: unindexed updated_at: unindexed 1. Is

[symfony-users] Re: Route named editar_dvd have a mandatory id_licencia parameter

2008-05-01 Thread Nicolas Perriault
Le 1 mai 08 à 02:43, Reynier Perez Mira a écrit : [sfException] Route named editar_dvd have a mandatory id_licencia parameter Try to invert the editar_dvd and form_editar_dvd routes ++ -- Nicolas --~--~-~--~~~---~--~~ You received this message because you

[symfony-users] sfLucene - addrange and timestamp, list all

2008-05-01 Thread gimler
hello, i have successfull installed sfLucenePlugin. but i run into problems: my search.yml config: fields: id: unindexed text: boost: 1.5 type: text tag: text user: text created_at: unindexed updated_at: unindexed 1. Is

[symfony-users] Re: New startup for writers - fictionthis.com

2008-05-01 Thread benchik
Great site, i really liked it. On Apr 18, 3:13 pm, Ilia [EMAIL PROTECTED] wrote: Hi, Some friends and I are really interested in writing so we tried to find a site where we can write together to create a book, and vote on each others work. After looking around we found that there wasn't much

[symfony-users] password validation / sfCompareValidator / group_msg

2008-05-01 Thread Lee Bolding
Hey gang, I have a form where users can edit their profiles - and it has fields so that the user can change their password. These aren't required though - if they are left blank, the user doesn't want to change their password. The Symfony manual states how to achieve this here :

[symfony-users] Re: Problem with sessions in batch file

2008-05-01 Thread Tom Haskins-Vaughan
Hi Guys, Would anyone be willing to send me their batch file for sending emails from a mail queue stored in a database? TIA, Tom Tom Haskins-Vaughan wrote: So, I think I've got it going ok, but I'm getting the following notices for each time I loop thought my mail action: PHP Notice:

[symfony-users] 1.1 forms: radios + selects

2008-05-01 Thread tom ee
3 questions really: How do I get rid of the list html tags around my radio buttons? Touching the library files and removing the tags from the formatter() function makes the radio buttons not display at all. How do I make one of the radio buttons selected by default? I can see there's place for

[symfony-users] stoopid question - Generate PDF from dynamic page

2008-05-01 Thread Jill Elaine
I am embarrassed that I don't know how to do this. I have installed sfDomPDFPlugin http://trac.symfony-project.com/wiki/sfDomPDFPlugin Following the directions included with the plugin, I am able to generate a PDF from a simple static page. But I cannot figure out how make this plugin work with a

[symfony-users] Re: Route named editar_dvd have a mandatory id_licencia parameter

2008-05-01 Thread Reynier Perez Mira
Hi Nicolas and thanks for your reply: Try to invert the editar_dvd and form_editar_dvd routes If by invert you mean this: form_editar_dvd: url: /EditarDVD param: { module: geslicsoft, action: EditarDVD } editar_dvd: url: /EditarDVD/:id_dvd param: { module: geslicsoft, action:

[symfony-users] extends sfActions problem in a common lib

2008-05-01 Thread Olivier LOYNET
Hi, First at all I've clean the cache :) I've create a lib named myGlobalActions.class.php to extend sfActions to have some methods for all the module Actions as : [code] class myGlobalActions extends sfActions { public function getGlobalFilters() { $this-filters =

[symfony-users] Re: extends sfActions problem in a common lib

2008-05-01 Thread Nicolas Perriault
Le 1 mai 08 à 22:54, Olivier LOYNET a écrit : What is missing ? You must extend your module actions class with your custom actions class : ?php class myModuleActions extends myGlobalActions { } ++ -- Nicolas --~--~-~--~~~---~--~~ You received this message

[symfony-users] Re: extends sfActions problem in a common lib

2008-05-01 Thread Olivier LOYNET
Hi Nicolas, It works ! Thanks, you save me time again. At start I do like your myActions class in your symfonians project. By the way, I'm not a sf killer, is it the right place to store some global sessions parameters for all the app ? At this time, I made a lot of refactoring in my app,

[symfony-users] Re: extends sfActions problem in a common lib

2008-05-01 Thread Nicolas Perriault
On Thu, May 1, 2008 at 11:30 PM, Olivier LOYNET [EMAIL PROTECTED] wrote: By the way, I'm not a sf killer, is it the right place to store some global sessions parameters for all the app ? Well, I don't know your project context, but maybe you should consider storing session attributes in your

[symfony-users] Re: New startup for writers - fictionthis.com

2008-05-01 Thread Richtermeister
Very nice! Best wishes for success or just plain fun :) Daniel On May 1, 5:55 am, benchik [EMAIL PROTECTED] wrote: Great site, i really liked it. On Apr 18, 3:13 pm, Ilia [EMAIL PROTECTED] wrote: Hi, Some friends and I are really interested in writing so we tried to find a site where we

[symfony-users] http://www.symfony-project.org/ is down. again.

2008-05-01 Thread Daevid Vincent
I'm new to symphony (but a guru at PHP) and this is my frist post. I've been taking the tutorial off and on since 04/21 (between reading the paper book I purchased and doing my other job duties), and in that time, I've been frustrated by the number of times the http://www.symfony-project.org/ site

[symfony-users] Re: http://www.symfony-project.org/ is down. again.

2008-05-01 Thread Tom Haskins-Vaughan
Can't speak for the problms with the web hosting, but in the meantime have you tried looking at Google's cached version of the Askeet tutorial? Daevid Vincent wrote: I’m new to symphony (but a guru at PHP) and this is my “frist post”. I’ve been taking the tutorial off and on since 04/21

[symfony-users] Re: password validation / sfCompareValidator / group_msg

2008-05-01 Thread Kostas Papadimitriou
You should be getting 2 errors one for password1 and one for password2 group_msg is a message that appears when one of the group fields is not set in the request, and it exists because grouping form fields can be used in many other cases other than password matching. think of it like that

[symfony-users] Re: http://www.symfony-project.org/ is down. again.

2008-05-01 Thread Mohammad Ali Safari
As far as I know yahoo bookmark (with 20M users) and the new version of deli.cio.us are developed based on symfony, though they have customized it. In regard to your concern, I don't agree; That's actually why people choose frameworks instead of CMS to be able to customize it to any level that

[symfony-users] Re: http://www.symfony-project.org/ is down. again.

2008-05-01 Thread Piers Warmers
Is this a problem with the hosting provider or symphony itself? There's no response from Apache on the project site at the moment... so it looks like an issue beyond Symfony. In my experience, Symfony has been very stable and scalable. My sites still go down - one of my hosting company

[symfony-users] Announce: sfInstantCMSPlugin

2008-05-01 Thread John Singleton
Hello Everybody, I am writing to announce the arrival of sfInstantCMSPlugin. The InstantCMS plugin will enable you to quickly create a custom CMS without writing a single line of database related code. This plugin was inspired by the Zope application server and works by creating a system