Re: [fw-general] Re: Guidance on storing passwords securely

2010-09-01 Thread Matthew Ratzloff
You can have the most unbreakable password hashing scheme in the world, but your site's data is only as secure as the weakest link. There are plenty of attack vectors: XSS, CSRF, etc. Any one of these could be a potential way into a site admin account at least. At a minimum, don't reuse your

Re: [fw-general] Zend_Pagination_Adapter_Array usage questions

2010-08-11 Thread Matthew Ratzloff
It can be considered a bug now; please file a ticket. I believe at the time Paginator was released, PHP 5.0 was the minimum required version and so it was left out because it wouldn't be widely used (that parameter was added in 5.0.2). For now you could simply create your own adapter to get

Re: [fw-general] Team Development

2010-08-08 Thread Matthew Ratzloff
You're misunderstanding... You have development boxes for those services. If you have a web service and you're not doing work on it, there's no need to have a local instance of it. Obviously production data that is mirrored on development machines should be cleaned. -Matt On Sat, Aug 7, 2010

Re: [fw-general] Team Development

2010-08-07 Thread Matthew Ratzloff
Local dev environments are best. Leads should help new and junior members of their teams set up their environment, and steps should be documented on an internal wiki. We have developers who use Mac, Windows, and Ubuntu--including all three just on my team alone. You would think this would be a

Re: [fw-general] ACRONYM casing, or MixedCasing? You decide!

2010-07-11 Thread Matthew Ratzloff
Mixed case seems easier, especially when you have two acronyms next to each other. Case in point: Zend_Controller_Request_Http::isXmlHttpRequest(). Is this formatted in acronym case? Then it should be isXMLHTTPRequest(). Is this formatted according to its actual formatting in JavaScript? Then

Re: [fw-general] Zend_Paginator and normalization of pageNumber

2010-05-17 Thread Matthew Ratzloff
Yep, this was intentional behavior. Luckily, it's easy enough to provide your own functionality by extending the class. The method is quite short: /** * Brings the page number in range of the paginator. * * @param integer $pageNumber * @return integer */ public function

Re: [fw-general] Warning: array_fill(): Number of elements must be positive in Zend_Paginator_Adapter_Null

2010-02-17 Thread Matthew Ratzloff
Michael Rehbein helpfully supplied a patch and unit tests for this issue, so I'll be merging that in sometime this week or Sunday. In the meantime, feel free to patch your code manually: http://framework.zend.com/issues/browse/ZF-4151 Index: library/Zend/Paginator/Adapter/Null.php

Re: [fw-general] Discontinuing Zend Entity in favour of Doctrine integration

2009-11-25 Thread Matthew Ratzloff
One such area is unit testing; it's far easier to test a plain old PHP object than it is to test something that has couplings to the database -- which is what happens when your entities extend from a base class. This. Also because Doctrine is established, has many users and wide acceptance,

Re: [fw-general] zend lucene

2009-11-11 Thread Matthew Ratzloff
talking about ZL, it's about the fundamental aspects of the two languages. On 10 Nov 2009, at 21:37, Matthew Ratzloff m...@builtfromsource.com javascript:_e({}, 'cvml', 'm...@builtfromsource.com'); wrote: I guess I don't see how comparing the two is totally flawed.  You should compare solutions

Re: [fw-general] zend lucene

2009-11-10 Thread Matthew Ratzloff
I guess I don't see how comparing the two is totally flawed. You should compare solutions for the dimensions that matter to your use case--in the case of large indices, performance will undoubtedly be one of those dimensions. I had a similar experience with Zend_Search_Lucene and concluded that

Re: [fw-general] Discontinuing Zend Entity in favour of Doctrine integration

2009-11-04 Thread Matthew Ratzloff
Would be ZendX_Doctrine_AuthAdapter (or something), wouldn't it? -Matt On Wed, Nov 4, 2009 at 1:10 PM, A.J. Brown fynw...@gmail.com wrote: Can we make sure the ZendX_Auth_Adapter_Doctrine gets into the standard library whenever the integration happens?

[fw-general] Re: [zf-contributors] Re: [fw-general] Simple Cloud API Proposals

2009-10-07 Thread Matthew Ratzloff
Hi Wil, I think any queue class should follow the conventions set forth by Zend_Queue (by extending or implementing the appropriate adapter class). This looks like a major oversight in Zend_Cloud_Queue's API. -Matt On Tue, Oct 6, 2009 at 7:44 AM, Matthew Weier O'Phinney matt...@zend.comwrote:

Re: [fw-general] Is there anybody from Zend team ?

2009-09-23 Thread Matthew Ratzloff
Guys, please let this subject die by not replying to the thread. -Matt On Wed, Sep 23, 2009 at 1:59 AM, aoohralex aoohra...@gmail.com wrote: My critical subject about Zend Framework was deleted. Somebody from Zend deleted my post. My criticism PHP authors and Zend Framework in compare to

Re: [fw-general] DataGrid

2009-09-22 Thread Matthew Ratzloff
Ext JS (primarily Ext.grid.GridPanel). We have some pretty stringent needs for data grid functionality, and--with plugins--this meets our needs. I've written quite a bit of code for facilitating communication with the back end which perhaps I'll release at some point in early 2010. -Matt On

Re: [fw-general] list of validators in Zend like in Symfony Framework

2009-09-19 Thread Matthew Ratzloff
Go look at the source code, see how each works, and then decide. Looking at the source code will save you time for waiting for a response from the mailing list. -Matt On Saturday, September 19, 2009, aoohralex aoohra...@gmail.com wrote: ok - thx - I searched in bad place - in Zen_Forms I

Re: [fw-general] Is there anybody from Zend team ?

2009-09-16 Thread Matthew Ratzloff
The framework is designed primarily for web development, as is PHP; I don't think it's unreasonable for the layout configuration to appear in the application.ini for a project generated by the zf command, at least commented out. -Matt On Wed, Sep 16, 2009 at 8:12 AM, Carlton Gibson

Re: [fw-general] Is there anybody from Zend team ?

2009-09-16 Thread Matthew Ratzloff
Framework can't be flexible. If somebody needs flexibility then he can programming in normal PHP without framework. :-) This is an opinion, one to which Zend Framework does not subscribe. There are plenty of PHP frameworks which do subscribe to this opinion. And there's always Rails, which

Re: Re: [fw-general] RFC: ZendX_Doctrine

2009-09-15 Thread Matthew Ratzloff
What is the current status of this? -Matt On Tue, May 12, 2009 at 4:29 PM, Matthew Lurz mlur...@gmail.com wrote: I agree, with both of you :) I don't think we need to swallow the project whole or cultivate an overarching bureaucracy since the ZF team provides the necessary tooling,

Re: [fw-general] Is there anybody from Zend team ?

2009-09-15 Thread Matthew Ratzloff
1. Why I must register to download ZF ? You don't, actually. http://framework.zend.com/download/current/ 2. Why after generate ZF project using console: zf.bat create project quickstart and after placed it on the server it DOESN'T WORK !! I must create .htaccess: RewriteEngine On

Re: [fw-general] Clarification needed about Zend and its products

2009-09-13 Thread Matthew Ratzloff
It's invaluable for licensing platforms or libraries to other companies, especially in places like China, where copyright enforcement is weak, to say the least. -Matt On Saturday, September 12, 2009, Peter Warnock Zend Optimizer is really an encoder

Re: [fw-general] A simple idea...

2009-07-11 Thread Matthew Ratzloff
I would like to point out that early on in the development of Zend_Registry I had advocated providing the option of using it via dependency injection, but was summarily overruled. ;-) -Matt On Sat, Jul 11, 2009 at 1:21 PM, Ralph Schindler ralph.schind...@zend.comwrote: This is effectively a

Re: [fw-general] Zend Framework + Doctrine Module Autoloader issue

2009-07-09 Thread Matthew Ratzloff
At my company I ended up creating a Doctrine integration class with a couple of special methods: class My_Doctrine { /** * Recursively (and lazily) load all models from a directory or * array of directories. * * @param string|array $directory Models directory or directories

Re: [fw-general] Zend_Amf - Your opinion on a design idea

2009-07-02 Thread Matthew Ratzloff
Is the Front Controller pattern + ACL too heavy for what you want to do? -Matt On Thu, Jul 2, 2009 at 1:24 AM, J DeBord jasdeb...@gmail.com wrote: We're in the design stage of an application that is going to use Adobe Flex / Actionscript for the front end and use AMF to communicate with the

Re: [fw-general] Re[fw-general] moving Require_once

2009-06-29 Thread Matthew Ratzloff
sed -E -i~ 's/(require_once)/\/\/ \1/g' % find . -name '*.php~' | xargs rm -f -Matt On Mon, Jun 29, 2009 at 7:03 PM, Matthew Ratzloff m...@builtfromsource.comwrote: The documentation assumes GNU versions of find and sed, and should probably note that. The equivalent BSD command (which

Re: [fw-general] ZFW OO coding guideline

2009-06-21 Thread Matthew Ratzloff
If it's just a namespaced function, MyClass::foo() is probably fine. BTW, unless you're using PHP 4, the pass-by-reference stuff is unnecessary. PHP 5 always passes objects by reference. -Matt On Sun, Jun 21, 2009 at 9:50 AM, howard chen howac...@gmail.com wrote: Hello, It is not a 100% zfw

Re: [fw-general] ZFW OO coding guideline

2009-06-21 Thread Matthew Ratzloff
How silly. What is Zend_Registry, then? Zend_Controller_Front? They're all singletons. Should all factories be implemented as instance methods, too? Let's say this class he's talking about returns an ad for a given set of dimensions and providers. What is so wrong with My_Ad::factory(), with a

Re: [fw-general] ZFW OO coding guideline

2009-06-21 Thread Matthew Ratzloff
: -- Matthew Ratzloff m...@builtfromsource.com wrote (on Sunday, 21 June 2009, 05:22 PM -0700): How silly. What is Zend_Registry, then? Zend_Controller_Front? They're all singletons. Singletons, yes. Should ZF have them? I'm leaning towards, no, as they are hard to test, and harder still for users

Re: [fw-general] Zend Paginator - Two paginators in one action

2009-06-19 Thread Matthew Ratzloff
Check the issue tracker. -Matt On Fri, Jun 19, 2009 at 8:34 AM, Simeon Goranov sai...@thefreeart.comwrote: Hello, I'm trying to create an action (page) with two paginators on it, so it should be possible to use both paginators. Do you have any idea (sample code) how to do it ? Thanks in

Re: [fw-general] How to escape forward slash in paginator?

2009-06-16 Thread Matthew Ratzloff
1. Your own library. library/My/Filter/Foo.php2. http://framework.zend.com/manual/en/zend.form.elements.html#zend.form.elements.filters -Matt On Mon, Jun 15, 2009 at 11:35 PM, Deepak d88...@gmail.com wrote: On Tue, Jun 16, 2009 at 12:49 AM, Matthew Ratzloffm...@builtfromsource.com wrote:

Re: [fw-general] How to escape forward slash in paginator?

2009-06-15 Thread Matthew Ratzloff
You can replace it with a substitute token. There are a variety of perfectly valid ways to go about it. -Matt On Mon, Jun 15, 2009 at 1:57 AM, Deepak d88...@gmail.com wrote: On Mon, Jun 15, 2009 at 3:56 PM, Deepakd88...@gmail.com wrote: On Sun, Jun 14, 2009 at 11:48 PM, Matthew

Re: [fw-general] How to escape forward slash in paginator?

2009-06-14 Thread Matthew Ratzloff
I assume you mean you're using Form's Filter integration. Look into using Zend_Filter_Callback or writing your own. It's about the same level of effort either way. These pages should help: http://framework.zend.com/manual/en/zend.form.elements.html#zend.form.elements.filters

Re: [fw-general] How to escape forward slash in paginator?

2009-06-13 Thread Matthew Ratzloff
This is an Apache issue (or perhaps feature, as it is intended behavior). It is possible to disable this, but you should consider simply filtering out the forward slash character from searches or passing the search in the query string. -Matt On Saturday, June 13, 2009, Deepak d88...@gmail.com

Re: [fw-general] A Zend_Db Adapter for ext/mysql (mysql_*)

2009-06-13 Thread Matthew Ratzloff
CLA? Proposal? Inclusion in the framework? :-) -Matt On Saturday, June 13, 2009, Benjamin Eberlei kont...@beberlei.de wrote: Hello everyone, I have a project that i slowly want to migrate to Zend Framework. This project uses ext/mysql all over the place and therefore requires an adapter

Re: [fw-general] Iterating a Tree

2009-06-11 Thread Matthew Ratzloff
Breadth-first traversal or depth-first traversal. This is one possible implementation of a depth-first traversal in a database table: http://www.sitepoint.com/article/hierarchical-data-database/ -Matt On Thu, Jun 11, 2009 at 3:15 AM, iceangel89 comet2...@gmail.com wrote: if i have a table

Re: [fw-general] General - Web Development Frameworks

2009-06-09 Thread Matthew Ratzloff
Without knowing anything about your specific situation, I'll try to answer as best as I can about Zend Framework and Rails. Presumably you already know PHP, so with Zend Framework you only need to learn the framework. Therefore your speed of development at first will be higher compared to Rails.

[fw-general] View partials packaged with the framework?

2009-06-09 Thread Matthew Ratzloff
Hi guys, There was an issue raised requesting that Zend_Paginator output something by default without setting a view partial. The easiest way to do this is to include a default view partial. The question is: where? I was thinking Zend/View/Helper/PaginationControl/default.phtml. Or is there

Re: [fw-general] Facebook Vanity URLs

2009-06-09 Thread Matthew Ratzloff
$front = Zend_Controller_Front::getInstance(); $router = $front-getRouter(); $router-removeDefaultRoutes(); $router-addRoute(new Zend_Controller_Router_Route( ':username', array( 'module' = 'user', 'controller' = 'profile', 'action' = 'view' ) ));

Re: [fw-general] Zend_Paginator and Zend_Paginator_Adapter_Null

2009-06-08 Thread Matthew Ratzloff
Yes, there's a ticket for it. -Matt On Mon, Jun 8, 2009 at 6:17 AM, umpirsky umpir...@gmail.com wrote: Hi. I noticed that there is some problem with this adapter. Code: $paginator = new Zend_Paginator(new Zend_Paginator_Adapter_Null(46)); $paginator-setCurrentPageNumber($page);

Re: [fw-general] Zend_Paginator and Zend_Paginator_Adapter_Null

2009-06-08 Thread Matthew Ratzloff
it will be fixed. Matthew Ratzloff wrote: Yes, there's a ticket for it. -Matt On Mon, Jun 8, 2009 at 6:17 AM, umpirsky umpir...@gmail.com wrote: Regards, Sasa Stamenkovic. Hi. I noticed that there is some problem with this adapter. Code: $paginator = new Zend_Paginator(new

Re: [fw-general] Zend Fremework and Job

2009-06-04 Thread Matthew Ratzloff
Based on my experience, Zend Framework is still new enough that not a lot of companies have transitioned to it. I work at one, but even our code base is still 50/50 (with a custom framework). -Matt On Thu, Jun 4, 2009 at 9:11 AM, Sergio Rinaudo kaiohken1...@hotmail.comwrote: Thanks, if there

Re: [fw-general] [General] Windows vs Web Apps

2009-06-02 Thread Matthew Ratzloff
Well, which do you think is going to be faster? Compiled C++ or interpreted PHP (querying MySQL)? http://en.wikipedia.org/wiki/Compiled_language http://en.wikipedia.org/wiki/Interpreted_language -Matt On Tue, Jun 2, 2009 at 5:26 AM, iceangel89 comet2...@gmail.com wrote: i know this maybe a

Re: [fw-general] ZF CLI slow

2009-06-01 Thread Matthew Ratzloff
(on Monday, 01 June 2009, 12:58 AM -0700): Matthew Ratzloff wrote: So the obvious next step would be to post your PHP CLI include path. php -i | grep include_path include_path = c:\users\user\www\library;. = c:\users\user\www\library;. library/ Zend/ Doctrine

Re: [fw-general] ZF CLI slow

2009-06-01 Thread Matthew Ratzloff
=ubuntu_jaunty_osxnum=1 Mac OS X is better with some tasks, Linux with others. Let's leave the broad generalizations to Slashdot. ;-) -Matt On Mon, Jun 1, 2009 at 8:00 AM, Matthew Weier O'Phinney matt...@zend.comwrote: -- Matthew Ratzloff m...@builtfromsource.com wrote (on Monday, 01 June 2009, 07

Re: [fw-general] ZF CLI slow

2009-05-31 Thread Matthew Ratzloff
So the obvious next step would be to post your PHP CLI include path. php -i | grep include_path -Matt On Sun, May 31, 2009 at 2:54 AM, admirau admi...@gmail.com wrote: beberlei wrote: enable xdebug profiler and see with kcachegrind what took so long. my guess is the recursive search

Re: [fw-general] Drop-in module proof of concept

2009-05-08 Thread Matthew Ratzloff
If you haven't already, you should look at Rails Engines for inspiration. http://rails-engines.org/ Clearly, there's a need for reusable drop-in modules, and with 1.8 it looks like the infrastructure finally exists (more or less) to move in that direction. -Matt On Fri, May 8, 2009 at 3:21 PM,

Re: [fw-general] Survey: Development environment for PHP/ZFW

2009-05-04 Thread Matthew Ratzloff
When I do PHP development, 1. Mac OS X2. Either, depending on the situation 3. TextMate (I use Macfusion for mounting remote file systems), or Vim for quick edits 4. Subversion 5. Yes In my spare time I mostly develop in Ruby, though (and lately MacRuby, using Xcode). For personal projects I

Re: [fw-general] Zend Framework team reorganization

2009-04-14 Thread Matthew Ratzloff
Congrats, Matthew. Out of curiosity, is Wil staying on at Zend? -Matt On Tue, Apr 14, 2009 at 5:15 AM, Matthew Weier O'Phinney matt...@zend.comwrote: Greetings! The Zend Framework team has undergone some internal reorganization recently which will have some bearing on the project. First,

Re: [fw-general] Zend View vs. Smarty

2009-03-25 Thread Matthew Ratzloff
A friend and I set up this website one evening about a year ago because Smarty had pissed us off one time too many in our (now former) jobs. http://www.nosmarty.net/ -Matt On Wed, Mar 25, 2009 at 10:28 AM, Bradley Holt bradley.h...@foundline.comwrote: On Wed, Mar 25, 2009 at 1:12 PM, Alex

Re: [fw-general] Issue: Resource autoloading with Zend_Loader_Autoloader_Resource (incubator)

2009-02-26 Thread Matthew Ratzloff
As a side note, I wish there was a way to configure Zend_Loader to iterate over the include path and check is_readable() on them. I know it's much slower, but it would be more convenient during development when you're watching log messages to not always have to filter out the include_once

Re: [fw-general] Issue: Resource autoloading with Zend_Loader_Autoloader_Resource (incubator)

2009-02-26 Thread Matthew Ratzloff
Ah. I missed the addition of Zend_Loader_Autoloader to the framework, apparently. -Matt On Thu, Feb 26, 2009 at 1:49 PM, Matthew Weier O'Phinney matt...@zend.comwrote: -- Matthew Ratzloff m...@builtfromsource.com wrote (on Thursday, 26 February 2009, 01:02 PM -0800): As a side note, I wish

[fw-general] Does Zend_Search_Lucene_Search_QueryParser just... er... not work?

2009-02-06 Thread Matthew Ratzloff
I was under the impression that the QueryParser class parsed a query and, if there were no exceptions, returned an object that, when converted to a string, would return a working query. This seems to not be the case: --

Re: [fw-general] Does Zend_Search_Lucene_Search_QueryParser just... er... not work?

2009-02-06 Thread Matthew Ratzloff
the behaviour of the query parser changed in 1.5 to not throw exceptions when parsing fails, unless it's told to do so. Try adding Zend_Search_Lucene_Search_QueryParser::dontSuppressQueryParsingExceptions(); On Feb 7, 2009, at 07:20 , Matthew Ratzloff wrote: I was under the impression

Re: [fw-general] Is Cal Evan's Globals.php a recommended approach

2009-01-17 Thread Matthew Ratzloff
Since configuration is such a fundamental aspect of most components, perhaps this can be added to the coding standards, along with whatever suggested implementations the community agrees upon? -Matt On Sat, Jan 17, 2009 at 6:55 AM, Matthew Weier O'Phinney matt...@zend.comwrote: -- Matthew

Re: [fw-general] Zend_Validate_EmailAddress, MX lookup not support on Windows?

2009-01-17 Thread Matthew Ratzloff
It's because you haven't added it yet, of course. ;-) -Matt On Sat, Jan 17, 2009 at 11:29 AM, Isaak Malik iso...@gmail.com wrote: How come there is no support for MX lookups on a Windows environment? I'm aware that checkdnsrr() is not supported by Windows but why is there no alternative

Re: [fw-general] Is Cal Evan's Globals.php a recommended approach

2009-01-16 Thread Matthew Ratzloff
This is more or less how you see the setOptions() implementation in a few classes currently. The idea that you proxy the key to a mutator (setter) setSomething($value) method. Yep, except it's in one place instead of several with tiny variations. And it works with static setters. -Matt

Re: [fw-general] Is Cal Evan's Globals.php a recommended approach

2009-01-15 Thread Matthew Ratzloff
I've been pushing the setOptions/setConfig paradigm for a while, and it works really well with DI. Your constructor then passes the options on to setOptions() which attempts to call setters named after the keys. The result is that it allows you to push your dependencies in at instantiation

[fw-general] Zend_Log API improvement?

2009-01-09 Thread Matthew Ratzloff
The following is a bit silly: $logger-setEventItem('foo', $foo); $logger-setEventItem('bar', $bar); $logger-setEventItem('baz', $baz); $logger-err('Error message'); Better I think would be two alternatives: $logger-foo = $foo; $logger-bar = $bar; $logger-baz = $baz; $logger-err('Error

Re: [fw-general] PHP version requirement

2009-01-05 Thread Matthew Ratzloff
Litka's RPMs are fine; I've relied on them for almost two years now. Honestly, PHP 5.1.6 came out two and a half years ago. Red Hat may backport the security fixes, but look at the bug fixes in this change log from 5.1.6 to 5.2.8: http://www.php.net/ChangeLog-5.php -Matt On Mon, Jan 5, 2009 at

Re: [fw-general] Is javascript framework integration into ZF really that beneficial?

2009-01-05 Thread Matthew Ratzloff
A quick note to everyone who may be confused: he's replying to an e-mail I sent him off-list. (Didn't want to spam a link to my blog yet again.) -Matt On Mon, Jan 5, 2009 at 2:09 PM, sprynmr robert.sp...@hivelive.com wrote: Thanks Matt, I think I'm coming to pretty much the same conclusion

Re: [fw-general] RE: [PHP] Thank you everyone, What a wonderful world

2009-01-03 Thread Matthew Ratzloff
First off, I don't think this is the place to get involved into a political discussion. Then don't. I'm confident that the Israeli-Palestinian conflict will not be solved on a programming-related mailing list, so if you feel the need to reply please limit it to the original sender. -Matt On

Re: [fw-general] Zend_Paginator Negative itemCountPerPage

2008-12-29 Thread Matthew Ratzloff
Hi Bradley, Use the scrolling style All instead. Please see http://framework.zend.com/manual/en/zend.paginator.usage.html for more information. -Matt On Sun, Dec 28, 2008 at 6:40 PM, Bradley Holt bradley.h...@foundline.comwrote: I was looking for a way to have Zend_Paginator show all of the

Re: [fw-general] Zend_Paginator Negative itemCountPerPage

2008-12-29 Thread Matthew Ratzloff
) to the setItemCountPerPage method does the job - I just don't know if this is an intended feature or something that just happens to work now but may not be supported in the future. Thanks, Bradley On Mon, Dec 29, 2008 at 1:00 PM, Matthew Ratzloff m...@builtfromsource.com wrote: Hi Bradley

Re: [fw-general] Re: Quick question re an XSLT based Zend_View

2008-12-16 Thread Matthew Ratzloff
FWIW, I'd like to see something like this. -Matt On Tue, Dec 16, 2008 at 2:35 AM, Colin Guthrie gm...@colin.guthr.ie wrote: 'Twas brillig, and Colin Guthrie at 11/12/08 11:54 did gyre and gimble: Hi, I'm in the position where I'd like to use XSLT scripts to render parts of my output

Re: [fw-general] noob-question: increment integer in db

2008-12-10 Thread Matthew Ratzloff
http://us2.php.net/manual/en/language.operators.increment.php Increment and decrement operators were introduced by C and are found in most popular languages, with the exception of Python and Ruby. -Matt On Tue, Dec 9, 2008 at 8:29 AM, Markus Hausammann [EMAIL PROTECTED] wrote: it works, that's

Re: [fw-general] Zend_File_Transfer proposal, send and receive

2008-12-09 Thread Matthew Ratzloff
Paweł, Perhaps I'm misunderstanding, but I'm guessing you won't be able to do this because Zend Framework does not model the file system. At my company, our platform used to use MogileFS, but we transitioned to POSIX-compatible file storage; we recommend OCFS2 to our clients now. (Side note: I

Re: [fw-general] Extended Zend_Ldap component in Standard Incubator

2008-12-07 Thread Matthew Ratzloff
Can I suggest calling it Zend_Ldap_Extended instead? In the PHP world ext implies PHP extension, e.g., ext/ldap. Extended would remove any possible confusion about its purpose. -Matt On Sun, Dec 7, 2008 at 6:33 AM, Stefan Gehrig [EMAIL PROTECTED] wrote: Hello everybody, after having been

Re: [fw-general] Extended Zend_Ldap component in Standard Incubator

2008-12-07 Thread Matthew Ratzloff
-compatible, for the current Zend_Ldap – as proposed by Ralph Schindler in his comment announcing the approval of the component into the Standard Incubator. Best regards Stefan *Von:* Matthew Ratzloff [mailto:[EMAIL PROTECTED] *Gesendet:* Sonntag, 7. Dezember 2008 21:51 *An:* Stefan

Re: [fw-general] Zend_Net Package?

2008-12-04 Thread Matthew Ratzloff
I'd love to see a proposal and your current work on this, after your CLA is signed (if not already). -Matt On Thu, Dec 4, 2008 at 1:32 PM, A.J. Brown [EMAIL PROTECTED] wrote: Hello all, I wrote a library for matching IP addresses, ranges, and networks against eachother with support for

Re: [fw-general] Friendly URLs

2008-12-01 Thread Matthew Ratzloff
http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.routes.regex -Matt On Mon, Dec 1, 2008 at 2:47 AM, Michał Zieliński [EMAIL PROTECTED] wrote: Sorry for refreshing so old thread but I have question to the example. What if I don`t have the max depth of

Re: [fw-general] Question on organising contollers

2008-12-01 Thread Matthew Ratzloff
You should read up on RESTful URLs and REST in general. The gist is /resource/action/id. -Matt On Mon, Dec 1, 2008 at 1:41 AM, Julian102 [EMAIL PROTECTED] wrote: Hello, I am new to using the MVC (or any other design pattern) as well as zend framework. I can find lots and lots of

Re: [fw-general] Question about zend pagination

2008-11-19 Thread Matthew Ratzloff
Your route doesn't have a :page parameter like the example shows. -Matt On Wed, Nov 19, 2008 at 7:39 AM, vladimirn [EMAIL PROTECTED] wrote: Matt, thanks for posting this link and quote rom documents. I've already read that before i posted in here :) How to use that in my example? Matthew

Re: [fw-general] [Zend_Paginator] Bug when using complex Zend_Db_Select

2008-11-19 Thread Matthew Ratzloff
(*) as count from ( ...pased select) as select; Matthew Ratzloff wrote: I just want to be clear that setRowCount() accepts either an integer or Zend_Db_Select object for the TOTAL row count. -Matt On Tue, Nov 18, 2008 at 12:06 PM, Iulian M [EMAIL PROTECTED] wrote: Thank you

Re: [fw-general] xforms with zend

2008-11-19 Thread Matthew Ratzloff
Assuming you're using something like FormFaces or Ubiquity XForms on the front end, you should be able to treat your forms like regular forms. -Matt On Wed, Nov 19, 2008 at 11:07 AM, nolnor [EMAIL PROTECTED] wrote: i have a webpage made of xforms. i hope use a database to verify user's name

Re: [fw-general] [Zend_Paginator] Bug when using complex Zend_Db_Select

2008-11-18 Thread Matthew Ratzloff
The easiest way to solve this is to pass in your own Zend_Db_Select COUNT query to Zend_Paginator_Adapter_DbSelect::setRowCount(). http://framework.zend.com/svn/framework/standard/trunk/library/Zend/Paginator/Adapter/DbSelect.php Hope that helps, -Matt On Tue, Nov 18, 2008 at 7:32 AM, Iulian M

Re: [fw-general] Question about zend pagination

2008-11-18 Thread Matthew Ratzloff
Do you define a page parameter in your route? -Matt On Tue, Nov 18, 2008 at 10:14 AM, vladimirn [EMAIL PROTECTED] wrote: Thank you Daniel, This is my view script: ?php if (count($this-paginator)): ? ?php foreach ($this-paginator as $banner): ? div div style=float:left; padding-left:20px

Re: [fw-general] [Zend_Paginator] Bug when using complex Zend_Db_Select

2008-11-18 Thread Matthew Ratzloff
rowCount. Iulian Matthew Ratzloff wrote: The easiest way to solve this is to pass in your own Zend_Db_Select COUNT query to Zend_Paginator_Adapter_DbSelect::setRowCount(). http://framework.zend.com/svn/framework/standard/trunk/library/Zend/Paginator/Adapter/DbSelect.php Hope

Re: [fw-general] Re: Bootstrap Action HelperBroker stops execution on production server

2008-11-14 Thread Matthew Ratzloff
* spelled out in the view helper documentation. Whatsoever I learnt it is obligated in any case and do not use setlocale() and Zend_Locale::setDefault() together. 2008/11/14 Matthew Ratzloff [EMAIL PROTECTED] I have finally solved the problem!! So... what was the problem

Re: [fw-general] Re: Bootstrap Action HelperBroker stops execution on production server

2008-11-13 Thread Matthew Ratzloff
5.2.1-0.dotdeb.1 SPL present IteratorAggregate present By the way I've installed a simple workshop ZF application with no helper and no db, which works fine on both servers. Thanks for helping both of you ppl. 2008/11/13 Matthew Ratzloff [EMAIL PROTECTED] Run this on both your

Re: [fw-general] Re: Bootstrap Action HelperBroker stops execution on production server

2008-11-12 Thread Matthew Ratzloff
Run this on both your development machine and the production machine that's having issues: #!/usr/bin/php ?php print 'PHP version ' . phpversion() . \n; if (extension_loaded('SPL')) { print SPL present\n; } else { print SPL NOT present\n; } if (interface_exists('IteratorAggregate')) {

Re: [fw-general] Multiple auth adapters in Chain

2008-11-11 Thread Matthew Ratzloff
Like Zend_Auth_Chain? That would be useful. Users add adapters, then call authenticate(). -Matt On Tue, Nov 11, 2008 at 2:37 AM, Jan Pieper [EMAIL PROTECTED] wrote: Hi guys, for our application we need two different auth adapters (Ldap, DbTable). One is used for a specified ip range, the

Re: [fw-general] Multiple auth adapters in Chain

2008-11-11 Thread Matthew Ratzloff
Well, there is no system called Chain that you authenticate against, like LDAP, OpenID, or a database table. Just because it is a class that uses those adapters doesn't mean it is an adapter. It's a meta-adapter. The fact that it implements the interface is incidental. -Matt On Tue, Nov 11,

Re: [fw-general] Zend_Text_Table promted to trunk

2008-11-10 Thread Matthew Ratzloff
It used to be called Zend_Ascii: http://framework.zend.com/wiki/display/ZFPROP/Zend_Ascii+-+Ben+ScholzenZend_Ascii - Ben Scholzen - Zend Framework Wikihttp://framework.zend.com/wiki/display/ZFPROP/Zend_Ascii+-+Ben+Scholzen As is typical, I finally had time to play around with it only after it had

Re: [fw-general] Zend_Text_Table promted to trunk

2008-11-10 Thread Matthew Ratzloff
to auto-size the table around the data it contains. -Matt On Mon, Nov 10, 2008 at 9:39 AM, Matthew Ratzloff [EMAIL PROTECTED]wrote: It used to be called Zend_Ascii: http://framework.zend.com/wiki/display/ZFPROP/Zend_Ascii+-+Ben+ScholzenZend_Ascii - Ben Scholzen - Zend Framework Wikihttp

Re: [fw-general] Zend_Text_Table promted to trunk

2008-11-10 Thread Matthew Ratzloff
Well, the idea is you can add this improvement in the next release (1.7.1 perhaps) without breaking BC. Otherwise, it breaks BC. For now, you could just throw an exception if that value is not present. So if the columnWidths field is not present, use auto-sizing; if a null value is present in

Re: [fw-general] Zend_Text_Table promted to trunk

2008-11-10 Thread Matthew Ratzloff
. ... : ___ _ ___ ___ ___ _ ___: : | \ /_\ / __| _ \ _ (_) \ : : | |) / _ \\__ \ _/ / | |) | : : |___/_/:\_\___/_| |_|_\_|___/ : ::: : Web: http://www.dasprids.de : : E-mail : [EMAIL PROTECTED] : : Jabber : [EMAIL PROTECTED] : : ICQ: 105677955 : ::: Matthew Ratzloff schrieb: Well, the idea is you can add this improvement in the next

Re: [fw-general] Zend_Text_Table promted to trunk

2008-11-10 Thread Matthew Ratzloff
Quickly addressing some points... loadClass() is only for dynamically-generated class names. require_once is used in all other cases. No need for an interface if it doesn't solve a problem, right? I believe the framework has standardized on iconv. -Matt On Mon, Nov 10, 2008 at 1:42 PM, till

Re: [fw-general] Zend_Search_Lucene is very sloooooow

2008-11-08 Thread Matthew Ratzloff
Way ahead of you. ;-) I've been talking to the guy who wrote Apache_Solr to help get a Zend_Search_Solr proposal going. I'll ping him again about his CLA. -Matt On Sat, Nov 8, 2008 at 5:21 AM, keith Pope [EMAIL PROTECTED] wrote: Talking of solr maybe Zend_Service_Solr would be a good

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

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] 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 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] ZF Best Practices for someone who has been using Cake

2008-11-06 Thread Matthew Ratzloff
An interesting thing to note is that a Row Data Gateway acts very similarly to the ActiveRecord; the primary difference is that an ActiveRecord object contains the data access logic, while the Row Data Gateway leaves that aspect to its parent Table Data Gateway, proxying to it. When it comes

Re: [fw-general] Framework speed shotout -- question

2008-11-04 Thread Matthew Ratzloff
: Matthew Ratzloff wrote: The database classes, for instance. In the framework/db/ dir I can't see any file with multiple classes. Matthew Ratzloff wrote: One class per file is not over-engineering. It does depend on the situation. -- View this message in context: http

[fw-general] Re: [zf-contributors] Zend Framework SVN Commit Proposal

2008-11-04 Thread Matthew Ratzloff
Might want to make the ticket expression /ZF\-\d+/ just to make maintenance of the hook easier. You'll also want to prevent commits to tickets that are closed. The way that I've worked in the past with hooks like these is to use open tickets for common tasks so that all Spanish documentation

Re: [fw-general] Zend_Paginator: $paginator-setView($view) has no effect

2008-11-03 Thread Matthew Ratzloff
What does $paginator-setView($view) do vs $this-view-paginator = $paginator; ? They serve two different purposes. You do not need to call setView() if you use the ViewRenderer, but you always need to assign the paginator to the view. -Matt On Sun, Nov 2, 2008 at 9:19 PM, frank.quosdorf

Re: [fw-general] Controller Speed

2008-11-03 Thread Matthew Ratzloff
I genuinely can't fathom how a controller could be 3000 lines long without a serious organization problem. Give us some examples of what your URLs look like. -Matt On Mon, Nov 3, 2008 at 6:22 AM, Christopher Östlund [EMAIL PROTECTED] wrote: Don't put businesses logic into the controllers.

Re: [fw-general] Speed up Zend framework

2008-11-03 Thread Matthew Ratzloff
Steve, can you remove the duplicate disclaimer? -Matt On Mon, Nov 3, 2008 at 2:23 AM, O'BRIEN, Steven X [EMAIL PROTECTED] wrote: Guys, Has anyone got some tips on how to speed up Zend Framework applications? I have noticed that using Zend framework although speeding up development time,

Re: [fw-general] Framework speed shotout -- question

2008-11-03 Thread Matthew Ratzloff
I think we need to reign in the personal attacks in this thread. Labels like 'so-called' professionals and incompetent do nothing to further the discussion. Now that Qiang Xue has re-ran the tests against RHEL 5 using Apache 2 and the latest PHP release, it's evident that Yii Framework is quite a

  1   2   3   >