[symfony-users] Force an Autocompletion list pick for input_auto_complete_tag

2008-06-23 Thread Shinkan
Hi Everyone ! Don't you know if there is a mean to force user selecting an autocomplete list choice when using input_auto_complete_tag ? I would like the input_auto_complete_tag to be kinda read-only : the user could only select something in the autocomplete list, but would not be able to type

[symfony-users] Joining and Hydrating Propel Objects

2008-06-23 Thread Manoj Ghimire
One of my tables has about 10 foreign keys. Now I need Propel to select the table values joining and hydrating with respect to 2 foreign keys. I know for 1 key I can be done with doSelectJoinXXX, but what if I want to join 2 tables ?? I can't even use doSelectJoinAllExceptXXX cause that would

[symfony-users] Re: Joining and Hydrating Propel Objects

2008-06-23 Thread Thomas Rabaix
You have to - create a criteria object - join the table you want - use YourFirstTablePeer::addSelectColumns($c) and YourSecondTablePeer::addSelectColumns($c) - $rs = YourFirstTablePeer::doSelectRs($c) - hydrate your objects : while($rs-next()) { $firstObject = new $pos =

[symfony-users] Generating url for a route with param containing slashes

2008-06-23 Thread Nicolas CHARLOT
Hi, I'm trying to get the url of a route with a param containing slashes like @mypage?slug=foo/bar. The genUrl() methode of sfWebController encode the param and return : /mypage/foo%2Fbar rather than /mypage/foo/bar. I found a very bad solution in using a PLACEHOLDER in place of the param

[symfony-users] Re: Generating url for a route with param containing slashes

2008-06-23 Thread Lee Bolding
The only solution I've found is to Base64 encode the URL - you get the same problem with the sfExternalLinkTracker plugin. Base64 encoding the URL seems to solve most of these problems. On 23 Jun 2008, at 13:19, Nicolas CHARLOT wrote: Hi, I'm trying to get the url of a route with a

[symfony-users] Re: creating object from another one

2008-06-23 Thread Richtermeister
That is good info, thanks for sharing. I always have created_at columns, so I assumed you can always save empty object.. now I'm actually preferring the no saving of empty objects approach :) Thanks again, and have a great day. Daniel On Jun 22, 9:59 pm, simo [EMAIL PROTECTED] wrote: Hi

[symfony-users] sfLucene and words highlighting

2008-06-23 Thread Olivier Revollat
I installed sfLucene plugin and when I use it an exception is thrown by sfLucenHilighter.class.php : throw new sfLuceneHighlighterException('Highlighting failed because content is malformed X/HTML'); Acctually my code is not XHTML... so I want to desactivate syntax highlighting in sfLucen

[symfony-users] Re: Force an Autocompletion list pick for input_auto_complete_tag

2008-06-23 Thread Richtermeister
Hi Shinkan, that sounds like a chicken egg problem, where you can't disable the field completely, since the user would never be able to trigger it.. I guess you would need to watch userinput on this field, and on every keystroke ensure that you only allow letters that make sense with what is in

[symfony-users] Re: Force an Autocompletion list pick for input_auto_complete_tag

2008-06-23 Thread Shinkan
Hi Daniel, Thanks for your quick and consciencious answer. I don't want to overload client-side treatments with an each-letter- triggered call. Above all, this would be a relatively heavy treatment as you would have to access the autocomplete list, then search in it for cohesions. I thought

[symfony-users] Re: Generating url for a route with param containing slashes

2008-06-23 Thread Nicolas CHARLOT
Le 23 juin 08 à 15:10, Lee Bolding a écrit : The only solution I've found is to Base64 encode the URL U mean after generation ? -- Nicolas CHARLOT http://www.isics.fr --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[symfony-users] Re: Generating url for a route with param containing slashes

2008-06-23 Thread Francois Zaninotto
how about: function link_to_path($text, $uri, $options = array()) { $link = link_to($text, $uri, $options); return str_replace('%2F', '/', $link); } Still kinda hackish, but since you can't selectively deactivate URL parameter encoding in symfony... Cheers, François 2008/6/23 Nicolas

[symfony-users] Symfony Form Framework: sfForm ArrayAccess

2008-06-23 Thread Marijn
Hi Everybody, Today I was creating a form with the new form framework, which is really a joy once you're past understanding its approach :-D It left me to wonder if it would be a nice addition if sfForm implemented the arrayitterator interface so you could loop over form fields to create the

[symfony-users] sfGuard, securing and Templates

2008-06-23 Thread Gould, Adrian
Good morning everyone Just want a few pointers on how to do the following. 1) Add a link to the sfGuard login on an application template 2) Secure selected modules of an application based upon user group 3) Allow main module to be accessible to everyone All assistance would be appreciated.

[symfony-users] Re: sfGuard, securing and Templates

2008-06-23 Thread Piers Warmers
Hi Adrian, 1 ) Try something like: ?php echo link_to(__(login), @sf_guard_signin) ? of if you want a more aware link: ?php echo ($sf_user-isAuthenticated()) ? link_to(__(logout), @sf_guard_signout): link_to(__(login), @sf_guard_signin); ? 2 ) Try not to think of it in terms of

[symfony-users] Re: Multiple applications sharing one set of assets

2008-06-23 Thread David Brewer
Thanks for the suggestion -- I don't think that will work in my particular case, but it reminds me that I have other options than just adding on to the routing system itself. For instance, I could use a filter to fix some of these problems. Not ideal, but at least it would keep the problematic