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

2007-02-27 Thread Stanislav Malyshev
Now every package has its own directory and one file in parent directory, so i offer to move all files to package directory: Zend/Zend_Filter.php = Zend/Filter/Zend_Filter.php Zend/Filter/Zend_Filter_Alnum.php [no change, couse it is same package] Zend/Filter/Zend_Filter_Alpha.php [no change,

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

2007-02-27 Thread Simon Mundy
Yeah I agree with Stanislav - the thinking behind the original request was just to tuck the Zend.php file away, not the whole framework. The PEAR-like directory structure works pretty well as-is and I'd daresay most people can get to grips with it quickly. I'd be happy moving Zend.php -

RE: [fw-general] Zend_Locale

2007-02-27 Thread Ian Warner
In your example I get an error: require_once 'Zend/Locale.php'; $locale = new Zend_Locale('de'); $country = $locale-getList('country'); $territory = $locale-getList('territory'); $connection = $locale-getList('territory_detail'); print_r($country); print_r($territory); print_r($connection);

[fw-general] rewrite router problem

2007-02-27 Thread Blue Paprica
Hi I wnat to set up 2 controller, defalut and admin, i found here this: http://www.nabble.com/RewriteRouter-gone...-tf3225893s16154.html post I tried to do it same way: $controller = Zend_Controller_Front::getInstance(); $controller-throwExceptions(true);

Re: [fw-general] rewrite router problem

2007-02-27 Thread Simon Mundy
Is your class named 'Admin_TestController' in your TestController.php file? at apl/controllers/asmin/ i have IndexController, TestController but still it doesn't work Regard Maciej -- Simon Mundy | Director | PEPTOLAB 202/258 Flinders Lane | Melbourne | Victoria |

[fw-general] Zend DB Table

2007-02-27 Thread Ian Warner
Hi I wish to use this functionality, I assume this is similar to the Data_Objects that PEAR provides However where do I place the newly created classes that extend: class RoundTable extends Zend_Db_Table {} Is there any way to override this location. Lastly is there a simple way to change the

RE: [fw-general] Zend DB Table

2007-02-27 Thread Ian Warner
-Original Message- From: Ian Warner [mailto:[EMAIL PROTECTED] Sent: 27 February 2007 12:57 To: fw-general@lists.zend.com Subject: [fw-general] Zend DB Table Hi I wish to use this functionality, I assume this is similar to the Data_Objects that PEAR provides However where

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

2007-02-27 Thread Lee Saferite
Perhaps moving Zend.php to Zend/Core.php as-is AND making new classes to replace it is the better solution. We can make the move from Zend to Zend_Core and people can easily do a global search-replace to handle it. Once Zend_Core is in the framework, you can basically turn each of it's

Re: [fw-general] Forward method

2007-02-27 Thread Matthew Weier O'Phinney
-- Ian Warner [EMAIL PROTECTED] wrote (on Tuesday, 27 February 2007, 11:30 AM -): I am trying to make sense of the Forward command. I am utilizing QuickForm in a join form The user fills in the form if it validates I want to forward to a validate Action - just for separation.

[fw-general] JSON encoding problem

2007-02-27 Thread Dmitry Shirokov
hello guys, i had weird problem with code like that (zf 0.7.0): foreach ($this-_subSites-fetchAll() as $subSite) { $resRow = new StdClass; $resRow-id = $subSite-id; $resRow-subDomain = $subSite-subDomain; $resRow-image = $subSite-image; $res[] = $resRow; }

RE: [fw-general] Forward method

2007-02-27 Thread Ian Warner
Matt Worked fine thank you very much Ian I am trying to make sense of the Forward command. I am utilizing QuickForm in a join form The user fills in the form if it validates I want to forward to a validate Action - just for separation. // Try to validate a form

Re: [fw-general] JSON encoding problem

2007-02-27 Thread Matthew Weier O'Phinney
-- Dmitry Shirokov [EMAIL PROTECTED] wrote (on Tuesday, 27 February 2007, 04:11 PM +): hello guys, i had weird problem with code like that (zf 0.7.0): foreach ($this-_subSites-fetchAll() as $subSite) { $resRow = new StdClass;

Re: [fw-general] Forward method

2007-02-27 Thread 'Matthew Weier O'Phinney'
-- Ian Warner [EMAIL PROTECTED] wrote (on Tuesday, 27 February 2007, 04:35 PM -): Worked fine thank you very much Just for the historical record (for those who may search for this), what worked for you -- using the response object, or updating how you called _forward()? I am trying to

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

2007-02-27 Thread Stanislav Malyshev
why we need to repeat Zend_Filter twice? Zend_Filter would not be repeated twice. Zend/Zend_Filter.php would be moved to Zend/Filter/Zend_Filter.php I clearly see Zend and Filter repeated twice right in front of me. Do you? Every package would be strictly separated. Now all packages are mixed

Re: [fw-general] ROR Flash in ZF

2007-02-27 Thread Philip Iezzi
I'd like to pick up this topic again. Even though I didn't really understand the PHP problem that still persists in PHP 5.2.1(*), I found my own workaround. (*) Notice: Indirect modification of overloaded property Zend_Session_Namespace::$default has no effect in Ralph_FlashMessage.php on line

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

2007-02-27 Thread Tautvydas Andrikys
Ya, sorry, my mistake[too much use of __autoload :)] Shekar C Reddy wrote: Hi Tautvydas, You are confusing Stanislav with the mis-typed file-names: Zend/Filter.php = Zend/Filter/Filter.php [not: Zend_Filter.php, Zend_Filter is the name of the class] Zend/Filter/Filter/Alnum.php [no

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

2007-02-27 Thread Tautvydas Andrikys
Stanislav Malyshev wrote: why we need to repeat Zend_Filter twice? Zend_Filter would not be repeated twice. Zend/Zend_Filter.php would be moved to Zend/Filter/Zend_Filter.php I clearly see Zend and Filter repeated twice right in front of me. Do you? oh u mean file name repeat :) i dont

[fw-general] catching xml document errors with Zend_Rest_Client_Result

2007-02-27 Thread Michael Depetrillo
Hello Our business works works with numerous third-party soap services. Sometimes these companies screw up and return an improperly formated XML document. Using Zend_Rest_Client a PHP warning will occur followed by a fatal error. I was wondering how I might be able to catch these types of

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

2007-02-27 Thread Ralph Schindler
Tautvydas Andrikys wrote: If Alpha would be in differenet package it would be moved to that package directory How I know by its name if it's a package or not? If file is in a directory - it is in package, and u know package name[directory name] I don't becoming a PEAR-like repository

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

2007-02-27 Thread Nico Edtinger
[27.02.2007 19:04] Tautvydas Andrikys wrote: So this means that all package files would be in package directory. If u need only one package u take the package directory. Won't work. The unit that you call packages are not (always) independent and just because some files are in one

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

2007-02-27 Thread Stanislav Malyshev
The problem is that in Zend/ directory there are a lot of php files: Ok, there is. Why it is a problem though? It would be much better to move them to: Acl/Acl.php Ok, and Zend_Acl_Adapter would be in Acl/Adapter/Adapter.php or in Acl/Adapter.php? If the former - how it's not directory per

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

2007-02-27 Thread Tautvydas Andrikys
Nico Edtinger wrote: [27.02.2007 19:04] Tautvydas Andrikys wrote: So this means that all package files would be in package directory. If u need only one package u take the package directory. Won't work. The unit that you call packages are not (always) independent and just because some files

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

2007-02-27 Thread Art Hundiak
Really no need to tell if a given name represents a package or not. Zend ..Filter Filter.php contains Zend_Filter_Filter Alpha.php contains Zend_Filter_Alpha So the only change is the name of the top level class in a package. The autoload routine remains unchanged. And of course if

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

2007-02-27 Thread Shekar C Reddy
Yes, this reduces the clutter in the Zend folder and improves file-organization. And Zend.php could be renamed to Core.php or Main.php and moved into Zend folder with Zend_Core/Zend_Main class in it. Alternatively, Zend.php can be safely moved into Zend folder (without any exceptions) and that

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

2007-02-27 Thread Matthew Ratzloff
For what it's worth, it is ideal to retain the Zend.php instead of splitting it up so the framework could build more utility functions into it in future - that does not fit anywhere. How about renaming it to Zend_Util, instead? I can't imagine any utility methods that would be needed that

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

2007-02-27 Thread Shekar C Reddy
Oops! I agree - the code in Zend.php could be split up into specialized components and obsolete code could be eliminated. I just over-looked the earlier discussions on this thread while posting my message. On 2/27/07, Matthew Ratzloff [EMAIL PROTECTED] wrote: For what it's worth, it is

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

2007-02-27 Thread Gavin Vess
Even if not everyone wants the features below, certainly many developers will implement similar capabilities, if not found in the ZF. My intention behind http://framework.zend.com/wiki/x/j1 is merely to find a mutually-agreeable way to support the possibility of adding *utility-like* features

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

2007-02-27 Thread Shekar C Reddy
Here are a few more examples of renaming the top-level class/sub-class names: Zend_Acl_Role = Zend_Acl_Role_Role Zend_Acl_Resource = Zend_Acl_Resource_Resource Zend_Cache = Zend_Cache_Cache Zend_Cache_Backend = Zend_Cache_Cache_Backend_Backend Zend_Db

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

2007-02-27 Thread Matthew Ratzloff
Here are a few more examples of renaming the top-level class/sub-class names: Zend_Acl_Role = Zend_Acl_Role_Role Zend_Acl_Resource = Zend_Acl_Resource_Resource Zend_Cache = Zend_Cache_Cache Zend_Cache_Backend = Zend_Cache_Cache_Backend_Backend Zend_Db

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

2007-02-27 Thread Stanislav Malyshev
Really no need to tell if a given name represents a package or not. Zend ..Filter Filter.php contains Zend_Filter_Filter Alpha.php contains Zend_Filter_Alpha Zend_Filter_Filter? So instead of Zend_Json we'd have Zend_Json_Json? I don't like it at all. It really does make sense and

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

2007-02-27 Thread Nick Lo
I noticed a few comments to the effect that Zend.php makes a good entry point into the framework. I really don't see how this is the case. The entry point for anyone wanting to get a grasp on the framework is the bootstrap file not Zend.php. If anything Zend.php is a confusing class that

[fw-general] Internationalization and the Zend Framework

2007-02-27 Thread Kevin McArthur
I'm wondering if anyone has done a multi-lingual site using the ZF yet and is willing to share their setup. I'm currently developing a site for both English and Canadian French, both output and text-input. I'm fairly well versed on the input side, but how are you guys developing the templating

[fw-general] Lucene: using delete and add on a doc .. then doc not avail untill optimize() are used.. how come ++?

2007-02-27 Thread bongobongo
Hi. Testing on Win XP and Zend Framework 0.8.0... Have some questions about zend search lucene When I use the delete and add methods to simulate an update, then, from my experience, I have to use optimize method to make that document visible for a query. Actually, when working on an

Re: [fw-general] Internationalization and the Zend Framework

2007-02-27 Thread Kevin McArthur
When serving any logical page using the same URL, but with dynamically chosen language content on the page, I would carefully test the results against the search engines you care about, before using that approach. Sometimes practical matters interfere with academics. Good point. Now that

Re: [fw-general] catching xml document errors with Zend_Rest_Client_Result

2007-02-27 Thread Michael Depetrillo
After some more research I realized I could check the status of the response by accessing the response object directly. What I am still unsure of is how to calculate the string size of the Request Body. I've commented out the Content-Length header in the following example. Does anyone know how

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

2007-02-27 Thread Andi Gutmans
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 close to what Ralf is suggesting but with a few minor tweaks. We still believe having all the core functionality in one file is

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 Rob Allen
Nick Lo wrote: I noticed a few comments to the effect that Zend.php makes a good entry point into the framework. I really don't see how this is the case. The entry point for anyone wanting to get a grasp on the framework is the bootstrap file not Zend.php. I agree. To understand the MVC

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

2007-02-27 Thread Andi Gutmans
First of all it's not only performance. I also mentioned ease-of-use and simplicity. Not requiring to require_once() few files (which is one reason we did Zend:: to begin with). Second, Zend_Exception is not lazy loaded, Zend_Registry is used all the time, Third, with a byte code cache it won't

Re: [fw-general] Internationalization and the Zend Framework

2007-02-27 Thread Thomas Weidner
Now that conventional modular layouts are supported in the default configuration, for those using only one hostname, what about the following? 1. /:lang/:module/:controller/:action 2. /:module/:lang/:controller/:action 3. /:module/:controller/:action/lang/language I'm keenly interested in what

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