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 serv

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 aroun

Re: [fw-general] Team Development

2010-08-07 Thread Matthew Ratzloff
And when I say "development machines" I mean shared development databases. -Matt On Sat, Aug 7, 2010 at 11:08 PM, Matthew Ratzloff wrote: > You're misunderstanding... You have development boxes for those services. > If you have a web service and you're not doing w

Re: [fw-general] Team Development

2010-08-07 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 a

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 p

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 normalizePageNumber

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
s yields, I am not even 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');>> wrote: > > I guess I don't see how comparing the two is "totally flawed&

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 wrote: > Can we make sure the ZendX_Auth_Adapter_Doctrine gets into the > standard library whenever the integration happens? > > > http://framework.zend.com/svn/framework/extras/inc

[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 wrote: > -- Wil Sinclair

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 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 > other frameworks wa

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 Tue,

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 wrote: > > ok - thx - I searched in bad place - in Zen_Forms > > I have one more quest

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: [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 wrote: > > On

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 Rewri

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 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, processes, etc > > At

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 > (http://www.ducea.com/2006/10/30/php-accel

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 wrote: > This is effectively a named registry. I advocat

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 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 server. > > We need

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

2009-06-29 Thread Matthew Ratzloff
Autoloader.php' | \ xargs 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 wrote: > The documentation assumes GNU versions of find and sed, and should probably > note that. The equ

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

2009-06-29 Thread Matthew Ratzloff
The documentation assumes GNU versions of find and sed, and should probably note that. The equivalent BSD command (which will of course work on Mac OS X) is: % cd path/to/ZendFramework/library % find . -name '*.php' | grep -v './Loader/Autoloader.php' | \ xargs sed -E -i~ 's/(require_once)/\/\/ \1

Re: [fw-general] ZFW OO coding guideline

2009-06-21 Thread Matthew Ratzloff
o the class instead of mocking it directly. I'm not necessarily advocating for this; singletons have their place, but obviously a framework's testability requirements are higher than most application code. -Matt On Sun, Jun 21, 2009 at 5:59 PM, Matthew Weier O'Phinney wrote: &

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
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 wrote: > Hello, > > It is not a 100% zfw question, but a

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 wrote: > 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 advance, > S.G. >

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 wrote: > On Tue, Jun 16, 2009 at 12:49 AM, Matthew > Ratzloff wrote: > > You can replace it with

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 wrote: > On Mon, Jun 15, 2009 at 3:56 PM, Deepak wrote: > > On Sun, Jun 14, 2009 at 11:48 PM, Matthew > > Ratzloff wrote: > &g

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

2009-06-14 Thread Matthew Ratzloff
7;s > great, but in my opinion, we shouldn't include adapters for "outdated" > libraries in the framework. It might fit nicely into ZendX, but I'd > rather not have it included in the main framework. > > Best regards, > Tobias > > 2009/6/13

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

2009-06-14 Thread Matthew Ratzloff
ts.filters http://framework.zend.com/manual/en/zend.filter.set.html#zend.filter.set.callback http://framework.zend.com/manual/en/zend.filter.writing_filters.html -Matt On Sun, Jun 14, 2009 at 3:57 AM, Deepak wrote: > On Sat, Jun 13, 2009 at 10:47 PM, Matthew > Ratzloff wrote: > > This is an Apache

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 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 of this > type to

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 wrote: > Hi, > >

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 wrote: > > if i have a table like > > Nodes > ===

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' ) ))

[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 som

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.

Re: [fw-general] Zend_Paginator and Zend_Paginator_Adapter_Null

2009-06-08 Thread Matthew Ratzloff
t will be > fixed. > > > Matthew Ratzloff wrote: > > > > Yes, there's a ticket for it. > > -Matt > > > > On Mon, Jun 8, 2009 at 6:17 AM, umpirsky wrote: > > > > Regards, > > Sasa Stamenkovic. > > > >> > >> Hi. &g

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 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); > $paginator->set

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 wrote: > Thanks, > if there are still new possibil

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 wrote: > > i know this maybe a wrong forum to pos

Re: [fw-general] ZF CLI slow

2009-06-01 Thread Matthew Ratzloff
age=article&item=ubuntu_jaunty_osx&num=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 wrote: > -- Matthew Ratzloff wrote > (on Monday, 01 June

Re: [fw-general] ZF CLI slow

2009-06-01 Thread Matthew Ratzloff
t; (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;.

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 wrote: > > > > beberlei wrote: > > > > enable xdebug profiler and see with kcachegrind what took so long. > > > > my guess is the recursive search for

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, M

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 tend

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 wrote: > Greetings! > > The Zend Framework team has undergone some internal reorganization > recently which will have some bearing on the project. > > First, the team no

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 wrote: > On Wed, Mar 25, 2009 at 1:12 PM, Alex Howansky wrote: > > > >> A l

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 wrote: > -- Matthew Ratzloff wrote > (on Thursday, 26 February 2009, 01:02 PM -0800): > > As a side note, I wish there was a

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 warnings

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

2009-02-06 Thread Matthew Ratzloff
rectly 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 Rat

[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: -- #!/usr/bin/ph

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 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 included? If it's

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 wrote: > -- Matthew Ratzlof

Re: [fw-general] Zend_Filter_Compress ready for review

2009-01-16 Thread Matthew Ratzloff
If you're curious, http://framework.zend.com/wiki/display/ZFPROP/Zend_Filter_Compress+-+compression+support+for+file+transfer+-+Thomas+Weidner -Matt On Fri, Jan 16, 2009 at 2:00 PM, Thomas Weidner wrote: > Hy all, > > I am pleased to announce that Zend_Filter_Compress is ready for review. > It

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. -Mat

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 > instantiat

[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 me

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 wrote: > > Thanks Matt, > > I think I'm coming to pretty much the same conclusion you have, although I >

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 8

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

Re: [fw-general] Zend_Paginator Negative itemCountPerPage

2008-12-29 Thread Matthew Ratzloff
tems). Like I said, passing a negative one (-1) 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, 20

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 wrote: > I was looking for a way to have Zend_Paginator show all of the items. > For example, I h

Re: [fw-general] Zend_Http_Client vs cURL

2008-12-22 Thread Matthew Ratzloff
Imagine you own a Honda and a Maserati. The Maserati is faster than the Honda, but the controls look like this: http://www.searchamateur.com/pictures/vietnam-aircraft-carrier-f4-plane-cockpit-4.jpg Also, the Maserati stabs you in the eyes while you drive it. That's the difference. -Matt On Sun,

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 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 (probably partial

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

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 wo

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

2008-12-07 Thread Matthew Ratzloff
nd_Ldap. It's a replacement, > 100% backwards-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 > > > >

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 havi

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] Zend_Dojo vs Prototype

2008-12-03 Thread Matthew Ratzloff
> > When debugging in firefow, I also noticed that the dojo library loaded a > long list of files taking up some time whereas the prototype library was > only one file. I certainly don't want to say that "dojo is better than > prototype" - I have way to little knowledge about both libraries, but I

Re: [fw-general] Friendly URLs

2008-12-03 Thread Matthew Ratzloff
Why are you sending so many e-mails? You sent three the first time, and six following my reply. If this is a bug in your e-mail client, please use a different one. If this is intentional, please stop. Now that I think about it some more, you can do one of two things. You can define a series 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] 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] xforms with zend

2008-11-19 Thread Matthew Ratzloff
Given that no browser supports XForms natively, you wouldn't be adding an "extra" processor, you would be added "a" processor. -Matt On Wed, Nov 19, 2008 at 2:32 PM, nolnor <[EMAIL PROTECTED]> wrote: > > >Assuming you're using something like FormFaces or Ubiquity XForms on the > >front end, you s

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 > na

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

2008-11-19 Thread Matthew Ratzloff
lect with a select statement like : > > "SELECT count(*) 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_Sele

Re: [fw-general] Question about zend pagination

2008-11-19 Thread Matthew Ratzloff
ow to use that in my example? > > Matthew Ratzloff wrote: > > > > From the documentation: > > The following is an example route you might use in an INI configuration > > file: > > > > routes.example.route = articles/:articleName/:page > > routes.exam

Re: [fw-general] Question about zend pagination

2008-11-18 Thread Matthew Ratzloff
'action' => 'display' >) > ); > > $router->addRoute('display', $route); > > Matthew Ratzloff wrote: > > > > Do you define a "page" parameter in your route? > > -Matt > > > > On Tue, Nov

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

2008-11-18 Thread Matthew Ratzloff
in which i will pass the calculated 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

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: > paginator)): ?> > > paginator as $banner): ?> > > " $banner['bannerurl'] > ? "> > > > > > > On the page i am getting

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] Re: Bootstrap Action HelperBroker stops execution on production server

2008-11-14 Thread Matthew Ratzloff
think that those standards are not obligated for our application file > naming > > and class naming. > > > The naming conventions for view helper classes and methods are > *clearly* spelled out in the view helper documentation. > > > > Whatsoever I learnt it is oblig

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

2008-11-13 Thread Matthew Ratzloff
--> >> PHP version 5.2.6 >> SPL present >> IteratorAggregate present >> >> Production 2: (which stops execution on action helperBroker::addPath line) >> -> >> PHP version 5.2.1-0.dotdeb.1 >> SPL present >> I

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 > Hi Till, > > SPL is installed and enabled as default as Matthew mentioned. And all the > extentions are fine. You may check by yourself; > http://sergistan.com/server.php > > 13 Kasım 2008

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, 2

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,

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_Text_Table promted to trunk

2008-11-10 Thread Matthew Ratzloff
; PS: If you like, you can include the auto-sizing stuff. > ... > : ___ _ ___ ___ ___ _ ___: > : | \ /_\ / __| _ \ _ (_) \ : > : | |) / _ \\__ \ _/ / | |) | : > : |___/_/:\_\___/_| |_|_\_|___/ : > ::: > : Web: http://www.dasprids.de : > : E-mail : [EMAIL PROTECTED] : > : Jabber : [EMAIL PROTECTED] : > : ICQ: 105677955 : > ::..

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 the

Re: [fw-general] Zend_Text_Table promted to trunk

2008-11-10 Thread Matthew Ratzloff
Zend_Text_Table($options); By the way, in the future you should be able 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/wik

Re: [fw-general] Zend_Text_Table promted to trunk

2008-11-10 Thread Matthew Ratzloff
It used to be called Zend_Ascii: Zend_Ascii - Ben Scholzen - Zend Framework Wiki As is typical, I finally had time to play around with it only after it h

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 addit

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 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

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, unserialize

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:

  1   2   3   4   >