Re: [fw-general] Models as Singletons

2009-07-21 Thread Ed Lazor
On Tue, Jul 21, 2009 at 10:48 AM, troels knak-nielsentroel...@gmail.com wrote: Ireymichaeli...@dmgworldmedia.com wrote: That's a performance boost of 7X using a singleton versus not using a singleton. You're conflating two unrelated concepts. The performance difference that you observe is

Re: [fw-general] Models as Singletons

2009-07-23 Thread Ed Lazor
Since I'm trying to get a better understanding, and since we seem to be mixing several issues here, let me try to clarify and see if you agree. As per Wiki, a global variable is a variable that is accessible in every scope They are usually considered bad practice precisely because of their

Re: [fw-general] Models as Singletons

2009-07-24 Thread Ed Lazor
That boost can also occur if you simply do metadata caching, per the performance recommendations. ;) Truly, that's the single easiest way to improve performance in Zend_Db_Table, and it has huge impact, particularly if you instantiate multiple copies of the table within your app. Using a

Re: [fw-general] Upgrading to Zend Framework 1.9.0

2009-08-06 Thread Ed Lazor
 * Autoloader changes  * Refactoring to use Zend_Application (not necessary, but    future-proofs your code) Any recommended tutorials for Zend_Application? -Ed

[fw-general] Debug Warning Zend Loader line 165

2009-09-08 Thread Ed Lazor
Should I expect to see these debug warnings when debugging my ZF-based application in Zend Studio? Debug Warning: /www/lib/zend/ZendFramework-1.9.2/library/Zend/Loader.php line 165 - fopen(/www/vhosts/local.test.com/application/views/helpers/Url.php) [a href='function.fopen'function.fopen/a]:

Re: [fw-general] Debug Warning Zend Loader line 165

2009-09-09 Thread Ed Lazor
Hi Ralph, Thanks - I really appreciate the response, the clarification, and knowing that it will be possible to address this in the future. -Ed This is correct behavior.  The debugger in studio is throwing a warning in a situation where PHP has already suppressed the error.  FYI, Zend_Loader

[fw-general] Zend_Tool

2009-10-14 Thread Ed Lazor
Any how to fix this error? From inside of Zend Studio 7.0.2, using Zend Tool: executing zf create controller Test Current context is not valid, consider using the 'cd' command to alter the contextfile:/Users/edlazor/Zend/workspaces/DefaultWorkspace7

[fw-general] include path

2009-10-15 Thread Ed Lazor
Something broke in my project, not sure what, but ZF is suddenly having trouble finding classes - models, controllers, forms, etc.. Everything works if I manually add the directories to the include path. Any idea of what broke, how to fix it, or what to check? In one special case, the models are

Re: [fw-general] Zend_Tool

2009-10-15 Thread Ed Lazor
On Thu, Oct 15, 2009 at 7:58 AM, Ralph Schindler ralph.schind...@zend.com wrote: Do you know which php you have setup for Zend Studio to use? Perhaps the include_path is getting mangled somewhere? It's using whatever the default php is for Zend Studio 7.0.2. Going into Zend Studio Preferences

Re: [fw-general] Zend_Tool

2009-10-15 Thread Ed Lazor
More information that I thought might be helpful... I have two computers with the same problem. Both have php and zf 1.9.4 minimal installed. The php cli has zf in it's include_path and this include path matches the include_path reported from zf show phpinfo. From both systems, running Zend

[fw-general] Zend_Locale

2009-10-29 Thread Ed Lazor
Hi, I'm trying to clean up my bootstrap. Is there a way to move these lines to application.ini? setlocale(LC_ALL, 'en_US.utf8'); Zend_Locale::setDefault('en'); I read through the manual and it looks like this is required in the bootstrap, but I'd like to double check. Thanks, Ed

Re: [fw-general] Zend_Locale

2009-10-29 Thread Ed Lazor
I'm trying to clean up my bootstrap.  Is there a way to move these lines to application.ini? setlocale(LC_ALL, 'en_US.utf8'); Zend_Locale::setDefault('en'); I read through the manual and it looks like this is required in the bootstrap, but I'd like to double check. Take a look at

[fw-general] zfproject.xml

2009-11-10 Thread Ed Lazor
Is there a way to rebuild the zfproject.xml file with Zend_Tool? How do you keep it updated on a project with others when some people use Zend_Tool and others don't? Or is this not a big concern? -Ed