[fw-general] New Proposal: Zend_Options
Hi Everyone When (and if) you have some spare time, please take a look at the Zend_Options http://framework.zend.com/wiki/display/ZFPROP/Zend_Options+-+Werner+Mollentze proposal. It's an (conceptual, initial) attempt to provide a standardized way to interact with those Zend Framework class methods that expect their parameters to adhere to a certain data structure (have certain usage options). Now I have affirmed that English is not my first language ;) Any input, ideas, brainstorming or criticisms will be valued. Thank you for your time! Kind Regards, Werner
[fw-general] Contributor License Agreement Submissions
Hi I sent a request (containing a signed CLA) to c...@zend.com about 10 days ago, but I still haven't received any reply yet. I tried to follow the information on http://framework.zend.com/wiki/display/ZFPROP/Contributor+License+Agreement to the letter... is the information on there outdated, or has the submission process maybe been changed in the mean time? Kind Regards, Werner
Re: [fw-general] And a big thanks to Varien for the new site design!
One of the things that interest me most is the header image generation script for the new design accessible at http://framework.zend.com/header-image... Any change we can have the privilege to look at the the source of that little gem? :) Good Job, Varien Wil Sinclair wrote: . . .and that's what I wish I would have remembered to say in the 1.5 announcement. :/ Seriously, they did an excellent job on the design; we asked them to take the ZF site to a completely new level, and I think most people would agree they did just that. This is one BIG way that they give back to the ZF project. Thanks SO much, guys. ,Wil
Re: [fw-general] Trouble with setControllerDirectory() in 0.9.0Beta
Thanks, Alexander When switching to modules everything is on track again - your suggestions worked, and I could get it running again. However, I still miss the functionality that 0.8.0 had, which enabled me to add multiple directories that will be searched for controllers. I'm going to start a new thread to address this specific issue, as the current issue I was having was solved by using the predefined modular structure. Thank you, Werner Alexander Netkachev wrote: On 3/21/07, *Werner* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hello, fellow ZF users I ran into trouble with setControllerDirectory() when switching from 0.8.0 to 0.9.0Beta. The following worked fine in 0.7.0 to 0.8.0: $frontController-setControllerDirectory( array( './src/admin/con', './src/con' ) ); $routePageHandler = new Zend_Controller_Router_Route( ':section/:task/:identifier/:subidentifier', array( 'section' = 'home', 'task' = 'view', 'identifier'= '', 'subidentifier' = '', 'controller'= 'page', 'action'= 'index' ) ); $router-addRoute('*', $routePageHandler); $routeAdminHandler = new Zend_Controller_Router_Route( 'admin/:section/:task/:identifier/:subidentifier', array( 'section' = 'login', 'task' = 'view', 'identifier'= '', 'subidentifier' = '', 'controller'= 'admin', 'action'= 'admin' ) ); $router-addRoute('admin', $routeAdminHandler); $frontController-setRouter($router); $frontController-dispatch(); I changed the setControllerDirectory params to the following in 0.8.0, and it still seemed to work: $frontController-setControllerDirectory( array( 'default' = './src/con', 'admin' = './src/admin/con' ) ); 1. The code above specifies that you have two modules 'default' and 'admin'. So you have controllers of /src/admin/con in admin module. That also means that controllers class names should be prefixed with Admin_, e.g. Admin_IndexController so please check this. 2. I think that you have the error because $routeAdminHandler does not specify a module the request should be passed to. So, the 'default' is used, not 'admin'. Just add 'module' = 'admin' to the parameters. Sincerely, -- Alexander http://www.alexatnet.com/ - Blog and CMS created with Zend Framework and Ajax.
[fw-general] Multiple ControllerDirectory paths
Hi! I want to specify multiple controller directories that should all be searched for controllers. I want to do this without deploying any predefined modular directory structures - just multiple paths for controllers (whether modules will be used or not). However, when specifying any additional directory path it seems like the first path is overwritten by the last specified path. E.g, is it possible to make something like this work...? $controller-throwExceptions(true) -setRouter($router) -setBaseUrl($baseUrl) -setControllerDirectory('/my/first/path') // Default directory -addControllerDirectory('/my/second/path') // Another directory -addControllerDirectory('/my/third/path'); // Yet another directory Any ideas, hint or tips on how to achieve this? Thank you for your time, Werner
Re: [fw-general] Multiple ControllerDirectory paths
Thanks Matthew Extending the front controller will do the trick nicely. Ditching the multiple directory support in favor of performance is also not something I will complain about :-) The nice thing about ZF is that it can easily be extended, so I'll take that route for this specific project. Thanks again, Werner Matthew Weier O'Phinney wrote: -- Werner [EMAIL PROTECTED] wrote (on Thursday, 22 March 2007, 01:44 PM +0200): I want to specify multiple controller directories that should all be searched for controllers. I want to do this without deploying any predefined modular directory structures - just multiple paths for controllers (whether modules will be used or not). However, when specifying any additional directory path it seems like the first path is overwritten by the last specified path. E.g, is it possible to make something like this work...? $controller-throwExceptions(true) -setRouter($router) -setBaseUrl($baseUrl) -setControllerDirectory('/my/first/path') // Default directory -addControllerDirectory('/my/second/path') // Another directory -addControllerDirectory('/my/third/path'); // Yet another directory Any ideas, hint or tips on how to achieve this? This functionality was ditched prior to 0.8.0 as it added too much overhead, and won't be added again anytime soon. Basically, keeping track of a stack of directories *per* *module*, and then having to search each *set* of directories for a controller was very resource intensive, for very little benefit. If you need several directories of controllers all in the same namespace, you might want to try using symlinks or consolidating. Alternatively, you can implement your own dispatcher and front controller -- you'd need to override the front controller's add/setControllerDirectory() methods, and the dispatcher's getControllerName() method.
Re: [fw-general] Consistency in naming
Matthew Ratzloff wrote: Consistency means predictability, which means being able to recall names without having to check the manual every time. It's why most people can't use PHP's date or string functions without looking at the documentation, for example. Very good point, I'm glad you mentioned it - Twice this week already I assumed that there is a Zend_Validator class, only to find (once again) that it's indeed Zend_Validation. Thanks for pointing out what went on in my brain - I guess predictability overrides memory in my case. - Werner