[symfony-users] Re: Please advise on sfGuard plugin

2008-08-20 Thread Sumedh
Thanks sounds good :) Thanks Tom... One more thing... Is it advised not to store objects in the session as attributes...so will I need to store all the fields as individual attributes? :| I mean, isn't it tedious, as we go on increasing the fields in user profile? On Aug 19, 5:46 pm, Tom

[symfony-users] Re: 1.1: Automatically denote required fields in form

2008-08-20 Thread notjosh
Hm, I managed a solution. Not very elegant, but not *too* bad either. I'll show you if you're still in need..? Josh On Aug 20, 1:02 pm, notjosh [EMAIL PROTECTED] wrote: Did you figure it out? I'm looking at it now, and it looks way harder than I'd have hoped.. The form schema is

[symfony-users] sfWidgetFormDateTime Rich format

2008-08-20 Thread Olivier Revollat
Is it possible to display the sfWidgetFormDateTime widget in javascript (i.e. rich format) I tried : ?php echo $form['date_news']-render(array('rich'=true)) ? But it doesn't works. Any idea ? Thanks :) --~--~-~--~~~---~--~~ You received this message because

[symfony-users] Re: Please advise on sfGuard plugin

2008-08-20 Thread Sumedh
I just saw there is an initialize() method, in sfBasicSecurityUser class... I didn't get what exactly does the $storage-read do? What do I need to read to understand this whole code in the user profile classes...? didn't find much in the documentation... On Aug 20, 11:08 am, Sumedh [EMAIL

[symfony-users] Re: sfPhpExcelPlugin

2008-08-20 Thread b166er
i posted this topic to developer of PHPExcel-lib (Maarten B.) here the answer from him at 18.08.2008: Should be fixed in latest source version. good luck b166er --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[symfony-users] Re: sfGuard: how to manage many profile types?

2008-08-20 Thread Thomas Rabaix
you can copy the sfGuardUser class into your lib/model folder. The autoloader load model in the lib/model first (at least for sf1.0). so you can easily redefine methods. Thomas On Wed, Aug 20, 2008 at 11:04 AM, Nicolas CHARLOT [EMAIL PROTECTED] wrote: Hi, I'm looking for the best practice

[symfony-users] Re: Problem Filtering by Date

2008-08-20 Thread Thomas Rabaix
Take care if the value come from the user request, you should add (int)$month to avoid SQL Injection. Thomas On Wed, Aug 20, 2008 at 11:34 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: You can use Criteria's custom parameter like so: $c = new Criteria(); $c-add(RecordPeer::DATE, MONTH( .

[symfony-users] Re: rendering partial in a task ?

2008-08-20 Thread Thomas Rabaix
You can put the hostname into a config file or can be an argument when you call your task. Thomas On Tue, Aug 19, 2008 at 8:12 PM, kevinkevin [EMAIL PROTECTED] wrote: Thanks... I will try the suggestions. The main problem with setting it manually is that when using source control and

[symfony-users] Re: sfGuard: how to manage many profile types?

2008-08-20 Thread Thomas Rabaix
I have a sf1.0 project with a custom sfGuardUser in lib/model and it works fine. have you try a symfony cc ? you can check the cache file to see how symfony create the autoload classes array. Thomas On Wed, Aug 20, 2008 at 11:29 AM, Nicolas CHARLOT [EMAIL PROTECTED] wrote: Le 20 août 08 à

[symfony-users] Re: sfGuard: how to manage many profile types?

2008-08-20 Thread Nicolas CHARLOT
Le 20 août 08 à 11:41, Thomas Rabaix a écrit : I have a sf1.0 project with a custom sfGuardUser in lib/model and it works fine. have you try a symfony cc ? you can check the cache file to see how symfony create the autoload classes array. Thomas Ok, u're right Thomas. Excuse-me for my

[symfony-users] Simple way to put different titles on each page

2008-08-20 Thread Vinch
Hi, To improve SEO, I want to put different titles on each page of my website. At the moment, it's the same title everywhere and that's not good for the indexation in Google (and other search engines). Is there a simple and centralize way to do that? Thanks in advance.

[symfony-users] Re: sfGuard: how to manage many profile types?

2008-08-20 Thread Thomas Rabaix
There is no 'clean' way to do that. There is a plugin from Francois which allows to do that, but it is a sf1.0 plugin http://www.symfony-project.org/plugins/sfPropelAlternativeSchemaPlugin not sure if sf1.1 has a way to change on the fly the database schema to add custom field Thomas On Wed,

[symfony-users] Re: Simple way to put different titles on each page

2008-08-20 Thread [EMAIL PROTECTED]
Slots solve this problem: http://www.symfony-project.org/book/1_1/07-Inside-the-View-Layer#Slots Regards, Jamie On 20 Ago, 11:05, Vinch [EMAIL PROTECTED] wrote: Hi, To improve SEO, I want to put different titles on each page of my website. At the moment, it's the same title everywhere and

[symfony-users] Re: form_remote_tag and updating multiple divs

2008-08-20 Thread lionslair
On Aug 20, 5:15 am, Pedro Bastos [EMAIL PROTECTED] wrote: Hi, I can see two possible solutions for your question: a) Set a handler on your Ajax.Update object. Insert complete in your options. Eg: ?php echo form_remote_tag(array(   'update'   = 'badgeHolder',   'url'      =

[symfony-users] Re: Simple way to put different titles on each page

2008-08-20 Thread Eno
Or, if it depends on data on a page for example, you can do it in the action. So if $data_record has a title field: $this-getResponse()-setTitle($data_record-getTitle()); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[symfony-users] Re: Problem Filtering by Date

2008-08-20 Thread Hoaxz
Thanks a lot Guys, great Help On Aug 20, 5:34 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: You can use Criteria's custom parameter like so: $c = new Criteria(); $c-add(RecordPeer::DATE, MONTH( . RecoredPeer::DATE .) = '. $month .', Criteria::CUSTOM); Regards, Jamie Learmonth Boxlight

[symfony-users] Help SQL Query how in Criteria

2008-08-20 Thread Güyçmyrat Amanmyrat
Hello. How can i write this query with Criteria ? $sql = SELECT Chat.SENDER, Chat.RECIEVER FROM Chat WHERE Chat.OWNER=38 AND Chat.SENDER NOT IN(14) AND Chat.SENDDT='2008-08-20 10:19:06' AND Chat.STAT='0' GROUP BY Chat.SENDER This $sql works. When i try it with Criteria it is not working.

[symfony-users] Charset/encoding with Mysql DB

2008-08-20 Thread Fred
Hello i use symfony 1.1.1 et default propel version (with Mysql 5). I'm french so i have some special charset for DB ( default cp1252 for each Mysql table). When i try to access data with object map inside DB like that : $ob.getLabel() getLabel return an empty string instead a string with

[symfony-users] Re: sfShop - open source platform for building e-commerce solution, based on symfony

2008-08-20 Thread Leonardo Diaz
Congrats, for a excelent work. This is a huge help for the community. I like the approach of the emailTemplate Module I think that could be a plugin itself, and very helpfull for many projects. Is the application coded for I18N? Maybe a 2.0 version can use the yahoo plugins for that purpose.

[symfony-users] Re: sfLucene indexing problems

2008-08-20 Thread Carl Vondrick
sfLucene should not create a a new index every time. An index is like a database. So, this is likely the problem. Can you post your directory layout on the production server? On Aug 20, 4:29 pm, alessandro cinelli [EMAIL PROTECTED] wrote: Hi, i use sfLucene, last version for symfony 1.0,  

[symfony-users] Re: sfShop - open source platform for building e-commerce solution, based on symfony

2008-08-20 Thread Dmitry Nesteruk
Leonardo, in the feature I intend to create some plugins which might use without platform, I mean some code which can be use in other projects, like emailTemplate module. Eno, I will try to do that :) 2008/8/21 Eno [EMAIL PROTECTED] On Wed, 20 Aug 2008, Leonardo Diaz wrote: Congrats, for