[symfony-users] Re: doctrine admin buildQuery

2009-03-04 Thread Ken Marfilla
Ticketed! On Mar 5, 1:49 am, Jonathan Wage wrote: > I chose r for rootAlias as that is the variable used internally in Doctrine. > > Can you create a ticket and we'll include this information in the > documentation. > > Thanks, Jon > > On Wed, Mar 4, 2009 at 4:57 AM, ken wrote: > > > I checked

[symfony-users] Re: sql between statement

2009-03-04 Thread Dheeraj Kumar Aggarwal
hi u should try this $c = new Criteria(); $date1 = '2008-02-03';//-mm-dd $date2 = '2008-03-03'; // test against date1 $date1Criterion = $c->getNewCriterion(TransactionsPeer::START_DATE, $date1, Criteria::LESS_EQUAL); // test against date2 $date2Criterion = $c->getNewCriterion(TransactionsP

[symfony-users] sql between statement

2009-03-04 Thread janlarosa
hi all im a new user of sysmfony i hope can help me to translate this statement to symfony SELECT * FROM transactions WHERE user_id = 28 AND created_at BETWEEN '3/2/2008 12:00:00 AM ' AND '3/3/2009 11:59:59 PM ' Thanks, --~--~-~--~~~---~--~~ You received this m

[symfony-users] sfWidgetFormChoice and empty value

2009-03-04 Thread Paolo Mainardi
Why doesn't exist an option for setting an empty value on this Widget ? I'm going crazy! Cheers -- Paolo Mainardi Vice Presidente Assoc.ILDN (http://www.ildn.net) Blog: http://www.paolomainardi.com --~--~-~--~~~---~--~~ You received this message because you are

[symfony-users] Re: Help with sfDoctrineGuard

2009-03-04 Thread Brian Racer
That fixed it. I actually tried that before, but would get SQL errors adding the foreign key. I realized Doctrine's integer default is BIGINT on mysql, so I changed it to integer(4) and it worked. The fixture still gets the same error though. There are two lines that stand out to me in the base

[symfony-users] I18n in forms messages

2009-03-04 Thread boozee
Hello, I have made a section in my messages.he.xml to translate the "An object with the same "%column%" already exist." message, to my local language. However, while most of the sentence was translated fine, the content of %column% - the name of the column (username for example) - wasn't translat

[symfony-users] Re: Form custom display formats

2009-03-04 Thread Yevgeniy A. Viktorov
The first of all you have to create: lib/widget/WidgetFormSchemaFormatterDiv.class.php ### With something like: class sfWidgetFormSchemaFormatterDiv extends sfWidgetFormSchemaFormatter { protected $rowFormat = '%error%%field%%help%', $helpFormat = '%help%', $errorRowFormat = '%err

[symfony-users] Symfony 1.0, how to i18n validate yml?

2009-03-04 Thread Sid Bachtiar
Hi, In the yml files under validate folder, how do I make it i18n? Or is it already i18n if it is enabled? E.g.: do I need to do something like this to make it i18n? fields: image: file: True required: msg: __("Please browse an image to upload") -- Blue Horn Ltd -

[symfony-users] Re: Help with sfDoctrineGuard

2009-03-04 Thread Lee Bolding
At a guess, I'd say your foreign key reference doesn't work because it's the primary key in your sf_guard_user_profile. Create an id column, and then I think it will start working (you can always make user_id unique if you want only 1 profile per user). On 4 Mar 2009, at 23:56, Brian Racer w

[symfony-users] Help with sfDoctrineGuard

2009-03-04 Thread Brian Racer
I have used sfGuard before, but I would like to start taking advantage of Doctrine. I installed sfDoctrineGuard and followed the README and got a basic setup working. Next I wanted to add a custom profile. The README docs stil

[symfony-users] Re: Sending Email from CLI task in Symfony 1.2

2009-03-04 Thread danielwinter
Thanks James, here's my working code from the task's execute() method in case it helps anyone else: $configuration = ProjectConfiguration::getApplicationConfiguration ('climategp', 'dev', false); sfContext::createInstance($configuration); $configuration->loadHelpers('Partial'); tr

[symfony-users] Re: Remove .html suffix from admin generator urls

2009-03-04 Thread Bernhard Schussek
Hi, Try "generate_shortest_url" in factories.yml: all: routing: class: sfPatternRouting param: generate_shortest_url:true Bernhard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfo

[symfony-users] Re: How do you efficiently build object graphs

2009-03-04 Thread Steve the Canuck
Thanks very much for the link! That really showed me what I was looking for. I don't think a database view is appropriate in my case, but the code was very useful. The key thing I wasn't aware of was use of the addColumns() and hydrate () methods in this context. I have solved this issue as f

[symfony-users] Form custom display formats

2009-03-04 Thread Timothy Bowler
The forms book refers to chapter 5 on how to create more Formats for forms. I have looked in the book and the jobeet book and find to reference. So, erm have i missed something? Want to do something like $this->widgetSchema->setFormFormatterName('div'); Thanks signature.asc Description: This is

[symfony-users] Re: frontend & backend routing

2009-03-04 Thread Tomasz Ignatiuk
I see that this error shows only for modules where I have edit links for list. For example for /partner/new there is no error, it works. But _list_td_action.php in cache looks the same in prod and in dev environments: linkToEdit($partner, array( 'params' => array( ), 'class_suffix' =>

[symfony-users] Re: I can not get sfWidgetFormTextareaTinyMCE to work, even when I copy the examples straight from the Symfony website

2009-03-04 Thread Crafty_Shadow
A discussion about just this and other problems with sfWidgetFormTextareaTinyMCE took place a few days ago here, next time first search the mailing list please: http://groups.google.com/group/symfony-users/browse_thread/thread/b4950dd116b8aa3e?hl=en On Mar 4, 3:41 pm, Lawrence Krubner wrote: >

[symfony-users] Re: frontend & backend routing

2009-03-04 Thread Tomasz Ignatiuk
Any guess? I have these settings: prod: .settings: no_script_name: off logging_enabled:off dev: .settings: error_reporting: web_debug: on cache: off no_script_name: off etag: off --~--

[symfony-users] Re: Countries / Timezones again

2009-03-04 Thread heathd
Hi Lee, > There's actually built in PHP functionality for this > :http://uk2.php.net/manual/en/class.datetimezone.php thanks for the link. The question for me is not so much how to actually perform the timezone transformations, but rather how to tie in with the existing symfony framework. For

[symfony-users] Problems testing Jobeet

2009-03-04 Thread gustavo
Hello everyone! I am testing the Jobeet application but a error is making me sad. The error is: not ok 2 - last request threw an uncaught exception InvalidArgumentException: The /:sf_culture/affiliate/:id/ wait.:sf_format route has some missing mandatory parameters (:id) The problem is that in m

Re : [symfony-users] Using Symfony into other applications

2009-03-04 Thread Loïc Vernet
Hi, The sfJoomlaBridgePlugin is not maintained any more (it was for the old Joomla 1.0 version and symfony 1.0), you should look at the sfJoomla15BridgePlugin (http://www.symfony-project.org/plugins/sfJoomla15BridgePlugin) witch is for Joomla 1.5 and symfony 1.2.x ++ COil _

[symfony-users] Re: Sending Email from CLI task in Symfony 1.2

2009-03-04 Thread James Cauwelier
Here 's some code of mine, although I use it on sf1.1. It should work on 1.2 as far as I know namespace= 'send'; $this->name = 'resetPassword'; $this->briefDescription = 'Send reset password emails'; $this->detailedDescription = <

[symfony-users] Re: Not finding accented search terms in Lucene

2009-03-04 Thread Thomas Rabaix
Have you share your issues at some points? maybe the community may help... On Wed, Mar 4, 2009 at 7:02 PM, David Landgren wrote: > > Thomas Rabaix wrote: > > Yes I was. What didn't work with sfLucene ? > > I didn't even try. I ran into sufficient grief with other plugins that > didn't work with

[symfony-users] Re: Not finding accented search terms in Lucene

2009-03-04 Thread David Landgren
Thomas Rabaix wrote: > Yes I was. What didn't work with sfLucene ? I didn't even try. I ran into sufficient grief with other plugins that didn't work with 1.2 and/or not well documented that I didn't bother. The code in the Jobeet tute is easy enough to figure out and adapt. David > On Wed, M

[symfony-users] Remove .html suffix from admin generator urls

2009-03-04 Thread IsRobot
Is there a way to configure an admin generated module so that it does not use the .html suffix on urls? I tried setting "suffix: ." in routing.yml, generator.yml and factories.yml but it had no effect. --~--~-~--~~~---~--~~ You received this message because you a

[symfony-users] Re: doctrine admin buildQuery

2009-03-04 Thread Jonathan Wage
I chose r for rootAlias as that is the variable used internally in Doctrine. Can you create a ticket and we'll include this information in the documentation. Thanks, Jon On Wed, Mar 4, 2009 at 4:57 AM, ken wrote: > > I checked sfFormFilterDoctrine just to find out what Doctrine::Query > is usi

[symfony-users] Re: Not finding accented search terms in Lucene

2009-03-04 Thread Thomas Rabaix
Yes I was. What didn't work with sfLucene ? On Wed, Mar 4, 2009 at 6:31 PM, David Landgren wrote: > > Thomas Rabaix wrote: > > How have you set the configuration in the search.yml ? like this ? > > > > index: > > encoding: UTF-8 > > analyzer: utf8num > > You're referring to sfLucenePl

[symfony-users] Re: Not finding accented search terms in Lucene

2009-03-04 Thread David Landgren
Thomas Rabaix wrote: > How have you set the configuration in the search.yml ? like this ? > > index: > encoding: UTF-8 > analyzer: utf8num You're referring to sfLucenePlugin? The couple of plugins I've tried for other stuff didn't work out very well, so since then I've given them a w

[symfony-users] Re: Not finding accented search terms in Lucene

2009-03-04 Thread Thomas Rabaix
How have you set the configuration in the search.yml ? like this ? index: encoding: UTF-8 analyzer: utf8num On Wed, Mar 4, 2009 at 6:02 PM, David Landgren wrote: > > Symfonians, > > (Yeah I know this is a bit of a FAQ, but I'm stuck, despite all my > readings). > > I have taken[1] a

[symfony-users] Not finding accented search terms in Lucene

2009-03-04 Thread David Landgren
Symfonians, (Yeah I know this is a bit of a FAQ, but I'm stuck, despite all my readings). I have taken[1] a Lucene search facility that works, except that a search term that contains an accented character finds nothing. Non-accented is fine. 1. from http://blog.hma-info.de/2007/09/15/integr

[symfony-users] sfDoctrine behavior sluggable update

2009-03-04 Thread Olivier.
Hi, I don't understand the way the Sluggable Behavior act on an update. For me, if the canUpdate option is set to true and you get a change on one of the field "parent" of the slug, then he must update himself. It's why i made a change on the preUpdate method of the listener : File : /sfProjec

[symfony-users] sfDoctrineActAsTaggablePlugin problem removing tags

2009-03-04 Thread Michael Smith
I'm having an issue with ->removeAllTags() removing the association to tags. The below test case will fail with the titi tag still associated after ->save(). Any ideas what is causing this using symfony 1.2 svn and sfDoctrineActAsTaggablePlugin svn? $object = _create_object(); $object->addTag('tu

[symfony-users] Re: Routing URL's and image URL's from third-party application

2009-03-04 Thread joostdj
I'm still stuck on this one... Any idea's yet? On 22 jan, 13:32, joostdj wrote: > I have a third-party web application (phpBB) in which I want to > include some symfony components (to simulate the sf layout). The phpBB > app is stored in the dir 'web/forum'. I've got a working solution, but > al

[symfony-users] Re: Propel 1.3 nestedset strange behavior

2009-03-04 Thread Gorka
Last time I checked -though it was months ago- I think nodes could not be moved through the tree, but I am not sure. Maybe the limitation was that they could not be moved between different trees (different scopes)... sorry for my bad memory. Anyway, I've personally found Propel1.3 nestedset imple

[symfony-users] Re: Countries / Timezones again

2009-03-04 Thread Lee Bolding
Hi David, There's actually built in PHP functionality for this : http://uk2.php.net/manual/en/class.datetimezone.php Although I haven't yet implemented this, I will be doing so shortly. I expect I'll save the abbreviated timezone into the users profile, rather than the UTC offset. Reason be

[symfony-users] Re: Frontend & backend - one login form

2009-03-04 Thread Tomasz Ignatiuk
It works!!! My mistake, I am sorry :) I set the name of a session but didn't uncomment all settings. 2009/3/4 Tomasz Ignatiuk > 2009/3/4 Yevgeniy A. Viktorov > > >> >> If I am correctly understand, >> >> you just need to define different session name for backend application, >> look for "sessio

[symfony-users] Re: Frontend & backend - one login form

2009-03-04 Thread Tomasz Ignatiuk
2009/3/4 Yevgeniy A. Viktorov > > > If I am correctly understand, > > you just need to define different session name for backend application, > look for "session_name" in apps/backend/config/factories.yml > > Thanks. > > On Wed, 2009-03-04 at 06:58 -0800, Tomasz Ignatiuk wrote: > > I couldn't mak

[symfony-users] [ Symfony Sandbox ]

2009-03-04 Thread Nabil EL GHALI
Hi there, I am trying to build an application made with symfony 1.1 what i can use to do that sandbox or symfony lib ? Any Ideas? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To

[symfony-users] Re: Frontend & backend - one login form

2009-03-04 Thread Yevgeniy A. Viktorov
If I am correctly understand, you just need to define different session name for backend application, look for "session_name" in apps/backend/config/factories.yml Thanks. On Wed, 2009-03-04 at 06:58 -0800, Tomasz Ignatiuk wrote: > I couldn't make it working so I dropped this. Now I use two log

[symfony-users] Using Symfony into other applications

2009-03-04 Thread martin
Hi there, I am trying to use an application made with symfony into joomla. I'm using sfJoomlaBridgePlugin but I have some problems. I can't use Symfo-session so I can't authenticate or make sortable lists. Any Ideas? Thanks! --~--~-~--~~~---~--~~ You received

[symfony-users] Re: Frontend & backend - one login form

2009-03-04 Thread Tomasz Ignatiuk
I couldn't make it working so I dropped this. Now I use two login forms. One for frontend mydomain.com One for backend mydomain.com/backend.php The problem is when I log in into front end, I will be also logged in into backend. For now I don't want to use credentials. So how to setup this in order

[symfony-users] Countries / Timezones again

2009-03-04 Thread heathd
Hi, back in sept 2008 there was an inconclusive discussion of this: http://tinyurl.com/cy37oj The objective is to allow users to specify their own timezone and have date/times displayed accordingly. Dates/times would be stored in UTC internally in the database. I've looked a bit at the code and

[symfony-users] Re: I can not get sfWidgetFormTextareaTinyMCE to work, even when I copy the examples straight from the Symfony website

2009-03-04 Thread Lawrence Krubner
On Mar 4, 4:51 am, Garakkio wrote: > My humble opinion: it's better to use directly javascript to get > tinyMCE working. > So, simple add a "class="rich"" to yout textarea and write (and > include it in your page, of course) a js like this one: > > tinyMCE.init({ >   theme : "advanced", >   mod

[symfony-users] Re: frontend & backend routing

2009-03-04 Thread Tomasz Ignatiuk
Yes, of course 2009/3/4 Jan De Coster > > Did u cleared the cache ? > > kr, > > Tomasz Ignatiuk wrote: > > It is strange because in dev everything works fine. But only in prod > > environment this bug is shown. > > > > > > > > > > --~--~-~--~~~---~--~~ You receiv

[symfony-users] Re: frontend & backend routing

2009-03-04 Thread Jan De Coster
Did u cleared the cache ? kr, Tomasz Ignatiuk wrote: > It is strange because in dev everything works fine. But only in prod > environment this bug is shown. > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[symfony-users] Re: frontend & backend routing

2009-03-04 Thread Tomasz Ignatiuk
It is strange because in dev everything works fine. But only in prod environment this bug is shown. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-u

[symfony-users] frontend & backend routing

2009-03-04 Thread Tomasz Ignatiuk
Hi I have a frontend with no_script_name: on and a backend with no_script_name: off in order to make it work. Frontend works well but in backend when I click on a menu link: I get this error: The "/partner/:id/edit.:sf_format" route has some missing mandatory parameters (:id). Do you know what d

[symfony-users] Re: Propel 1.3 nestedset strange behavior

2009-03-04 Thread Yevgeniy A. Viktorov
I see, sorry. I think you can request account thru development mailing list. Or just post issue directly there or to user mailing list: http://propel.phpdb.org/trac/wiki/Support/MailingLists Thanks. On Wed, 2009-03-04 at 01:20 -0800, Jérôme TEXIER wrote: > > On 4 mar, 00:28, "Yevgeniy A. Vik

[symfony-users] Sending Email from CLI task in Symfony 1.2

2009-03-04 Thread danielwinter
Wanting to send emails using templates from a CLI task.The cookbook says: "You'll need to use get_partial() and get_component() functions in PartialHelper instead of sfAction::getPartial() and sfAction::getComponent() methods." But has anyone actually got this to work?!?! cheers dan --~--~--

[symfony-users] Re: I can not get sfWidgetFormTextareaTinyMCE to work, even when I copy the examples straight from the Symfony website

2009-03-04 Thread Lawrence Krubner
On Mar 4, 4:51 am, Garakkio wrote: > My humble opinion: it's better to use directly javascript to get > tinyMCE working. > So, simple add a "class="rich"" to yout textarea and write (and > include it in your page, of course) a js like this one: > > tinyMCE.init({ >   theme : "advanced", >   mod

[symfony-users] Re: what is the best way to enable JQuery in Symfony?

2009-03-04 Thread Paolo Mainardi
RTFM: http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chapter_07_view_configuration On Wed, Mar 4, 2009 at 12:45 PM, Lawrence Krubner wrote: > > > > On Mar 4, 5:50 am, Thomas Rabaix wrote: > > view.yml > > > > all: > > javascript: > > - file1 > > - file2 > > > > Thomas

[symfony-users] Re: what is the best way to enable JQuery in Symfony?

2009-03-04 Thread Lawrence Krubner
On Mar 4, 5:50 am, Thomas Rabaix wrote: > view.yml > > all: >   javascript: >     - file1 >     - file2 > Thomas, pardon my ignorance, but how does this work? I put the full path in view.yml? Like this: all: javascript: - /bocahoops/js/jquery/jquery-1.3.1.js - /bocahoops/js/jquery/j

[symfony-users] question about propel and tinymce

2009-03-04 Thread Jan De Coster
hi, Is it possible to set the default editor for a form to the rich variant ? Kr, --~--~-~--~~~---~--~~ 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@googlegro

[symfony-users] doctrine admin buildQuery

2009-03-04 Thread ken
I checked sfFormFilterDoctrine just to find out what Doctrine::Query is using as alias for the base table in buildQuery method. I did this because i'm having trouble doing joins to improve the performance of the admin list. Lo and behold, it is 'r'! Is there any reason why 'r' is used instead of

[symfony-users] Re: what is the best way to enable JQuery in Symfony?

2009-03-04 Thread Thomas Rabaix
view.yml all: javascript: - file1 - file2 On Wed, Mar 4, 2009 at 5:08 AM, Lawrence Krubner wrote: > > > > On Mar 3, 10:35 pm, Damien Lepage wrote: > > You can use sfJqueryReloadedPlugin which allows to specify a path to > > jquery.js in your app.yml > > The plugin does not handle the

[symfony-users] Doctrin one to one relation problem

2009-03-04 Thread shahin
hi, i have two table define as below: Node: actAs: { Timestampable: ~ } columns: id: {type: integer(8), primary: true, autoincrement: true} relations: Category: class: Category local: category_id foreign: id type: one fo

[symfony-users] Re: Overriding javascript_include_tag

2009-03-04 Thread Fabrice B
Sumedh, it should work, you just need to be sure you put the file in your lib/ helper directory. Here is the code loading the helpers, you can see that the sfConfig::get('sf_lib_dir').'/helper' directory comes before the sfConfig::get('sf_symfony_lib_dir').'/helper' directory /** * Gets the

[symfony-users] Re: I can not get sfWidgetFormTextareaTinyMCE to work, even when I copy the examples straight from the Symfony website

2009-03-04 Thread Garakkio
My humble opinion: it's better to use directly javascript to get tinyMCE working. So, simple add a "class="rich"" to yout textarea and write (and include it in your page, of course) a js like this one: tinyMCE.init({ theme : "advanced", mode: "textareas", editor_selector : "rich", // any o

[symfony-users] Re: Propel 1.3 nestedset strange behavior

2009-03-04 Thread Jérôme TEXIER
On 4 mar, 00:28, "Yevgeniy A. Viktorov" wrote: > Have you tried to post ticket there? > As I wrote it, yes. Message rejected by Trac. Regards. Jérôme --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users

[symfony-users] Jobeet book doctrine version not correct?

2009-03-04 Thread gimler
Hello @symfony-team, i have buy the jobeet doctrine book. the first book that was delivered was a propel version ok i send lulu an email and get another book this has a doctrine cover but i think a propel content. So chapter 6 has the title "The Propel Criteria Object" also the other stuff look