Re: [fw-general] Zend_Xml_Rpc_Server: Embedding HTML in output.

2007-10-05 Thread Nick Lo
Hi Matthew, I'm trying to embed some html in a array returned from a function that is used by Zend_Xml_Rpc_Server and having erratic results. Sometimes it works and sometimes it doesn't but I'm not sure how to specify the content in any way. For example in the example code I tried things like ht

Re: [fw-general] Zend_Xml_Rpc_Server: Embedding HTML in output.

2007-10-05 Thread Nick Lo
Hi Matthew, I'm trying to embed some html in a array returned from a function that is used by Zend_Xml_Rpc_Server and having erratic results. Sometimes it works and sometimes it doesn't but I'm not sure how to specify the content in any way. For example in the example code I tried things like ht

RE: [fw-general] RE: Database - relations

2007-10-05 Thread Bill Karwin
Hi, I'm trying to make the case that the interface of Model classes need not be determined by the physical storage of the data storage (i.e. tables and databases). Instead, a Model class like yours should be an OO representation of a set of Articles and associated Pictures. The methods of this c

[fw-general] RE: Database - relations

2007-10-05 Thread debussy007
Hello, thank you for your reply. If I understood correctly, in practice, I would have my own business objects. E.g. in my example (simplified) I would * create a class Article with all the attributes in the class and a list of pictures. * create a class Picture * put these classes in my director

RE: [fw-general] Database - relations

2007-10-05 Thread Bill Karwin
Right; using a class of type Zend_Db_Table as your Model works only if your logical Model maps to a single physical Table in the database. The best solution in more complex cases is to write your own Model class to encapsulate the business logic needed to produce a combined result set from multipl

Re: [fw-general] Database - relations

2007-10-05 Thread debussy007
Thank you. What confuses me is that these methods, I can only call them on a fetched row (Zend_Db_Table_Row_Abstract). But I want to send to my view all my articles with all their pictures. If I use these methods, I have to fetch in my controller all the articles and set them as a view variable

Re: [fw-general] Database - relations

2007-10-05 Thread redphantm
Check out this thread . Also read in the manual. These should be enough to provide you with an example on how to do your methods. debussy007 wrote

[fw-general] Database - relations

2007-10-05 Thread debussy007
Hello. In my DB I have a table "articles" and a table "pictures" and one article can have one or more pictures. I want to display the list of the articles and their photos. But in my controller I can retrieve the list of the articles but how do I associate the list of pictures for each article ?

Re: [fw-general] UTF-8 and Views... weird chars

2007-10-05 Thread Roberto Bouza
It was that, that fixed it all. It was the encoding on the IDE. Thank you guys for all your help. I really appreciate it. On 10/5/07, Pádraic Brady <[EMAIL PROTECTED]> wrote: > > That's possibly it ;) > > If you can't convert the whole file (per Andries suggestions) I'd suggest > saving to UTF-8,

Re: [fw-general] incubator tests cleanup

2007-10-05 Thread Thomas Weidner
Hy Paddy, I had two ways to speed my testbed. The first for me was caching. But this depends on how your class works and if caching is neccessary. The second way is, to add an parameter to TestConfiguration.php which skips slow tests... See the testbed of Zend_Date for an example on how thi

Re: [fw-general] incubator tests cleanup

2007-10-05 Thread Ralph Schindler
As noted here: http://framework.zend.com/issues/browse/ZF-417 Hehe, I guess we can say that this problem pops up exactly once every year.. http://framework.zend.com/wiki/display/ZFDEV/Zend+Framework+Unit+Tests+Manager Added by Ralph Schindler, last edited by Ralph Schindler on Oct 05, 2006

Re: [fw-general] incubator tests cleanup

2007-10-05 Thread Ralph Schindler
I think this is part of a bigger problem in general actually. As noted here: http://framework.zend.com/issues/browse/ZF-417 I really think the framework could benefit from a component driven test manager. PHPUnit3 is pretty great, but its overall goodness is to test code and suites.. and I th

Re: [fw-general] incubator tests cleanup

2007-10-05 Thread Pádraic Brady
Thanks Darby, I'll enable them in the AllTests file and see what the future holds ;). The main thing about any Crypt test is that the slowness is purely down to one extension and is pure math calculations - so there's nothing that can be cached or reused TestNG style. For the moment it should i

Re: [fw-general] incubator tests cleanup

2007-10-05 Thread Darby Felton
Hi Paddy, I'm unsure whether we have a well-defined policy on what is "too slow" to be run in the default configuration of the unit test suite. I tend to think that we should as many effective unit tests as possible, where they are not redundant, under the default configuration. Recently, Thomas

Re: [fw-general] incubator tests cleanup

2007-10-05 Thread Pádraic Brady
Sort of related ;). I committed Zend_Crypt earlier today (thanks for getting svn back!). Some of these tests are really (and I mean really) slow because most systems by default only have BCMath installed. Having DiffieHellman run for 30 secs is not unusual. Is there any specific practice in pla

Re: [fw-general] UTF-8 and Views... weird chars

2007-10-05 Thread Pádraic Brady
That's possibly it ;) If you can't convert the whole file (per Andries suggestions) I'd suggest saving to UTF-8, and then re-typing any accented chars (very important step) and saving again - just makes sure the new encoding takes hold instead of leaving older chars still as MacEncode crap ;).

Re: [fw-general] incubator tests cleanup

2007-10-05 Thread Darby Felton
Hi Andries, Thanks for the report! I have committed some changes in revision 6589 that solve the problems running the incubator AllTests suite for my environment: http://framework.zend.com/fisheye/changelog/Zend_Framework/?cs=6589 Please test and let us know your mileage. Best regards, Darby A

Re: [fw-general] Zend_Xml_Rpc_Server: Embedding HTML in output.

2007-10-05 Thread Matthew Weier O'Phinney
-- Nick Lo <[EMAIL PROTECTED]> wrote (on Saturday, 06 October 2007, 12:21 AM +1000): > I'm trying to embed some html in a array returned from a function > that is used by Zend_Xml_Rpc_Server and having erratic results. > Sometimes it works and sometimes it doesn't but I'm not sure how to > sp

Re: [fw-general] UTF-8 and Views... weird chars

2007-10-05 Thread Andries Seutens
Matthew Weier O'Phinney schreef: -- snip * Make sure your editor is UTF-8 capable, and that you have UTF-8 set as your character set. Yes, I know I work at Zend, but Zend Studio is remarkably good at this; I can't speak for other IDEs as I don't typically use an IDE. I have o

[fw-general] Zend_Xml_Rpc_Server: Embedding HTML in output.

2007-10-05 Thread Nick Lo
I'm trying to embed some html in a array returned from a function that is used by Zend_Xml_Rpc_Server and having erratic results. Sometimes it works and sometimes it doesn't but I'm not sure how to specify the content in any way. For example in the example code I tried things like htmlentit

Re: [fw-general] UTF-8 and Views... weird chars

2007-10-05 Thread Matthew Weier O'Phinney
-- Pádraic Brady <[EMAIL PROTECTED]> wrote (on Friday, 05 October 2007, 06:49 AM -0700): > The email text you sent showed: > La Ca�a de Az�car > > Which means my client doesn't recognise what you pasted into your message as > UTF-8. > Did the output show the actual accented letters? Entities? or t

Re: [fw-general] UTF-8 and Views... weird chars

2007-10-05 Thread Pádraic Brady
Hi Roberto, Can rule out headers then... The email text you sent showed: La Ca�a de Az�car Which means my client doesn't recognise what you pasted into your message as UTF-8. Did the output show the actual accented letters? Entities? or the same marks as above? Based on the headers being c

[fw-general] Zend_Db_Table memory leak?

2007-10-05 Thread Daniel Freudenberger
Hello, I wrote a cli script that updates about 23.000 records once a day. But after several thousand records have been updated, the script used more than 128mb of memory. I'm not quiet sure if it's a zend_db_table or php related issue. I wrote a little test-script to reproduce the memory l

RE: [fw-general] Memory leak in Zend_Db_Table?

2007-10-05 Thread Daniel Freudenberger
Okay, that was quiet easy. Thank you J From: Simon Mundy [mailto:[EMAIL PROTECTED] Sent: Friday, October 05, 2007 11:07 AM To: Daniel Freudenberger Cc: fw-general@lists.zend.com Subject: Re: [fw-general] Memory leak in Zend_Db_Table? Hi Daniel - do you use the profiler? If it's set to

Re: [fw-general] UTF-8 and Views... weird chars

2007-10-05 Thread Pádraic Brady
Open up your source view for the bad output and check what it contains. If you want to display UTF-8, you need to maintain a UTF-8 encoding at all times. I'm also not sure about all the mb_* contortions you're going through. Why are you converting from UTF-8 to the IANA HTML-ENTITIES? Use Zend_V

Re: [fw-general] Memory leak in Zend_Db_Table?

2007-10-05 Thread Simon Mundy
Hi Daniel - do you use the profiler? If it's set to 'true' then it will start accumulating SQL statements as a log and thereby increasing the size of the adapter object. Hello, I wrote a cli script that updates about 23.000 records once a day. But after several thousand records have been

[fw-general] Memory leak in Zend_Db_Table?

2007-10-05 Thread Daniel Freudenberger
Hello, I wrote a cli script that updates about 23.000 records once a day. But after several thousand records have been updated, the script used more than 128mb of memory. I'm not quiet sure if it's a zend_db_table or php related issue. I wrote a little test-script to reproduce the memory l