[symfony-users] Re: sfLucene

2008-03-03 Thread Sébastien CAS
Hi, My schema.yml in MyProject/config/ is empty. I use a news plugin. So my MyProject/plugins/newsPlugin/config/schema.yml : propel:   _attributes:  { package: plugins.newsPlugin.lib.model }     news_article:     id:     publish_up:   { type: timestamp, required: true }     ena

[symfony-users] Re: sfLucene and foreign keys

2008-03-03 Thread cirpo
is it a dumb question?? probably i didn't understand how lucene works, keep on reading... cirpo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony

[symfony-users] Session performance

2008-03-03 Thread Sumedh
Hi friends, I just started using Symfony...I was using Struts before... Need some advice on how much data to put in session...and how much in client side cookies... How is your experience so far with symfony session? does it scale well? Putting data in session is always cleaner than using cooki

[symfony-users] Unable to use model layer inside a task

2008-03-03 Thread Michel Weimerskirch
Hi I am having problems with implementing a task for a plugin. (Symfony 1.1) Actually, I am unable to use the model layer inside the task. Here is the code: http://pastebin.com/m55be4b33 I can run the task but it fails because it can't find/load the model files (line 19: Fatal Error, class not f

[symfony-users] Re: Session performance

2008-03-03 Thread Ian P. Christian
Sumedh wrote: > Is symfony session storing session data in files a little problematic? > should one use DB for that? Generally when dealing with 'large' sessions, you're still only talking a few 10's of k, which is fine for file sessions, and I'd prefer that over cookies (as doing that require

[symfony-users] i18n: validation errors and XLIFF XML files

2008-03-03 Thread Takaaki Kato
Hi When an error message needs to be translated, we can use the text as is for . For example if I have a YAML file as following: fields: user_name: required: msg: User name is required I can do something like this: User name is required translated text here In there any w

[symfony-users] Re: Session performance

2008-03-03 Thread Lee Bolding
Don't cookies have a 4096 byte filesize limitation anyway? You'd only be able to use sessions for anything over this limitation. -Original Message- From: symfony-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ian P. Christian Sumedh wrote: > Is symfony session storing se

[symfony-users] Re: Session performance

2008-03-03 Thread Sumedh
Okk...Thanks a lot Ian and Lee... And how do file sessions compare with DB sessions? On Mar 3, 3:27 pm, "Lee Bolding" <[EMAIL PROTECTED]> wrote: > Don't cookies have a 4096 byte filesize limitation anyway? > > You'd only be able to use sessions for anything over this limitation. > > -Origin

[symfony-users] Re: Session performance

2008-03-03 Thread Ian P. Christian
Sumedh wrote: > Okk...Thanks a lot Ian and Lee... > > And how do file sessions compare with DB sessions? I actually don't expect a huge difference to be honest. Not in the whole scheme of things when it comes to the time spent doign other parts of your app. I use database sessions for large

[symfony-users] E-commerce frameworks

2008-03-03 Thread Peter Bowyer
Hi, One thing I've been thinking about recently (while setting up a handful of e-commerce sites) is how many sites don't fit the out-of-the-box e-commerce site model (beloved by script developers and end users), but use the components (order management, cart, gateways, user administration, mu

[symfony-users] Re: E-commerce frameworks

2008-03-03 Thread Peter Bowyer
At 11:11 03/03/2008, Ian P. Christian wrote: >Not sure you've seen this: > >http://groups.google.com/group/symfony-ecommerce No I hadn't - thanks. >There's also some stuff floating about regarding getting Zen Cart to >integrate with symfony - but I know nothing about that really :) Uugh :) Inte

[symfony-users] Re: E-commerce frameworks

2008-03-03 Thread Ian P. Christian
Peter Bowyer wrote: > Hi, > > One thing I've been thinking about recently (while setting up a > handful of e-commerce sites) is how many sites don't fit the Not sure you've seen this: http://groups.google.com/group/symfony-ecommerce There's also some stuff floating about regarding getting Ze

[symfony-users] Re: Session performance

2008-03-03 Thread Sumedh
Thanks a lot Ian for such a comprehensive answer. :) On Mar 3, 3:56 pm, "Ian P. Christian" <[EMAIL PROTECTED]> wrote: > Sumedh wrote: > > Okk...Thanks a lot Ian and Lee... > > > And how do file sessions compare with DB sessions? > > I actually don't expect a huge difference to be honest. Not in

[symfony-users] Performance of Symfony/Propel

2008-03-03 Thread Silvain Piree
Hi, i'm evaluating symfony for developing a new system. Until now symfony has looked very promising, but last week i did some performance tests on Propel, and the results were really disappointing. For online applications the performance of Propel is acceptable (not good, but acceptable).

[symfony-users] Putting forms in session

2008-03-03 Thread Sumedh
Hi friends, This might be a little preliminary doubt... How do I create forms in symfony that stay in session? In struts, once needs to mention it in the struts-config.xml... I looked at the symfony book, but couldnt find it immediately... May be I need to look again, but if you could help, th

[symfony-users] Re: Putting forms in session

2008-03-03 Thread Ian P. Christian
Sumedh wrote: > Hi friends, > > This might be a little preliminary doubt... > > How do I create forms in symfony that stay in session? In struts, once > needs to mention it in the struts-config.xml... Struts and symfony are clearly differnet under the hood - as JSP and PHP are quite different

[symfony-users] Re: Session performance

2008-03-03 Thread Martin Poirier Théorêt
You should always use session and not cookies for storing 'session' information. If you want to store it in database you do have so extension for MySQL, Postgres and so on. They are not using the orm layer so they are faster (direct SQL). juste take a look at http://www.symfony-project.org/book/

[symfony-users] Multiple apps vs single app

2008-03-03 Thread Rytis Daugirdas
Hello, I will be starting a new project using symfony and I'm weighing my decision to create multiple apps vs a single app. Basically, the project will consist of a public area and two protected areas (registration required, completely separate user types). Both protected areas will contain the

[symfony-users] Some questions about symfony 1.1 please...

2008-03-03 Thread Skyblaze
i need some answers from you 'cause i'm using symfony from 1 week and i started a new big app/project for my company with it so i would like some clarifications. 1) when "The official symfony book" will be relased updated for version 1.1? 2) Will 1.1 have ajax/javascript helpers? And what about ot

[symfony-users] Symfony 1.1 Form save() to several tables ...

2008-03-03 Thread Joao
I have a form with fields from several tables. I want to load/save the object but in 1.1 I dont see how. Any ideas ? Regards Joao Correia --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To p

[symfony-users] Re: Putting forms in session

2008-03-03 Thread Lee Bolding
Symfony handles forms and validation very differently to Struts. You don't need to create a formbean and a formaction. Take a look at the forms section in the Symfony manual http://www.symfony-project.org/book/1_0/10-Forms Forms and validation are much simpler in Symfony :) -Original Messa

[symfony-users] Re: Symfony 1.1 Form save() to several tables ...

2008-03-03 Thread Fabien POTENCIER
Just override the generated save() method to implement your own saving. Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.com | aide-de-camp.org Tél: +33 1 40 99 80 80 Joao wrote: > I have a form with fields from several tables. > I want to load/s

[symfony-users] Re: Putting forms in session

2008-03-03 Thread Sumedh
Thanks Ian and Christian for such a quick response :) The reason to store a form in session is to maintain its state. Simplest use of this is in repopulating after validation. Now, validation is taken care by Symfony as a special case, as I saw in the book. But, there are several other instances

[symfony-users] Re: Putting forms in session

2008-03-03 Thread Sumedh
And BTW, I wanted to thank Lee and Christian... :) On Mar 3, 6:13 pm, Sumedh <[EMAIL PROTECTED]> wrote: > Thanks Ian and Christian for such a quick response :) > > The reason to store a form in session is to maintain its state. > Simplest use of this is in repopulating after validation. Now, > va

[symfony-users] Re: Some questions about symfony 1.1 please...

2008-03-03 Thread Fabien POTENCIER
Skyblaze wrote: > i need some answers from you 'cause i'm using symfony from 1 week and > i started a new big app/project for my company with it so i would like > some clarifications. > 1) when "The official symfony book" will be relased updated for > version 1.1? yes > 2) Will 1.1 have ajax/jav

[symfony-users] Re: Putting forms in session

2008-03-03 Thread Thomas Rabaix
Hello, There are no built in feature in symfony to do that. However you can solve your problem with these options : - store the form values in session and load them back when it is required - use javascript to similate the tab, so you have only one form - put the values as hidden in the other

[symfony-users] Re: Putting forms in session

2008-03-03 Thread Lee Bolding
Create a single page, with each tab being a different (hidden) DIV... You can validate the same page with different validation files by switching them inside of your action, so you still get a per 'tab' validation, the user is also then free to move backwards and forwards between tabs :) I'm us

[symfony-users] Self-Referential Objects revisited

2008-03-03 Thread Groh, Martin
Hi, I know that this one has been under discussion a few times in the forum and on this list. But none of the given solutions really satisfies me. Is there a way to self reference Objects? I found an rather old forum entry that describes my problem http://www.symfony-project.org/forum/index.ph

[symfony-users] Symfony + Propel + Multiple Schemas

2008-03-03 Thread Reynier Perez Mira
Hi every: I'm asking if Symfony 1.0.11 can work with multiple schemas in PostgreSQL. If the answer is yes, exists any guide or any documentation about how to configure the propel.ini and databases.yml? Cheers and thanks in advance Ing. Reynier Pérez Mira Grupo Soporte al Desarrollo - Dirección

[symfony-users] Re: Putting forms in session

2008-03-03 Thread gestadieu
You can also take an approach following a little bit what is going to happen in sf 1.1: named all your form fields with a table structure such as you can then simply store the table myform in the session and get it back whenever you want. $myform = $this->getRequestParameter('myform'); $this->ge

[symfony-users] Re: Putting forms in session

2008-03-03 Thread Ian P. Christian
Sumedh wrote: > And BTW, I wanted to thank Lee and Christian... :) Or Lee and Ian perhaps? ;) -- Ian P. Christian ~ http://pookey.co.uk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To p

[symfony-users] sfDoctrine failing to build sql

2008-03-03 Thread Peter Bowyer
Hi, I'm getting the following error no matter what schema.yml file I throw at sfDoctrine - a sample from the sfDoctrinePlugin page, from the doctrine manual or even my handwritten yml file ;) # symfony doctrine-build-sql [sfException] Unknown field type 's'. #0 /var/www/carhire/plug

[symfony-users] any documentation for sfValidatorSchemaCompare

2008-03-03 Thread amit
Hi, Is there any doc/example of how to use sfValidatorSchemaCompare in 1.1? In an admin generated module I want to ensure that user doesn't fill same value in two fields. Thanks, Amit. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[symfony-users] Re: sfDoctrine failing to build sql

2008-03-03 Thread Peter Bowyer
With Pookey's help I got this sorted - when building the SQL doctrine doesn't (for some crazy reason) build it from the schema file, but from the generated models. As I was trying to build it with some initial broken models in place (thinking it was using the schema file) it was failing. Remov

[symfony-users] Re: how to discover types in propel model?

2008-03-03 Thread Georg Sorst
Hi Mohammad, do you want to use type-checking for your model depending on the column type or do you want to get some information about the corresponding table from your model? For the first case, Propel should already do that. For the latter case, you can get all kinds of information about the c

[symfony-users] Re: Session performance

2008-03-03 Thread Nicolas Perriault
On Mon, Mar 3, 2008 at 11:56 AM, Ian P. Christian <[EMAIL PROTECTED]> wrote: > there's overhead in connecting to a memcache server Interesting. Do you have any pointer on this ? I thought memcache was the fastest solution for session storage at any scale :-) ++ -- Nicolas Perriault http://pr

[symfony-users] Re: Multiple apps vs single app

2008-03-03 Thread Nicolas Perriault
On Mon, Mar 3, 2008 at 1:25 PM, Rytis Daugirdas <[EMAIL PROTECTED]> wrote: > For example, routing.yml becomes a monster for a bigger app and > depending on the user type logged in, some of the rules can never be > used by that user type. You can split routing yaml files and include them using

[symfony-users] Re: Performance of Symfony/Propel

2008-03-03 Thread Nicolas Perriault
On Mon, Mar 3, 2008 at 1:03 PM, Silvain Piree <[EMAIL PROTECTED]> wrote: > So, my question to you out there: what are your experiences with Propel? Any > way to boost the performance of Propel? I don't understand how this thing > can perform so bad. Would be a pity if we couldn't choose symfony b

[symfony-users] Re: Session performance

2008-03-03 Thread Ian P. Christian
Nicolas Perriault wrote: > On Mon, Mar 3, 2008 at 11:56 AM, Ian P. Christian <[EMAIL PROTECTED]> wrote: > >> there's overhead in connecting to a memcache server > > Interesting. Do you have any pointer on this ? I thought memcache was > the fastest solution for session storage at any scale :-)

[symfony-users] Re: sfLucene and foreign keys

2008-03-03 Thread Nicolas Perriault
On Mon, Mar 3, 2008 at 10:35 AM, cirpo <[EMAIL PROTECTED]> wrote: > is it a dumb question?? Not at all. As far as I've understand how sfLucene works, you have to write some getter for the unexistant fields you want to index from your Propel objects. Eg. if you got a Prodotti having a Category o

[symfony-users] Re: Session performance

2008-03-03 Thread Nicolas Perriault
On Mon, Mar 3, 2008 at 6:21 PM, Ian P. Christian <[EMAIL PROTECTED]> wrote: > Creating a TCP connection to a remote host can be relatively expensive. > If you already have a TCP connection to your database, or a > connection via a local socket - and your session database is a in-memory > t

[symfony-users] Re: Session performance

2008-03-03 Thread Ian P. Christian
Nicolas Perriault wrote: > Yes, I guess, but shit happens ^_^ > If ever you do test - left us know :D -- Ian P. Christian ~ http://pookey.co.uk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" grou

[symfony-users] Re: sfAdmin generator auto components

2008-03-03 Thread Georg Sorst
Hi florynth, did you create a new admin generator template which should also create an autoModuleNameComponent? If not, then no such component will be generated and you should just extend sfComponents like you would with a normal component in a module. If you have in fact added a component to th

[symfony-users] Re: Session performance

2008-03-03 Thread Nicolas Perriault
On Mon, Mar 3, 2008 at 6:34 PM, Lee Bolding <[EMAIL PROTECTED]> wrote: > Umm... so if you use DB sessions your data is limited to 255 bytes? Only if you use in-memory format (namely HEAP): http://dev.mysql.com/doc/refman/5.0/en/memory-storage-engine.html MyISAM and InnoDB haven't such limitati

[symfony-users] Re: Performance of Symfony/Propel

2008-03-03 Thread Pedro Casado
Did you change these lines? define('SF_ENVIRONMENT', 'dev'); define('SF_DEBUG', 1); for define('SF_ENVIRONMENT', 'prod'); define('SF_DEBUG', 0); Maybe its slow because you are running in dev... Pedro Casado On Mon, Mar 3, 2008 at 2:20 PM, Nicolas Perriault <[EMAIL PROTECTED]> wr

[symfony-users] Re: Credentials for fields and validation

2008-03-03 Thread Haris Zukanović
Permissions is not a part of validate.yml it is inside the generator.yml Lee Bolding wrote: > > Just an idea... > > > > This is something I've quickly thrown together, not tested - so it's > probably got a few errors in it, but should be relatively simple to fix J > > > > Let me know if you g

[symfony-users] Re: Session performance

2008-03-03 Thread Lee Bolding
Umm... so if you use DB sessions your data is limited to 255 bytes? -Original Message- From: symfony-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nicolas Perriault Beware that HEAP tables in MySQL cannot contain BLOB or TEXT columns. So big session data generated by Sym

[symfony-users] Re: sfLucene and foreign keys

2008-03-03 Thread alessandro cinelli
thanks Nicolas... it's also written in the guide, http://trac.symfony-project.com/wiki/sfLucenePlugin : "Note that the fields do not have to exist as fields in your database. As long as it has a getter on the model, you can use it in your index." thanks again , cirpo On Mon, Mar 3, 2008 at 6

[symfony-users] Re: Credentials for fields and validation

2008-03-03 Thread Lee Bolding
Errr... $permission in this case is the name of a credential. You may need to change user->hasPermission to user->hasCredential... and 'required' may clash with Symfony, so it may need changing to 'requirement'. Like I said, I haven't tried it, but I'm pretty confident that the theory is good J

[symfony-users] Re: Some questions about symfony 1.1 please...

2008-03-03 Thread Skyblaze
But will you mantain prototype and scriptaculous helpers in a plugin also in the future (1.2)? When will we see the new online book for version 1.1? On Mar 3, 1:59 pm, Fabien POTENCIER <[EMAIL PROTECTED] project.com> wrote: > Skyblaze wrote: > > i need some answers from you 'cause i'm using symfo

[symfony-users] Passing data to mail module

2008-03-03 Thread mrhv
Hi, I have seen data (user id, new password, etc) passed to the a mail module as a request parameter and a flash attribute. I was wiondering what were the positives/negatives of each in this particular case. Thanks, Tom --~--~-~--~~~---~--~~ You received this mes

[symfony-users] Re: Multiple apps vs single app

2008-03-03 Thread Fabien POTENCIER
Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.com | aide-de-camp.org Tél: +33 1 40 99 80 80 Nicolas Perriault wrote: > On Mon, Mar 3, 2008 at 1:25 PM, Rytis Daugirdas > <[EMAIL PROTECTED]> wrote: > >> For example, routing.yml becomes a monster for a big

[symfony-users] Module config settings

2008-03-03 Thread Eno
In order to keep all settings related to a plugin inside the plugin's folder I created a module.yml file in plugins/myplugin/modules/ mypluginmodule/config/module.yml. I am now trying to read that setting in a batch script but Im not getting a value back from sfConfig::get() - any ideas on what I

[symfony-users] Re: Performance of Symfony/Propel

2008-03-03 Thread Boris Duin
Hi Silvain: Are you hidrating all records in objects?. It's not a good practice with large queries. For larges queries write a model method, when this method returns a hash or recordset. 2008/3/3, Pedro Casado <[EMAIL PROTECTED]>: > > Did you change these lines? > > define('SF_ENVIRONMENT', 'd

[symfony-users] anybody using PHP 5.2.5?

2008-03-03 Thread Lee Bolding
One of my clients has RHEL4 up2date running - it's just installed PHP 5.2.5, and now all the Symfony applications are broken with the Creole/creole.php not found error. Not sure if this is due to PHP 5.2.5 in general, or 5.2.5 in conjunction with Plesk... Previously it was 5.2.3, which worked fin

[symfony-users] Re: anybody using PHP 5.2.5?

2008-03-03 Thread Dustin Whittle
Lee, I have PHP 5.2.5 running on MacOSX, RHEL5, BSD, and Ubuntu and they are working fine. - Dustin On 3/3/08 2:12 PM, "Lee Bolding" <[EMAIL PROTECTED]> wrote: > > One of my clients has RHEL4 up2date running - it's just installed PHP 5.2.5, > and now all the Symfony applications are broken

[symfony-users] Re: anybody using PHP 5.2.5?

2008-03-03 Thread Adam Frame
I have 1.0.11 working perfectly on RHEL4 with PHP 5.2.5. So far no errors. Looks like Plesk is interfering too much as usual. Quel surprise! Adam Dustin Whittle wrote: Lee, I have PHP 5.2.5 running on MacOSX, RHEL5, BSD, and Ubuntu and they are working fine. - Dustin On 3/3/08 2

[symfony-users] Re: anybody using PHP 5.2.5?

2008-03-03 Thread Jay Klehr
I have PHP 5.2.5 running on a local dev box running CentOS 4 (RHEL4), no Plesk, and no Propel, but eveything is running fine. Probably not much help for you, but thought I'd chime in anyhow. Jay Lee Bolding wrote: > One of my clients has RHEL4 up2date running - it's just installed PHP 5.2.5,

[symfony-users] Re: anybody using PHP 5.2.5?

2008-03-03 Thread Eno
Lee Bolding wrote: > One of my clients has RHEL4 up2date running - it's just installed PHP 5.2.5, > and now all the Symfony applications are broken with the Creole/creole.php > not found error. > > Not sure if this is due to PHP 5.2.5 in general, or 5.2.5 in conjunction > with Plesk... Previously

[symfony-users] Re: anybody using PHP 5.2.5?

2008-03-03 Thread Charley Tiggs
I just set up a box with Debian on it with php 5.2.5 and symfony 1.0.11. Works very well for me. Charley [EMAIL PROTECTED] said on Monday, March 3, 2008: > >One of my clients has RHEL4 up2date running - it's just installed PHP 5.2.5, >and now all the Symfony applications are broken with the C

[symfony-users] Re: anybody using PHP 5.2.5?

2008-03-03 Thread Lee Bolding
OK, thanks to everybody so far (at this late hour!) - anybody using Plesk can confirm that is what is causing the error? I'm referring to the bug at the end of this thread http://www.symfony-project.org/forum/index.php/mv/msg/10245/45164/ If that is the case, it looks like I'm going to have to a

[symfony-users] Re: Performance of Symfony/Propel

2008-03-03 Thread Silvain Piree
Pedro, yes i did use the production settings. Silvain Silvain Op 3 mrt 2008, om 18:58 heeft Pedro Casado het volgende geschreven: > Did you change these lines? > > define('SF_ENVIRONMENT', 'dev'); > define('SF_DEBUG', 1); > > for > > define('SF_ENVIRONMENT', 'prod'); > define('SF_DEBUG',

[symfony-users] Re: sfDoctrine failing to build sql

2008-03-03 Thread jwage
Ahh, the wiki page was using the schema file from a newer version of Doctrine that sfDoctrinePlugin does not use it. I fixed the wiki page to use the older style syntax. When sfDoctrinePlugin updates to the 0.10 branch, this new syntax that was showing will be possible. In 0.10, this syntax is po

[symfony-users] Session in batch files

2008-03-03 Thread mrhv
Hi, I'm using a batch file to send emails from a queue in a database. When I try to run it at the command line, it coughs up some errors about not being able to start a session. Do I have to 'switch off' sessions in my batch file somewhere? TIA, Tom --~--~-~--~~~---~

[symfony-users] Re: Putting forms in session

2008-03-03 Thread Sumedh
Thanks Lee & Thomas... Lee...So, when you switch between the tabs, you submit the form or not? or you are doing client side validation...? Does YML validation support JS code generation? Actually, I don't have this specific requirement...I just wanted to give an example... Right now, my require

[symfony-users] Re: Putting forms in session

2008-03-03 Thread Sumedh
Thanks gestadieu... So, SF1.1 will have ready made features for this? On Mar 4, 10:54 am, Sumedh <[EMAIL PROTECTED]> wrote: > Thanks Lee & Thomas... > > Lee...So, when you switch between the tabs, you submit the form or > not? or you are doing client side validation...? Does YML validation > sup