[fw-general] Re: Share helpers, layouts between modules

2009-11-25 Thread Саша Стаменковић
The right way is to put layouts in application root and keep view helpers in your default module. Regards, Saša Stamenković On Thu, Aug 27, 2009 at 8:12 PM, Саша Стаменковић wrote: > Is there a way to share helpers and layouts between modules? > > I did this by creating view subfolder in the ap

[fw-general] Overriding Zend_Form_Element methods

2009-11-25 Thread umpirsky
Hi. Is there a way to override Zend_Form_Element methods? I have extended Zend_Form and subform, now I want to override Zend_Form_Element::getFullyQualifiedName(). Is there a way to do it without need to extend all Zend_Form_Element_* classes? Regards, Saša Stamenković. -- View this message in

Re: [fw-general] Overriding Zend_Form_Element methods

2009-11-25 Thread Jigal sanders
I suppose so On Wed, Nov 25, 2009 at 9:18 AM, umpirsky wrote: > > Hi. > > Is there a way to override Zend_Form_Element methods? > > I have extended Zend_Form and subform, now I want to override > Zend_Form_Element::getFullyQualifiedName(). Is there a way to do it without > need to extend all Zen

Re: [fw-general] Overriding Zend_Form_Element methods

2009-11-25 Thread Саша Стаменковић
How? :) Regards, Saša Stamenković On Wed, Nov 25, 2009 at 9:26 AM, Jigal sanders wrote: > I suppose so > > > On Wed, Nov 25, 2009 at 9:18 AM, umpirsky wrote: > >> >> Hi. >> >> Is there a way to override Zend_Form_Element methods? >> >> I have extended Zend_Form and subform, now I want to overr

Re: [fw-general] Overriding Zend_Form_Element methods

2009-11-25 Thread Jigal sanders
I suppose something like: Class myElement extends Zend_Form_Element{ protected function getFullyQualifiedName(){ // your code here } } On Wed, Nov 25, 2009 at 9:34 AM, Саша Стаменковић wrote: > How? :) > > Regards, > Saša Stamenković > > > > On Wed, Nov 25, 2009 at 9:26 AM, Jigal sanders wr

Re: [fw-general] Overriding Zend_Form_Element methods

2009-11-25 Thread Саша Стаменковић
Thats ok, but I want to use Zend_Form_Element_* classes, don't want to use myElement. I want all elements have my new getFullyQualifiedName() method. Regards, Saša Stamenković On Wed, Nov 25, 2009 at 9:37 AM, Jigal sanders wrote: > I suppose something like: > > Class myElement extends Zend_Form

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

2009-11-25 Thread Arié Bénichou
I don't understand why you did not use http://xyster.libreworks.net/ Xyster ORM It makes use of the Data Mapper Pattern and comes with a Unit of Work. Doctrine is shifting to this approach for the version 2.0, but it's still an alpha release. It's a pity for you to have failed this way, because,

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

2009-11-25 Thread drm
Hi Arié Arié Bénichou wrote: I don't understand why you did not use http://xyster.libreworks.net/ Xyster ORM It makes use of the Data Mapper Pattern and comes with a Unit of Work. Doctrine is shifting to this approach for the version 2.0, but it's still an alpha release. If you'd like in

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

2009-11-25 Thread Benjamin Eberlei
Hello, Its not a failure to recognize that a proposal generates lots of "duplicate code", which is currently better solved in other projects. This also has nothing to do with Zend, since the component was approved under the premise that its community contributed. An ORM is a huge undertaking and

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

2009-11-25 Thread Arié Bénichou
Hi, drm-4 wrote: > > If you'd like integration for Xyster, write a proposal for it. > Please Gerard, don't tell me what i'm supposed to do. You don't get the point here, the question is : why did'nt you use Xyster ORM? drm-4 wrote: > > And Sensio is the devil...? What's your point? Let al

Re: [fw-general] Apache returning 404 instead of errorHandler page

2009-11-25 Thread vb
Hm, somehow, without any changes or reconfiguration, only several restarts in several days, it just started to work again. I see errorHandler pages again. So, maybe the solution is to let it "rest" for a while. ;-) -- View this message in context: http://n4.nabble.com/Apache-returning-404-instea

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

2009-11-25 Thread drm
Hi, Arié Bénichou wrote: Please Gerard, don't tell me what i'm supposed to do. You don't get the point here, the question is : why did'nt you use Xyster ORM? Indeed I don't get the point. And I think that is because your reasoning is flawed. You are basically saying we should use Xyster, bec

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

2009-11-25 Thread Arié Bénichou
Hi Benjamin, Thanks for your reply. Reading the http://www.doctrine-project.org/blog/php-5-3-and-doctrine-2-0-teaser doctrine 2.0 teaser , I noticed that Doctrine planned to eliminate the need for an entity to extend from a base class. Althought, it sounds like writing an entity class is a littl

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

2009-11-25 Thread Pádraic Brady
>SensioLabs is not the devil, obviously, it's simply your main competitor. >It's a pity that you decided to reinvent the wheel, met a 'little blockade', >resigned and decided to go for Doctrine on this failure. You could have >started by providing integration to the popular Doctrine, then have a

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

2009-11-25 Thread Arié Bénichou
Hi Gerard, You completely misunderstood my post. This post is not about how I'm looking at open source. It's quite simple : why did'nt you use Xyster ORM? Benjamin gave me a partial answer with the base class entity problem. -Arié drm-4 wrote: > > Hi, > > Arié Bénichou wrote: >> Please Gerar

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

2009-11-25 Thread Arié Bénichou
Pádraic, It's quite easy to call someone a 'troll'. I admit the term 'failure' is probably not fair. However, that's how your competitors, from the open source world, or not, (it doesn't matter), could look at it. I sincerely did not mean to hurt or blame Benjamin who where working on his own. It

[fw-general] Unit Testing Zend_Application SOAP server

2009-11-25 Thread Dan Field
I'm trying to use PHPUnit to test my Zend_Framework based SOAP server. It's a simple application which has no controllers or views (too much overhead), but it does use the Zend_Application and bootstrap model, so I've been trying to use Zend_Test_PHPUnit_ControllerTestCase as it is Zend_App

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

2009-11-25 Thread Pádraic Brady
Not knowing about Xyster is called being ignorant, not misinformed ;). I'm not misinformed about Xyster - I never even knew it existed until now. The actual failure, if there was one, dates back to the beginning of ZF when an ORM was not actively pursued. Pádraic Brady http://blog.astrumfutu

Re: [fw-general] Overriding Zend_Form_Element methods

2009-11-25 Thread Matthew Weier O'Phinney
-- Саша Стаменковић wrote (on Wednesday, 25 November 2009, 09:51 AM +0100): > Thats ok, but I want to use Zend_Form_Element_* classes, don't want to > use myElement. I want all elements have my new getFullyQualifiedName() method. Two options: * Copy the Zend_Form_Element class to your own tree,

Re: [fw-general] Overriding Zend_Form_Element methods

2009-11-25 Thread Саша Стаменковић
So, no magic tricks there :) Thanks. Regards, Saša Stamenković On Wed, Nov 25, 2009 at 3:41 PM, Matthew Weier O'Phinney wrote: > -- Саша Стаменковић wrote > (on Wednesday, 25 November 2009, 09:51 AM +0100): > > Thats ok, but I want to use Zend_Form_Element_* classes, don't want to > > use myE

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

2009-11-25 Thread Matthew Weier O'Phinney
-- Arié Bénichou wrote (on Wednesday, 25 November 2009, 02:08 AM -0800): > drm-4 wrote: > > If you'd like integration for Xyster, write a proposal for it. > Please Gerard, don't tell me what i'm supposed to do. You don't get the > point here, the question is : why did'nt you use Xyster ORM? Plain

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

2009-11-25 Thread Matthew Weier O'Phinney
-- Arié Bénichou wrote (on Wednesday, 25 November 2009, 03:21 AM -0800): > Reading the > http://www.doctrine-project.org/blog/php-5-3-and-doctrine-2-0-teaser > doctrine 2.0 teaser , I noticed that Doctrine planned to eliminate the > need for an entity to extend from a base class. Althought, it sou

Re: [fw-general] Zend_Locale

2009-11-25 Thread asagala
Still havent figured this out anyone have a clue? asagala wrote: > > > By the way you can set the locale string in the constructor. This works in > the bootstrap file > > $locale = new Zend_Locale('en_US'); > Zend_Registry::set('Zend_Locale', $locale); > > I get

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

[fw-general] ZF - Where to begin?

2009-11-25 Thread Fozzyuw
Hi all, I've been watching and playing with ZF for some time now. Never very deeply at any given time and often putting it down for extended periods of time (version releases). One thing that keeps happening is that ZF is growing quickly. Which is good, but it's also hard to keep up. I'm gett

Re: [fw-general] ZF - Where to begin?

2009-11-25 Thread Daniel Latter
http://www.survivethedeepend.com/ Thanks. 2009/11/25 Fozzyuw > > Hi all, > > I've been watching and playing with ZF for some time now. Never very > deeply > at any given time and often putting it down for extended periods of time > (version releases). > > One thing that keeps happening is that

[fw-general] Autoloader doesn't work properly

2009-11-25 Thread Jigal sanders
Hello, Just created a project with zend tool. In my bootstrap file I have : protected function __initAutoload(){ $autoloader = new Zend_Application_Module_Autoloader(array( 'namespace' => '', 'basePath' => APPLICATION_PATH, )); return $autoloader

Re: [fw-general] ZF - Where to begin?

2009-11-25 Thread Jigal sanders
Hi, You might try these video tutorials. http://www.youtube.com/watch?v=Xmyqf4cvKHE On Wed, Nov 25, 2009 at 5:52 PM, Fozzyuw wrote: > > Hi all, > > I've been watching and playing with ZF for some time now. Never very > deeply > at any given time and often putting it down for extended period

Re: [fw-general] Autoloader doesn't work properly

2009-11-25 Thread Matthew Weier O'Phinney
-- Jigal sanders wrote (on Wednesday, 25 November 2009, 05:56 PM +0100): > Just created a project with zend tool. > > In my bootstrap file I have : > > protected function __initAutoload(){ > > $autoloader = new Zend_Application_Module_Autoloader(array( > 'namespace' =

Re: [fw-general] Autoloader doesn't work properly

2009-11-25 Thread Jigal Sanders
Thats exactly how i have it in zf version 1.9.5 On 25 nov 2009, at 18:18, Matthew Weier O'Phinney wrote: -- Jigal sanders wrote (on Wednesday, 25 November 2009, 05:56 PM +0100): Just created a project with zend tool. In my bootstrap file I have : protected function __initAutoload(){

Re: [fw-general] Quick start - trouble with sign.phtml and setAction

2009-11-25 Thread this
Antosan wrote: > > I cannot find setAction() declaration in a description. > I did the same as the quickstart describes but get an error on Sign Our > Guestbook clicking: > > Please use the form below to sign our guestbook! > Fatal error: Call to a member function setAction() on a non-object i

Re: [fw-general] ZF - Where to begin?

2009-11-25 Thread Pádraic Brady
Thanks, Daniel ;) Survive The Deep End isn't complete but it covers almost anything worth mentioning when starting out. I'll be kicking out more chapters pretty soon - it's turned into a longer term project since it started. Paddy Pádraic Brady http://blog.astrumfutura.com http://www.survive

Re: [fw-general] ZF - Where to begin?

2009-11-25 Thread Sudheer Satyanarayana
So, as an experienced PHP programmer but someone who's looking wanting to get the whole picture on how to best start utilizing ZF, where does one begin? Like Daniel pointed Surviving The Deep End is a good book. The book is more a 'best practices' tutorial for the Zend Framework user. Being

Re: [fw-general] ZF - Where to begin?

2009-11-25 Thread swilhelm
I want to second this post. I have used ZF for some projects earlier this year and I am right on the cusp of making a major decision: explore ZF 1.9 more deeply or abandon ZF and PHP altogether for Ruby on Rails. ZF Documentation seems almost passive aggressive, providing examples to get started,

Re: [fw-general] ZF - Where to begin?

2009-11-25 Thread Rob Riggen
I've been very frustrated with ZF - specifically in regard to the lack of helpful how to and tutorial information. There is very little out there that is even close to up-to-date. If the official documentation wants developer to "connect the dots" on their own, it seems to leave a little too much

Re: [fw-general] ZF - Where to begin?

2009-11-25 Thread Daniel Latter
Personally speaking it's a case of practice, practice, practice. I feel documentation can only get you so far and it won't be a panecea or all your woes, like Sudheer says the best way is to get writing an app. What I found useful was use this list ( or any of ) watch the questions comin

Re: [fw-general] ZF - Where to begin?

2009-11-25 Thread Daniel Latter
Also, I find ZF teaches you about design patterns and principles through implementation, i feel you are learning more than just Framework, maybe this is part if the issue also? On 25 Nov 2009, at 18:32, Rob Riggen wrote: I've been very frustrated with ZF - specifically in regard to the la

Re: [fw-general] ZF - Where to begin?

2009-11-25 Thread Fred Jiles
I have found it is just like learning anything that is semi complex, and different than you are used to. It takes some time to build up your tool set to both adapt how you currently do things to ZF, and ZF to how you do things. Once you get a couple projects under your belt, you will have a prett

Re: [fw-general] ZF - Where to begin?

2009-11-25 Thread Daniel Latter
No probs, thank you for the effort. On 25 Nov 2009, at 18:02, Pádraic Brady wrote: Thanks, Daniel ;) Survive The Deep End isn't complete but it covers almost anything worth mentioning when starting out. I'll be kicking out more chapters pretty soon - it's turned into a longer term proj

[fw-general] ZF Open Source Project: Example of Best Practices?

2009-11-25 Thread swilhelm
Prompted by Fozzyuw's latest post, I will approach the issue from a different tack. I am looking open source projects that exemplify the best practice use of the Zend Framework and its advanced features. Ideally these projects would: + be under active development + be based on ZF 1.9 + leverage

Re: [fw-general] Apache returning 404 instead of errorHandler page

2009-11-25 Thread Rob Allen
On 25 Nov 2009, at 11:12, vb wrote: > > Hm, somehow, without any changes or reconfiguration, only several restarts in > several days, it just started to work again. I see errorHandler pages again. > So, maybe the solution is to let it "rest" for a while. ;-) > -- > View this message in context:

Re: [fw-general] ZF - Where to begin?

2009-11-25 Thread Fozzyuw
Thanks for all the suggestions and the discussion. I've been using ZF for probably over a year now, if not longer. But it's been so on/off that I might miss a few big releases and then I find some big changes. For example, I started using and practicing with ZF before Zend_layout. I bought som

Re: [fw-general] ZF - Where to begin?

2009-11-25 Thread Daniel Latter
Dont know what docs you were reading:? http://framework.zend.com/manual/en/zend.view.helpers.html#zend.view.helpers.initial.headtitle Also, you dont have to learn everything about a componant to use it, which it sounds like what you are trying to do. The survive the deepend book goes through crea

[fw-general] Zend_Form and fields metacommand doesn't work

2009-11-25 Thread Dennis Becker
Hi all, yesterday I have found metacommands in manual at http://framework.zend.com/manual/en/zend.filter.input.html#zend.filter.input.metacommands.fields I want to compare to password fields with the "Identical" validator. So I build my form shown at http://paste2.org/p/532112 When I use this to