Re: [fw-general] Zend cache ID with variables

2007-04-30 Thread Alexander Veremyev
Hi Teemu, Tags are intended to do this: - $cache->save($data, $id, array('myTag1')); ... $cache->clean(Zend_Cache::CLEANING_MODE_MATCHING_TAG, array('myTag1')); -- It's also described here: http://framework.zend.com/manual/en/zend.cache.theory.html#zend.cache.tags

Re: [fw-general] Zend cache ID with variables

2007-04-30 Thread Alexander Veremyev
Hi Fabien, Oooups! You already replied :) With best regards, Alexander Veremyev. Fabien MARTY wrote: Hi 2007/4/29, Teemu Välimäki <[EMAIL PROTECTED]>: [...] Is there a way to have asterix or something with the remove so that I could do ->remove('genericName*')? have a look at "cache

Re: [fw-general] Zend cache ID with variables

2007-04-30 Thread Teemu Välimäki
On Monday 30 April 2007 13:29:12 Alexander Veremyev wrote: > Hi Fabien, Hi Fabien and Alexander > Oooups! You already replied :) Thank you both for replies. Yes I did look many times at the tags but it somehow escaped me how I could use them properly. After eating a big meal and reading Fabie

[fw-general] Text formatting in PDFs

2007-04-30 Thread Andrew Yager
Hi, Is there a simple way to format a text string when writing? In particular I am interested in right aligning a variable width string. In FPDF there is a flag you can pass to specify the justification. I'd even be happy if I could computationally determine the width of a string before I

Re: [fw-general] Implementing complex Views with ZF

2007-04-30 Thread Cristian Bichis
Hello, I wanted to post this now 1 week or so but i am very busy and didn't had time to write a proper email. I don't have enough now :( but still trying to participate. I already posted some time - in various forums/list - ago this problems raised by working on big sites (with complex views

Re: [fw-general] Implementing complex Views with ZF

2007-04-30 Thread Chris Hartjes
On 4/30/07, Cristian Bichis <[EMAIL PROTECTED]> wrote: I already posted some time - in various forums/list - ago this problems raised by working on big sites (with complex views). And problems are far more complicated, basically the entire Controller, Action, View side of ZF is not designed for

Re: [fw-general] Implementing complex Views with ZF

2007-04-30 Thread frederic wolf
Hi, you should have a look here, it's worth reading it about complex views and ZF. regards, fred

[fw-general] Zend_Db & Enum to Options

2007-04-30 Thread Ralph Schindler
Has anyone come up with a method for simply retrieving enum options from a table to use in a form's select drop down? Or would this be considered something that must be implemented as business logic? -ralph

Re: [fw-general] Implementing complex Views with ZF

2007-04-30 Thread Cristian Bichis
Hello, Well, what you're talking about is criticism and that's okay. That's the heart of open source. It sounds to my uneducated ear that what you're talking about is an architectural problem with an application and not a problem with ZF. Your solution sounds very custom and not transferable a

Re: [fw-general] Implementing complex Views with ZF

2007-04-30 Thread Chris Hartjes
On 4/30/07, Cristian Bichis <[EMAIL PROTECTED]> wrote: - for complex sites developer needs to adapt ZF to a more complex format instead just doing his job I'm going to get a bit abstract here, so bear with me. When you use a framework, there is a cost associated with that. The cost is usually

Re: [fw-general] Implementing complex Views with ZF

2007-04-30 Thread Cristian Bichis
Hello, The big question is this: how many OTHER people need what you say you need or is what you are trying to do a big edge case? I'm a firm believer that in 99.999% of all cases a problem fitting an application to a framework is due to the architecture of the application, not the framework.

Re: [fw-general] Zend_Db & Enum to Options

2007-04-30 Thread Ralf Eggert
Hi Ralf, I extended Zend_Db_Table and added this little method. But I am afraid, this might only be working for MySQL. public function getOptions($column) { // build select to read column definition for selected column $sql = " SHOW COLUMNS "; $sql .= " FR

Re: [fw-general] Implementing complex Views with ZF

2007-04-30 Thread Chris Hartjes
On 4/30/07, Cristian Bichis <[EMAIL PROTECTED]> wrote: I am not complaining, but after rewriting lot of stuffs i feel ZF is very usefull on some sides and not very usefull on other sides :) I mean if for some standard cases (as you saw Padraic Brady posts on http://blog.astrumfutura.com/archives

RE: [fw-general] Zend_Db & Enum to Options

2007-04-30 Thread Bill Karwin
I hardly ever use the ENUM datatype, for exactly the reason you have found. It's inconvenient to do a query to get the list of values allowed in the ENUM. Ralf suggests a solution using SHOW COLUMNS, but that requires some parsing of the results, which is extra code and possibly a point of incomp

Re: [fw-general] Implementing complex Views with ZF

2007-04-30 Thread Matthew Weier O'Phinney
-- Cristian Bichis <[EMAIL PROTECTED]> wrote (on Monday, 30 April 2007, 08:24 PM +0200): > > The big question is this: how many OTHER people need what you say you > > need or is what you are trying to do a big edge case? I'm a firm > > believer that in 99.999% of all cases a problem fitting an ap

Re: [fw-general] Implementing complex Views with ZF

2007-04-30 Thread Cristian Bichis
Hello, I've been following Padraic's blog (heck, I've been commenting and pointing out functionality of ZF to him), and what I see him doing is something that only a fraction of sites are going to need to do. Not every site needs to have composite views; his does, and he's trying to figure out h

Re: [fw-general] Implementing complex Views with ZF

2007-04-30 Thread Chris Hartjes
On 4/30/07, Cristian Bichis <[EMAIL PROTECTED]> wrote: I personally just wait to see some commercial applications used now by all the world (as a vBulletin, or WordPress, aso) but based on ZF... I laughed out loud when I read that. vBulletin and WordPress started out as forks of other projec

Re: [fw-general] Implementing complex Views with ZF

2007-04-30 Thread Cristian Bichis
Hello, On 4/30/07, Cristian Bichis <[EMAIL PROTECTED]> wrote: I personally just wait to see some commercial applications used now by all the world (as a vBulletin, or WordPress, aso) but based on ZF... I laughed out loud when I read that. vBulletin and WordPress started out as forks of oth

[fw-general] Zend_Pdf_Page text alignment?

2007-04-30 Thread Jasp182
I just started using the ZF because I am interested in generating pdf documents. I didn't see any way of getting fine-tuned control over text drawing, so I started working on my own. Does this stuff exist and maybe I just didn't find it? For example, the type of control you have when inserting