[symfony-users] Re: sfLucene indexing problems

2008-08-20 Thread alessandro cinelli
On Thu, Aug 21, 2008 at 5:39 AM, Carl Vondrick < [EMAIL PROTECTED]> wrote: > > sfLucene should not create a "a new index" every time. An index is > like a database. So, this is likely the problem. > ok, but what happens if i manually delete the index directory? I thought that sfLucene was suppo

[symfony-users] output escaping, guidelines?

2008-08-20 Thread [EMAIL PROTECTED]
Hello, I have set output scaping to on in my app, the templates from some of the best plugins I use din't use $sf_data at all. I have "fixed" those templates, is it worth uploading? Whats the convention for output scaping in the templates? --~--~-~--~~~---~--~~

[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

[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

[symfony-users] sfLucene indexing problems

2008-08-20 Thread alessandro cinelli
Hi, i use sfLucene, last version for symfony 1.0, to index and search users using the sfGuardUser model. In my local server, my own machine, everything works fine but this is not happennig in the production server. I have to say that the production server hasn't the default symfony directory confi

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

2008-08-20 Thread Eno
On Wed, 20 Aug 2008, Leonardo Diaz wrote: > 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? > > M

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

2008-08-20 Thread laura
this worked. thanks everyone! laura On Aug 20, 9:48 am, lionslair <[EMAIL PROTECTED]> wrote: > 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 compl

[symfony-users] Re: Specs draft of a new security plugin

2008-08-20 Thread Leonardo Diaz
It's a good project, congrats. If you maybe already dont know cakePhp has an ACL security system like that, it would be a starting point for information, maybe for reusing code. On Tue, Aug 19, 2008 at 6:30 AM, Nicolas CHARLOT <[EMAIL PROTECTED]> wrote: > > Hi all, > > Since we often need to ma

[symfony-users] Re: Symfony I18N on admin generator

2008-08-20 Thread Dmitry Nesteruk
http://trac.symfony-project.org/wiki/HowToHandlei18nDbFieldsWithAdminGeneratorMethod2 2008/8/20 SNake! <[EMAIL PROTECTED]> > > Hi guys, > > It might be a stupid question, I just wonder how to extract the words > from admin generator, I mean almost my backend is done by admin > generator, I want t

[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] Symfony I18N on admin generator

2008-08-20 Thread SNake!
Hi guys, It might be a stupid question, I just wonder how to extract the words from admin generator, I mean almost my backend is done by admin generator, I want to translate the field into another language, I try sth like: $ ./symfony i18n:extract --auto-save backend en >> i18n extracting i

[symfony-users] Re: Help SQL Query how in Criteria

2008-08-20 Thread shannon.patterson
$c->add(CharPeer::SENDER, array($rsender), Criteria::NOT_IN) On Aug 20, 4:10 am, Güyçmyrat Amanmyrat <[EMAIL PROTECTED]> wrote: > 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.SE

[symfony-users] Re: sf1.1: how to set sf_symfony_data_dir?

2008-08-20 Thread [EMAIL PROTECTED]
Klemens, The sfDoctrine plugin is not actually compatible with symfony 1.1 at the moment so those tasks won't work. It needs to be looking for sfConfig::get('sf_data_dir'); Jamie On 20 Ago, 16:07, klemens_u <[EMAIL PROTECTED]> wrote: > How to set 'sf_symfony_data_dir' path in symfony 1.1? > I'm

[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 empha

[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. W

[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

[symfony-users] Status of sfDoctrinePlugin and sfDoctrineGuardPlugin

2008-08-20 Thread Jonathan Wage
Lately I've been getting tons of questions about the status of sfDoctrinePlugin and sfDoctrineGuardPlugin so I thought I would kind of explain what is going on and when you can expect some more activity. As you may already know, I am releasing Doctrine 1.0 on September 1st so I am busy with Doctri

[symfony-users] sf1.1: how to set sf_symfony_data_dir?

2008-08-20 Thread klemens_u
How to set 'sf_symfony_data_dir' path in symfony 1.1? I'm using a symfony installation via svn in /usr/share/php/ symfony1.1. The task 'doctrine:generate-crud' fails because sfConfig::get('sf_symfony_data_dir') is null. Thanks, Klemens :-) --~--~-~--~~~---~--~~ You

[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: 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: > >   'update'   => 'badgeHolder', >   'url'      => '@login_badge', >   'complete'

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

2008-08-20 Thread Tom Haskins-Vaughan
You can change the title in each module's view.yml file: http://www.symfony-project.org/book/1_1/07-Inside-the-View-Layer#The%20view.yml%20File Vinch 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 t

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

2008-08-20 Thread Tom Haskins-Vaughan
You have a couple of options: 1. create a method in the myUser class for each field in the user table 2. just retrieve the user_id and look up the user: $this->user = UserPeer::retrieveByPk($this->getUser()->getId()); I prefer the first way because it makes the code a lot leaner and more

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

2008-08-20 Thread shannon.patterson
I did come up with a solution. It's not pretty, but it does the trick. Instructions are on the symfony forum, http://www.symfony-project.org/forum/index.php/m/58072/ I'd be interested in seeing other solutions and helping come up with a "best" solution. Cheers, Shannon On Aug 20, 5:08 am, "[

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

2008-08-20 Thread Pedro Bastos
Hi Laura, function executeWhenFinished(request) { Element.replace('othercontainer_id',$F('badgeHolder')); // put other container updates here } Good luck, Pedro On Tue, Aug 19, 2008 at 5:38 PM, laura <[EMAIL PROTECTED]> wrote: > > hi pedro- > > bear with me, since i'm pretty new to

[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 everywher

[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, A

[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 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 f

[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:25, Thomas Rabaix a écrit : > 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). It's what I done, but it's not working :( -- Nicolas CHARLOT http://www.isics.fr --~--~-~--~~--

[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: 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, "M

[symfony-users] Re: symfony propel-build-model

2008-08-20 Thread [EMAIL PROTECTED]
NOW() is not a valid default in most RDBM's therefore Propel will not accept it. You need to add that functionality in your model classes. Override save like so: public function save($con = null) { if (!$this->getDate()) { $this->setDate(date('Y-m-d H:i:s')); } return parent::save($con);

[symfony-users] Re: Problem Filtering by Date

2008-08-20 Thread [EMAIL PROTECTED]
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 Media Ltd. On 20 Ago, 00:47, Hoaxz <[EMAIL PROTECTED]> wrote: > BTW I;ll like to get a Propel

[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 prac

[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 "symfo

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

2008-08-20 Thread [EMAIL PROTECTED]
I would be interested too.. On Aug 20, 9:15 am, notjosh <[EMAIL PROTECTED]> wrote: > 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?

[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 PRO

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

2008-08-20 Thread Nicolas CHARLOT
Hi, I'm looking for the best practice for managing many user profile types. In my project, a user could have only one profile but there are many types of profiles. A possible solution: - adding a profile_class field in sf_guard_user table => how to update plugin schema in project? - redefin

[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 : render(array('rich'=>true)) ?> But it doesn't works. Any idea ? Thanks :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

[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 (inte