[fw-general] Zend_Table and dependentTables

2008-11-07 Thread Jan Brucek
Hi guys, I'm trying to use dependent tables in ZF and I ran into a problem I cannot solve for now. I have two tables. One, say, with a records of files and another with text to these files, defined by 'id' and 'language' which both form a primary key. Reference from the files-table is done

[fw-general] Re: Having problems using Zend Cache and Flickr

2008-11-07 Thread Ian
Anyone have an ideas on this? Im still stuck... On Wed, Nov 5, 2008 at 10:26 AM, Ian [EMAIL PROTECTED] wrote: Hi, I am having problems using Zend Cache and Service Flickr. The problem is that the array I get before caching is very different from the cache. Any ideas as to what im doing

[fw-general] Zend_Search_Lucene is very sloooooow

2008-11-07 Thread Ralf Eggert
Hi, no that is not my opinion, that is the one sentence I heard most during the last IPC in Mainz when I talked to others about Zend_Search_Lucene. The widespread belief was that Zend_Search_Lucene is a very nice tool but it is damn slow with a larger index. I need to add that I did not find out

Re: [fw-general] ZF application optimizations (and speedup)

2008-11-07 Thread Matthew Weier O'Phinney
-- Michael Depetrillo [EMAIL PROTECTED] wrote (on Thursday, 06 November 2008, 09:33 PM -0800): Does using autoload improve or reduce performance? I thought I saw an email by you where you stated in did. It improves performance, particularly when you strip out the require_once calls within

Re: [fw-general] Zend_Db

2008-11-07 Thread Edward Haber
Thanks so much!! On Nov 7, 2008, at 8:21 AM, Matthew Weier O'Phinney wrote: I sent my original reply to you, but I'm posting here for the archives. -- Edward Haber [EMAIL PROTECTED] wrote (on Friday, 07 November 2008, 07:09 AM -0500): Thanks for the help! It is much appreciated. I had a

Re: [fw-general] Zend_Db

2008-11-07 Thread Edward Haber
Thanks for the help! It is much appreciated. I had a feeling I was doing something a bit fishy. I tried the code below and the method is returning an associative array instead of an array of Article objects. If I do change the setFetchMode globally in the bootstrap, it changes to stdClass.

Re: [fw-general] Zend_Db_Table_Rowset seek() question

2008-11-07 Thread Julien Pauli
You can use a LimitIterator to make it starts where you want ;-) Julien.P 2008/11/7 Jason Austin [EMAIL PROTECTED] Thanks for the code. After further investigation, it appears that the issue is not with Zend_Db_Table_Rowset, but with the SPL SeekableIterator class, and how PHP handles

RE: [fw-general] Zend Form Validation

2008-11-07 Thread nwhiting
Any help on this? - Nickolas Whiting Developer http://xstudiosinc.com Xstudios -- View this message in context: http://www.nabble.com/Zend-Form-Validation-tp20267185p20382827.html Sent from the Zend Framework mailing list archive at Nabble.com.

Re: [fw-general] ZF application optimizations (and speedup)

2008-11-07 Thread till
On Fri, Nov 7, 2008 at 1:36 AM, Sander van de Graaf [EMAIL PROTECTED] wrote: Hi all, Just wanted to point you to a blog post about some optimizations I found for a ZF project we're finishing up. It might be of interest to some of you:

Re: [fw-general] ZF application optimizations (and speedup)

2008-11-07 Thread till
On Fri, Nov 7, 2008 at 1:09 PM, Matthew Weier O'Phinney [EMAIL PROTECTED] wrote: -- Michael Depetrillo [EMAIL PROTECTED] wrote (on Thursday, 06 November 2008, 09:33 PM -0800): Does using autoload improve or reduce performance? I thought I saw an email by you where you stated in did. It

[fw-general] Trouble with on Change in Zend_Form_Element_Select

2008-11-07 Thread Mantz
Hey everyone I am working with ZF 1.6.2 and I'm trying to select something from one select element and then enable a second select element. I tried it as follows, but there are two problems. First of all go() does not know $fach2 and if I try to simply echo a random number it shows this one

[fw-general] ZF quickstart not working?

2008-11-07 Thread Julian Davchev
Hi, Is it just me or quickstart is not working. I got Message: SQLSTATE[HY000]: General error: 14 unable to open database file when I try to submit/add stuff in guestbook. I have chmod 777 data/db/guestbook-dev.db All other success messages etc are working as expected.

Re: [fw-general] ZF quickstart not working?

2008-11-07 Thread till
On Fri, Nov 7, 2008 at 5:04 PM, Julian Davchev [EMAIL PROTECTED] wrote: Hi, Is it just me or quickstart is not working. I got Message: SQLSTATE[HY000]: General error: 14 unable to open database file when I try to submit/add stuff in guestbook. I have chmod 777 data/db/guestbook-dev.db

Re: [fw-general] Zend PDT 2.0 all-in-one available (BETA)

2008-11-07 Thread Stefan Sturm
Hello, I didn't tried it, but I have a Question: How is the JavaScript Editor working? Is it possible to get jQuery or Prototype CodeCompletion? Thanks and Greetings, Stefan Sturm

Re: [fw-general] ZF application optimizations (and speedup)

2008-11-07 Thread Matthew Weier O'Phinney
-- till [EMAIL PROTECTED] wrote (on Friday, 07 November 2008, 03:40 PM +0100): On Fri, Nov 7, 2008 at 1:09 PM, Matthew Weier O'Phinney [EMAIL PROTECTED] wrote: -- Michael Depetrillo [EMAIL PROTECTED] wrote (on Thursday, 06 November 2008, 09:33 PM -0800): Does using autoload improve or

Re: [fw-general] ZF quickstart not working?

2008-11-07 Thread Matthew Weier O'Phinney
-- Julian Davchev [EMAIL PROTECTED] wrote (on Friday, 07 November 2008, 06:04 PM +0200): Is it just me or quickstart is not working. I got Message: SQLSTATE[HY000]: General error: 14 unable to open database file when I try to submit/add stuff in guestbook. I have chmod 777

Re: [fw-general] ZF application optimizations (and speedup)

2008-11-07 Thread till
On Fri, Nov 7, 2008 at 5:42 PM, Matthew Weier O'Phinney [EMAIL PROTECTED] wrote: -- till [EMAIL PROTECTED] wrote (on Friday, 07 November 2008, 03:40 PM +0100): On Fri, Nov 7, 2008 at 1:09 PM, Matthew Weier O'Phinney [EMAIL PROTECTED] wrote: -- Michael Depetrillo [EMAIL PROTECTED] wrote (on

Re: [fw-general] Re: Having problems using Zend Cache and Flickr

2008-11-07 Thread Fabien MARTY
sorry but your two print_r dumps seems to be the same ? can you be more precise and showing us the differences ? I don't know if it's the problem here. But don't forget that PHP serialization doesn't work with resources Ian a écrit : Anyone have an ideas on this? Im still stuck... On

Re: [fw-general] Zend_Search_Lucene is very sloooooow

2008-11-07 Thread keith Pope
Hi, I did a prototype using ZSL using a database of news articles 40,000. I had a bit of a mixed experience Indexing was fine took a while but nothing unexpected. Searching using simple queries was ok I think its was something like 0.8 - 2 seconds per search Searching using ranges failed

Re: [fw-general] ZF application optimizations (and speedup)

2008-11-07 Thread Matthew Weier O'Phinney
-- till [EMAIL PROTECTED] wrote (on Friday, 07 November 2008, 05:47 PM +0100): On Fri, Nov 7, 2008 at 5:42 PM, Matthew Weier O'Phinney [EMAIL PROTECTED] wrote: -- till [EMAIL PROTECTED] wrote (on Friday, 07 November 2008, 03:40 PM +0100): On Fri, Nov 7, 2008 at 1:09 PM, Matthew Weier

[fw-general] How to return result from this sql?

2008-11-07 Thread vladimirn
Hi all, i am stucked with this. I have to transform regular sql into Zend DB sql and then to return values in my phtml file. After many days i am not able to acompish that. There is my indexAction. public function indexAction() { $db = Zend_Registry::get ( 'db' );

[fw-general] Database Migrations - Yes, No, Maybe?

2008-11-07 Thread Phoenix
Coming to ZF from a Rails background (because I'm much stronger in PHP than in Ruby), one of the things that irks me is the *apparent* lack of a formal database migration system. In Rails, you create migration files, define the structure and/or changes in a DB-neutral context, then run the

Re: [fw-general] Zend_Db

2008-11-07 Thread Matthew Weier O'Phinney
I sent my original reply to you, but I'm posting here for the archives. -- Edward Haber [EMAIL PROTECTED] wrote (on Friday, 07 November 2008, 07:09 AM -0500): Thanks for the help! It is much appreciated. I had a feeling I was doing something a bit fishy. I tried the code below and the method

Re: [fw-general] Database Migrations - Yes, No, Maybe?

2008-11-07 Thread Benjamin Eberlei
does not exist and is not planned from what i can see in the proposals (there is one proposal, but its inactive for many months). if you want to use a formal migration system use Doctrine, Propel or ezcDatabaseSchema. All great components. Since ZF does not enforce a model component on you,

Re: [fw-general] Zend_Filter classes turn NULL values into empty strings

2008-11-07 Thread Felipe Weckx
Well, you can create a new Filter, which converts empty strings into null and add it to the the form Grotevant, Paul F escreveu: I'm developing a Zend_Form class which will feed data into a MySQL table through a Zend_Db table class. There are a number of fields on this form that are optional,

Re: [fw-general] Zend_Search_Lucene is very sloooooow

2008-11-07 Thread Matthew Ratzloff
Your e-mail prompted me to finally write down my thoughts on the subject: http://www.builtfromsource.com/2008/11/07/zend_search_lucene-not-enterprise-ready/ -Matt On Fri, Nov 7, 2008 at 1:09 AM, Ralf Eggert [EMAIL PROTECTED] wrote: Hi, no that is not my opinion, that is the one sentence I

Re: [fw-general] Database Migrations - Yes, No, Maybe?

2008-11-07 Thread Matthew Ratzloff
This is something that I expect we'll see after Zend_Tool is completed and we approach 2.0, along with generators. Trust me, I want to see those things, too. :-) -Matt On Fri, Nov 7, 2008 at 10:41 AM, Benjamin Eberlei [EMAIL PROTECTED]wrote: does not exist and is not planned from what i can

[fw-general] Handling asset version control with ZF

2008-11-07 Thread j5
Hey, I am looking for some creative and efficent ideas on how to handle static asset control using ZF for a large scale app. When I say static assets I am refering to: static images js scripts uploaded images/thumbnails css files I am currently hosting these on a seperate domain name from my

Re: [fw-general] Zend_Filter classes turn NULL values into empty strings

2008-11-07 Thread gerardroche
i have the same problem, will try this, though i'd rather not have to write a new filter. Felipe Weckx-2 wrote: Well, you can create a new Filter, which converts empty strings into null and add it to the the form Grotevant, Paul F escreveu: I'm developing a Zend_Form class which will

[fw-general] Zend_Mail how to test text/html bodies

2008-11-07 Thread Mark Steudel
Hi All, I've been using the: $mail-setBodyText(); $mail-setBodyHtml(); To set alternate bodies to my emails. I've sorta always taken it on faith that these work. But I figured I should probably test it. So how do you test the text body of an email? I tried pine once I think for a

Re: [fw-general] Handling asset version control with ZF

2008-11-07 Thread Matthew Ratzloff
http://en.wikipedia.org/wiki/Revision_control -Matt On Fri, Nov 7, 2008 at 11:33 AM, j5 [EMAIL PROTECTED] wrote: Hey, I am looking for some creative and efficent ideas on how to handle static asset control using ZF for a large scale app. When I say static assets I am refering to: static

RE: [fw-general] Database Migrations - Yes, No, Maybe?

2008-11-07 Thread Wil Sinclair
If I'm not mistaken, Rob Allen originally proposed DB migrations some time back. Last I heard, he was planning to refactor that proposal to build on Zend_Tool. Rob, how off am I? ,Wil -Original Message- From: Benjamin Eberlei [mailto:[EMAIL PROTECTED] Sent: Friday, November 07, 2008

Re: [fw-general] ZF application optimizations (and speedup)

2008-11-07 Thread Eric Coleman
On Fri, Nov 7, 2008 at 12:15 PM, Matthew Weier O'Phinney [EMAIL PROTECTED] wrote: Actually... loadClass() already does that. The issue is in the userland code -- if they do a require_once or include_once in userland *after* we've already loaded the class in the autoloader using simply include,

Re: [fw-general] Database Migrations - Yes, No, Maybe?

2008-11-07 Thread Rob Allen
On 7 Nov 2008, at 21:47, Wil Sinclair wrote: If I'm not mistaken, Rob Allen originally proposed DB migrations some time back. Last I heard, he was planning to refactor that proposal to build on Zend_Tool. Rob, how off am I? That's the basic plan - Zend_Tool is the obvious vehicle to use

[fw-general] PHP/Apache context

2008-11-07 Thread stevep98
Hi. I'm a newbie at both PHP and Zend. I've just been working on these for the past couple of months. My goal here is to ensure that my understanding of the execution model of PHP under apache is correct, and hopefully get some pointers on speeding things up. Firebug is showing that it takes 300

Re: [fw-general] ZF application optimizations (and speedup)

2008-11-07 Thread Matthew Weier O'Phinney
-- Eric Coleman [EMAIL PROTECTED] wrote (on Friday, 07 November 2008, 05:15 PM -0500): On Fri, Nov 7, 2008 at 12:15 PM, Matthew Weier O'Phinney [EMAIL PROTECTED] wrote: Actually... loadClass() already does that. The issue is in the userland code -- if they do a require_once or include_once

Re: [fw-general] PHP/Apache context

2008-11-07 Thread Matthew Ratzloff
Your understanding is correct. I'm guessing you come from a Java background, or something similar. PHP has no application server concept. The long and short is that there is nothing like what you want, but daemons like memcached can approximate this effect. Serialize data to memory,

Re: [fw-general] PHP/Apache context

2008-11-07 Thread Matthew Weier O'Phinney
-- stevep98 [EMAIL PROTECTED] wrote (on Friday, 07 November 2008, 02:49 PM -0800): Here are my main questions: a) Is there any way to store a variable (I'm thinking things like database handles, config objects) such that it can be retrieved in the same apache process when it is processing

Re: [fw-general] ZF application optimizations (and speedup)

2008-11-07 Thread Stanislav Malyshev
Hi! Actually... loadClass() already does that. The issue is in the userland code -- if they do a require_once or include_once in userland *after* we've already loaded the class in the autoloader using simply include, that will trigger the error. That's what I was getting at. That said, AFAIK

Re: [fw-general] PHP/Apache context

2008-11-07 Thread stevep98
Thanks for your replies, and you're right that I come from a java background. The profiler shows than another source of overhead for me seems to be Zend_Load. Loading all those helper classes takes about 30% of my total request time. I'm guessing the overhead is from actually doing the parsing

Re: [fw-general] PHP/Apache context

2008-11-07 Thread Matthew Ratzloff
The profiler shows than another source of overhead for me seems to be Zend_Load. Loading all those helper classes takes about 30% of my total request time. I'm guessing the overhead is from actually doing the parsing of those PHP files. It's likely that you're not doing everything you can

Re: [fw-general] ZF application optimizations (and speedup)

2008-11-07 Thread Matthew Ratzloff
That's correct. A file included with either include or include_once will not be loaded again if the interpreter hits a subsequent include_once statement. -Matt On Fri, Nov 7, 2008 at 6:15 PM, Stanislav Malyshev [EMAIL PROTECTED] wrote: Hi! Actually... loadClass() already does that. The

Re: [fw-general] PHP/Apache context

2008-11-07 Thread Matthew Weier O'Phinney
-- stevep98 [EMAIL PROTECTED] wrote (on Friday, 07 November 2008, 06:27 PM -0800): Thanks for your replies, and you're right that I come from a java background. The profiler shows than another source of overhead for me seems to be Zend_Load. Loading all those helper classes takes about 30% of