Re: [fw-general] Two-Step View, subclassing controller, etc

2007-06-28 Thread Christopher Thompson
Matthew Weier O'Phinney wrote: -- Christopher Thompson <[EMAIL PROTECTED]> wrote The issue is that there are currently two distinct approaches to the issue of how to include layout support, both of which are valid. The question, to me, is which makes more sense in the context of t

Re: [fw-general] Two-Step View, subclassing controller, etc

2007-06-28 Thread Christopher Thompson
I agree with Matthew that identifying the actual use cases that people are requesting and then showing the code that solves those use cases in the proposed systems is necessary. I have had discussions with Pádraic on this subject and looked at his and Ralph's code. While I think we agree on th

Re: [fw-general] Invoke Arg in Plugin

2007-05-10 Thread Christopher Thompson
It's basically a matter of preference. It is really a matter of practice. Experts will obviously know the trade-offs of the options, but the point of focusing on a Best Practice is to generally reduce problems. I would agree with Rob that other than communicating with the other controller class

Re: [fw-general] validation using Zend_Validate_xxx

2007-05-08 Thread Christopher Thompson
Bill Karwin wrote: However, in general you wouldn't use the error messages of Zend_Validate classes literally in output to the user. You should probably use the boolean return values and from these, output your own error messages. That way you can specify the wording to be more appropriate to yo

Re: [fw-general] Zend.php proposal

2007-03-08 Thread Christopher Thompson
I think that looks good as a compromise for the two or three use cases. I do wonder whether there is starting to be too much code supporting multiple use cases all in one class. Perhaps there should be a separate base class for those who only want an instance. I assume that those who want stat

Re: [fw-general] Request for feedback: moving Zend.php to Zend/Zend.php

2007-03-01 Thread Christopher Thompson
Of course people use them. No one is talking about removing those methods. You would still have the dump, registry and loadClass methods for your use -- but in separate classes. The question is whether they should all be in a single common class that is loaded every request. My point in my sur

Re: [fw-general] Request for feedback: moving Zend.php to Zend/Zend.php

2007-02-28 Thread Christopher Thompson
I just did a quick survey to see what in Zend.php is used within the framework. I note that Zend_Cache chose not to use Zend::loadClass. And the controller code, which was the original user of this code, should probably have its own special purpose loader. In general, nothing in Zend.php is rea

Re: [fw-general] Request for feedback: moving Zend.php to Zend/Zend.php

2007-02-27 Thread Christopher Thompson
Rob has very nicely broken down the use cases pretty much exactly as I see them as well. Rob Allen wrote: Andi Gutmans wrote: Hi Ralf and all, Bill and I spent some time reviewing all the proposals and also brainstorming on what we think is right for Zend Framework. Our suggestion is very cl

Re: [fw-general] Request for feedback: moving Zend.php to Zend/Zend.php

2007-02-27 Thread Christopher Thompson
The only real reason given for Zend/Core.php containing four classes is for performance, but I think it will actually have the opposite effect. The only class really used in the framework is Zend_Loader. Exceptions are lazy loaded, the Registry is a userland thing, and the Zend_Framework class

Re: [fw-general] Request for feedback: moving Zend.php to Zend/Zend.php

2007-02-27 Thread Christopher Thompson
+1 (belated) to Ralf's suggestions. Ralf Eggert wrote: Hi, I personally think that the proposed renaming of the Zend class to Zend_Framework is very misleading. I would expect that a Zend_Framework class will set up the whole framework and not be just a funny conglomeration of methods who did

Re: [fw-general] MVC getParam() usage ?

2007-01-18 Thread Christopher Thompson
Rob Allen wrote: Matthew Weier O'Phinney wrote: -- Rob Allen <[EMAIL PROTECTED]> wrote The main intention of the request object, from my perspective, was to allow determination of the controller and action values. Any class extending the basic request abstract is simply adding more places fro

Re: [fw-general] Zend_Filter(Chain) and Zend_Validator

2006-10-14 Thread Christopher Thompson
+Zend_Validator+-+Christopher+Thompson?focusedCommentId=7541#comment-7541 Short url (scroll down to last comment): http://framework.zend.com/wiki/x/cwM Just a further question: Which project team is on control of Zend_Filter(Chain) and Zend_Validator? Maybe it makes more sense to discuss the issues

Re: [fw-general] Removal of Zend class

2006-10-07 Thread Christopher Thompson
Simon Mundy wrote: This is where it gets totally subjective :) Despite identical functionality, to me the name Zend_Loader seems a bit awkward and implies less of a 'core' component, whereas simply 'Zend' does seem to be core and more naturally related to all components within the framework.

Re: [fw-general] Removal of Zend class

2006-10-07 Thread Christopher Thompson
Simon Mundy wrote: Except that it is not for the framework to use -- it is for userland and separate specific classes would be better to use for that. I disagree - Zend.php should be used as part of the coding standards for the sake of consistency and reusability. A lot of the components use

Re: [fw-general] Removal of Zend class

2006-10-06 Thread Christopher Thompson
Simon Mundy wrote: I'm less inclined to be rid of it - it seems perfectly logical that Zend.php is the 'glue' for all other components within the framework, so why not have it perform bootstrap-specific functionality:- Except that it is not for the framework to use -- it is for userland and sep

Re: [fw-general] Removal of Zend class

2006-10-06 Thread Christopher Thompson
André Hoffmann wrote: Correct me if I'm wrong but as I understood it, Zend::registry is not going to be superseded by Zend_Registry. And I really don't think that having problems copying Zend.php is a reason to remove it. The real reason to remove is is that it does not belong. It is a mishm

Re: [fw-general] Session

2006-10-06 Thread Christopher Thompson
Ralph, Some immediate things that jump out: - The files use short tags rather than - I am wondering what Message.php, Session/Debug.php and the Session/Validation files are for? - From a quick look at setFeature() I think maybe some sort of plugin or decoration might be better than a hard co

Re: [fw-general] Session

2006-10-06 Thread Christopher Thompson
Zend_Session is currently a proposal. Check the developer wiki. Pierre Kircher wrote: Hi is there a Class for Sessions in the current Framework ? Regards Pierre

Re: [fw-general] I wish this (or something like it) was part of ZF

2006-10-06 Thread Christopher Thompson
I have proposed having a Credential class that you could wrapper the factors for any kind of scheme. Then an Authenticator class would be extended for each scheme to provide the second half of a Credential/Authenticator pair for an Authentication Manager to run. These would really just be adapt

Re: [fw-general] ZF Coding Standard: Factories - code completion, direct instantiation

2006-10-03 Thread Christopher Thompson
I believe that was a necessary PHP4 evil, but Reflection can now be used and it is much cleaner. Paul M Jones wrote: Whoever suggested this particular tidbit ... for ($i = 0; $i < $argsCount; $i++) { $argsString .= ($comma ? ', ' : '') . "\$args[$i]"; $comma =

Re: [fw-general] ZF Coding Standard: Factories - code completion, direct instantiation

2006-10-03 Thread Christopher Thompson
I suggested something like this earlier, but for Zend_Registry not Zend. I think enhance Zend_Registry but not the Zend class. The enhancements I proposed allowed you to load and instantiate an object with a single call and also allowed registering a class name and instantiation parameters so t

Re: [fw-general] Decision: loadData('xml:/something/bar.xml'); vs. new Foo('/something/bar.xml');

2006-10-02 Thread Christopher Thompson
map input choice selections onto selected plugin strings (first parameter of the factory method) is not better than the effort to require_once the adapter and then instantiate it. Cheers, Gavin Christopher Thompson wrote: I continue to wonder at the usage of statics. The use case where a

Re: [fw-general] Best place to authenticate a user?

2006-09-30 Thread Christopher Thompson
Michael Sheakoski wrote: When you say "inverting it" are you saying to have an Intercepting Filter outside of the FrontController? Such as in index.php? If it is outside of the FrontController then you would not be able to do things like check permissions in a central place because they would

Re: [fw-general] Coding Standards & ZF 0.2

2006-09-30 Thread Christopher Thompson
And for the record. I format my own code in the same way that Paul and Jeff format theirs. So I am advocating tolerance of those who prefer BSD style. I have worked to "free my mind" from being bothered by trivia like spacing and they no longer hinder my considering other aspects of the code

Re: [fw-general] Coding Standards & ZF 0.2

2006-09-30 Thread Christopher Thompson
Paul M Jones wrote: Jeff Moore wrote: Having your code in a "normalized" form frees the mind to consider other aspects of the code. Poorly or inconsistently styled code can obscure refactorings. With a good coding standard, the benefits outweigh having to re-train yourself out of a few habits.

Re: [fw-general] Best place to authenticate a user?

2006-09-30 Thread Christopher Thompson
I think the practice in ZF is going to be: - do Access Control that uses centralized data with preDispatch() - do Access Control that uses data distributed in the Actions with preRun() The Front Controller does everything internally, including these Filters. I would still prefer to remove as m

Re: [fw-general] Coding Standards & ZF 0.2

2006-09-28 Thread Christopher Thompson
Ifs with no braces ... Booo Gavin Vess wrote: .. although the Linux Kernel team does not use braces when there is only one statement after the conditional. I would prefer we follow this standard more closely, and eliminate braces around a single statement. Anyone else have this p

Re: [fw-general] Coding Standards & ZF 0.2 - End Bracism Now!

2006-09-28 Thread Christopher Thompson
End separation now! Support vertical equality! :) Ralph Schindler wrote: Thomas Weidner wrote: And I feel a missunderstanding between "White space" and "White face" ;-) I think you accidentally misused "Separate but equal" Mr. Give-me-vertical-whitespace-or-give-me-death. ;) :) Braces:

Re: [fw-general] Coding Standards & ZF 0.2 - End Bracism Now!

2006-09-28 Thread Christopher Thompson
I think you accidentally misused "Separate but equal" Mr. Give-me-vertical-whitespace-or-give-me-death. ;) :) Ralph Schindler wrote: And those are conventions I would expect from those projects... they are stuck in an age where blacks drank from one water fountain, whites from another, and dev

Re: [fw-general] Zend_FilterChain / Zend_Container

2006-09-27 Thread Christopher Thompson
wrote: On 28/09/2006, at 11:52 AM, Christopher Thompson wrote: I agree that the ZF would benefit by having the container type objects share a common interface. Whether any of these classes inherit a basic array/property class is a separate question that should be made on a case by case basis

Re: [fw-general] Zend_FilterChain / Zend_Container

2006-09-27 Thread Christopher Thompson
I agree that the ZF would benefit by having the container type objects share a common interface. Whether any of these classes inherit a basic array/property class is a separate question that should be made on a case by case basis. But having a common interface standard would easy learning the Z

Re: [fw-general] Advice for Model design

2006-09-21 Thread Christopher Thompson
It seems like specialized ViewHelpers would be the way to encapsulate the kind of View specific data you mention. Terry Cullen wrote: And how are you guys getting failure messages back to the view? Do you pass error codes or something like that? Or does your model have to become aware of lan

Re: [fw-general] Advice for Model design

2006-09-21 Thread Christopher Thompson
The problem with saying that all validation needs to happen in the Model is that for practical reasons it does not work very well. The most common reason is that the Model usually does not deal with all the input from the request. Some input is intended for the Controller or the View logic spec