Re: [fw-general] Really complications Zend_Controller is purpose ZF?

2007-05-29 Thread Rob Allen
Justin Plock wrote:

> Personally, I think the ZF MVC code should be a "best practices" of
> sort.  ViewRenderer seems very much like an after-thought to me
> instead of integrating the View functionality into the Controller
> directly.
> 
> I realize the time and effort people have put into all of this code,
> but at some point, I think we need to step back and K.I.S.
> 

I actually think that ViewRenderer is a great solution and as much as
possible should be taken out of the action controller and put into
action helpers.

Regards,

Rob...


Re: [fw-general] Really complications Zend_Controller is purpose ZF?

2007-05-29 Thread Superbiji

On 30/05/07, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote:

-- Roman1975 <[EMAIL PROTECTED]> wrote
(on Tuesday, 29 May 2007, 01:32 PM -0700):
> Really complications Zend_Controller is purpose ZF?
> If to look at the first versions everyone was transparent and it is clear,
> but the further, the more difficultly
> To use given component Zend_Controller, what your opinion?

Ummm... what parts are less transparent now? What's harder?

In the old versions, if you wanted to create and render a view, you'd
have code like this:

class FooController extends Zend_Controller_Action
{
public function barAction()
{
$view = new Zend_View();
$view->setScriptPath(dirname(__FILE__) . '/../views/scripts');
$view->setHelperPath(dirname(__FILE__) . '/../views/helpers');
$view->content = 'Some content for my view';
$view->render('foo/bar.phtml');
}
}

Now the following accomplishes the same:

class FooController extends Zend_Controller_Action
{
public function barAction()
{
$this->view->content = 'Some content for my view';
}
}


Yes, I like current controller with viewRenderer
less typing ^^


Re: [fw-general] Really complications Zend_Controller is purpose ZF?

2007-05-29 Thread James Andrews
OK so scratch my example as I didn't see all the argument variables  
that render took in.


right now render has the 3 possible arguments, so I would add a 4th,  
to turn on and off renders dynamically.  I tried to extend and over- 
ride the "Zend_Controller_Action", but it needs further over-riding  
to do what I want it too, I'll probably do that for my solution.


James


On May 29, 2007, at 9:04 PM, James Andrews wrote:

My first introduction to MVC was with Cocoa and Objective-C (yes  
I'm a Mac user), so to me the whole point of MVC to me is that the  
controller should contain all the logic in between the model and  
view.  Which is what I am trying to figure out if I can do with the  
ZF MVC.  I've read the Getting started with Zend Framework PDF from  
the other day and I am still don't know if I can do what I want to  
do.  I'll figure that out though. :-D


I essentially have a template.

header
left right
footer

The left contains 2 box areas, the right contains 2 box areas.

in my index.phtml  so far I have


render('header.phtml'); ?>
render('footer.phtml'); ?>

I was thinking

render('header.phtml'); ?>
render('contentMain.phtml'); ?>
render('footer.phtml'); ?>

The contentMain.phtml would contain the left and right areas.

I then want to be able to configure if the left section has box one  
displayed, box two displayed or both boxes displayed, same in the  
right side.


I just haven't figured out the right way to do it yet.  I can  
either make my views very basic and read in the other sections via  
my controller class, or put logic in my phtml files which I would  
rather avoid.


I had a 3hr instant messenger debate about this very topic with an  
ex-coworker of mine.


Maybe something that would be nice to add is a modification to the  
render function.


$this->render('contentMain.phtml', true);
$this->render('contentMain.phtml', false);

That way you can control what is rendered from the controller, just  
by passing the right variable.  Obviously this would be defaulted  
to "true".  It would be nice for turning on and off components  
without having to write in logic in the view.


Just a thought.

James





On May 29, 2007, at 8:14 PM, Maurice Fonk wrote:

You can use Smarty and separate logic from design. Smarty really  
does fit in with the MVC model just fine, and takes over the View  
part with elegance. In fact, I believe that using a template  
engine will keep you from using logic in you views. Where php  
pretty much allows you to do everything you want, Smarty syntax  
doesn't.


I will now shamelessly plug a blog post of my own hand on Smarty  
and the ZF:

http://naneau.nl/2007/05/10/smarty-and-the-zend-framework/
it deals with the problem described by Gunter, about either  
extending Zend_View or implementing Zend_View_Interface.


Thing is, a lot of people are quite comfortable with Smarty, and  
it should at the very least be possible to use it with the  
framework. I don't see how it would violate the MVC pattern.


MF

James Andrews wrote:
Isn't using Smarty on top of MVC kind of  counter intuitive.  You  
should be using one or the other, not both.   Any template engine  
that has logic in it is pointless the entire idea is that you do  
all your logic in the php and then the template engine should  
just displays the results.  Then again I am quite anti smarty.   
(sorry big pet peeve of mine.)


James




On May 29, 2007, at 7:02 PM, Gunter Sammet wrote:

Matthew, thank you for your hard work and prompt responses. Here  
a few lines on my experience so far:


I am pretty new to ZF and MVC. On top of that I want to  
implement Smarty as the template engine. Been spending a few  
days on reading the documentation, what I could find on the  
Internet and playing around with the zfdemo code. Still don't  
get the whole picture but it makes more and more sense. Figure  
it will take me another few days of playing around to understand  
it a bit more.
Managed to get some views working through piecing together code  
pieces from several tutorials and the zfdemo app. I followed the  
emails in the last few weeks, so I knew that there were some  
changes that are not compatible. That's why I upgraded today to  
1.0.
This broke my setup with the Smarty view, injecting templates  
out of a template directory. Since I am still not very  
proficient in debugging the ZF and I had $frontController- 
>throwExceptions(true) set, I didn't get the error message that  
it didn't find 'index/index.phtml'. It took me a few hours to  
figure it out and I am thinking about my potential new structure.
Besides the above, I had to change my smarty view to use  
"extends Zend_View_Abstract" instead of "implements  
Zend_View_Interface" which required me to declare the "_run"  
method.
For now till I have my new template structure, I managed to  
bypass the auto view settings by using the following lines of code;
$viewRenderer = new  
Zend_Controller_Action_Helper_ViewRendere

Re: [fw-general] Really complications Zend_Controller is purpose ZF?

2007-05-29 Thread James Andrews
My first introduction to MVC was with Cocoa and Objective-C (yes I'm  
a Mac user), so to me the whole point of MVC to me is that the  
controller should contain all the logic in between the model and  
view.  Which is what I am trying to figure out if I can do with the  
ZF MVC.  I've read the Getting started with Zend Framework PDF from  
the other day and I am still don't know if I can do what I want to  
do.  I'll figure that out though. :-D


I essentially have a template.

header
left right
footer

The left contains 2 box areas, the right contains 2 box areas.

in my index.phtml  so far I have


render('header.phtml'); ?>
render('footer.phtml'); ?>

I was thinking

render('header.phtml'); ?>
render('contentMain.phtml'); ?>
render('footer.phtml'); ?>

The contentMain.phtml would contain the left and right areas.

I then want to be able to configure if the left section has box one  
displayed, box two displayed or both boxes displayed, same in the  
right side.


I just haven't figured out the right way to do it yet.  I can either  
make my views very basic and read in the other sections via my  
controller class, or put logic in my phtml files which I would rather  
avoid.


I had a 3hr instant messenger debate about this very topic with an ex- 
coworker of mine.


Maybe something that would be nice to add is a modification to the  
render function.


$this->render('contentMain.phtml', true);
$this->render('contentMain.phtml', false);

That way you can control what is rendered from the controller, just  
by passing the right variable.  Obviously this would be defaulted to  
"true".  It would be nice for turning on and off components without  
having to write in logic in the view.


Just a thought.

James





On May 29, 2007, at 8:14 PM, Maurice Fonk wrote:

You can use Smarty and separate logic from design. Smarty really  
does fit in with the MVC model just fine, and takes over the View  
part with elegance. In fact, I believe that using a template engine  
will keep you from using logic in you views. Where php pretty much  
allows you to do everything you want, Smarty syntax doesn't.


I will now shamelessly plug a blog post of my own hand on Smarty  
and the ZF:

http://naneau.nl/2007/05/10/smarty-and-the-zend-framework/
it deals with the problem described by Gunter, about either  
extending Zend_View or implementing Zend_View_Interface.


Thing is, a lot of people are quite comfortable with Smarty, and it  
should at the very least be possible to use it with the framework.  
I don't see how it would violate the MVC pattern.


MF

James Andrews wrote:
Isn't using Smarty on top of MVC kind of  counter intuitive.  You  
should be using one or the other, not both.   Any template engine  
that has logic in it is pointless the entire idea is that you do  
all your logic in the php and then the template engine should just  
displays the results.  Then again I am quite anti smarty.  (sorry  
big pet peeve of mine.)


James




On May 29, 2007, at 7:02 PM, Gunter Sammet wrote:

Matthew, thank you for your hard work and prompt responses. Here  
a few lines on my experience so far:


I am pretty new to ZF and MVC. On top of that I want to implement  
Smarty as the template engine. Been spending a few days on  
reading the documentation, what I could find on the Internet and  
playing around with the zfdemo code. Still don't get the whole  
picture but it makes more and more sense. Figure it will take me  
another few days of playing around to understand it a bit more.
Managed to get some views working through piecing together code  
pieces from several tutorials and the zfdemo app. I followed the  
emails in the last few weeks, so I knew that there were some  
changes that are not compatible. That's why I upgraded today to 1.0.
This broke my setup with the Smarty view, injecting templates out  
of a template directory. Since I am still not very proficient in  
debugging the ZF and I had $frontController->throwExceptions 
(true) set, I didn't get the error message that it didn't find  
'index/index.phtml'. It took me a few hours to figure it out and  
I am thinking about my potential new structure.
Besides the above, I had to change my smarty view to use "extends  
Zend_View_Abstract" instead of "implements Zend_View_Interface"  
which required me to declare the "_run" method.
For now till I have my new template structure, I managed to  
bypass the auto view settings by using the following lines of code;
$viewRenderer = new  
Zend_Controller_Action_Helper_ViewRenderer($view);

$viewRenderer->setViewBasePathSpec($tmplPath)
 ->setViewScriptPathSpec('landing.tpl')
 ->setViewScriptPathNoControllerSpec(' landing.tpl')
 ->setViewSuffix('tpl');
Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
//Zend_View_Controller_HelperBroker::addHelper($viewRenderer);
NOTE:
=
-->The sample code at http://framework.zend.com/manual/en/ 
zend.controller.actionhelpers

Re: [fw-general] Really complications Zend_Controller is purpose ZF?

2007-05-29 Thread Maurice Fonk
You can use Smarty and separate logic from design. Smarty really does 
fit in with the MVC model just fine, and takes over the View part with 
elegance. In fact, I believe that using a template engine will keep you 
from using logic in you views. Where php pretty much allows you to do 
everything you want, Smarty syntax doesn't.


I will now shamelessly plug a blog post of my own hand on Smarty and the 
ZF:

http://naneau.nl/2007/05/10/smarty-and-the-zend-framework/
it deals with the problem described by Gunter, about either extending 
Zend_View or implementing Zend_View_Interface.


Thing is, a lot of people are quite comfortable with Smarty, and it 
should at the very least be possible to use it with the framework. I 
don't see how it would violate the MVC pattern.


MF

James Andrews wrote:
Isn't using Smarty on top of MVC kind of  counter intuitive.  You 
should be using one or the other, not both.   Any template engine that 
has logic in it is pointless the entire idea is that you do all your 
logic in the php and then the template engine should just displays the 
results.  Then again I am quite anti smarty.  (sorry big pet peeve of 
mine.)


James




On May 29, 2007, at 7:02 PM, Gunter Sammet wrote:

Matthew, thank you for your hard work and prompt responses. Here a 
few lines on my experience so far:


I am pretty new to ZF and MVC. On top of that I want to implement 
Smarty as the template engine. Been spending a few days on reading 
the documentation, what I could find on the Internet and playing 
around with the zfdemo code. Still don't get the whole picture but it 
makes more and more sense. Figure it will take me another few days of 
playing around to understand it a bit more.
Managed to get some views working through piecing together code 
pieces from several tutorials and the zfdemo app. I followed the 
emails in the last few weeks, so I knew that there were some changes 
that are not compatible. That's why I upgraded today to 1.0.
This broke my setup with the Smarty view, injecting templates out of 
a template directory. Since I am still not very proficient in 
debugging the ZF and I had $frontController->throwExceptions(true) 
set, I didn't get the error message that it didn't find 
'index/index.phtml'. It took me a few hours to figure it out and I am 
thinking about my potential new structure.
Besides the above, I had to change my smarty view to use "extends 
Zend_View_Abstract" instead of "implements Zend_View_Interface" which 
required me to declare the "_run" method.
For now till I have my new template structure, I managed to bypass 
the auto view settings by using the following lines of code;
$viewRenderer = new 
Zend_Controller_Action_Helper_ViewRenderer($view);

$viewRenderer->setViewBasePathSpec($tmplPath)
 ->setViewScriptPathSpec('landing.tpl')
 ->setViewScriptPathNoControllerSpec(' landing.tpl')
 ->setViewSuffix('tpl');
Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
//Zend_View_Controller_HelperBroker::addHelper($viewRenderer);
NOTE:
=
-->The sample code at 
http://framework.zend.com/manual/en/zend.controller.actionhelpers.html#zend.controller.actionhelpers.viewrenderer 
 
(paragraph 7.9) wants you to implement 
Zend_View_Controller_HelperBroker::addHelper($viewRenderer);. 
However, I didn't find a HelperBroker there. Seems to be the 
Zend_Controller_Action_HelperBroker that is meant there.


Your changes make sense and should make the default setup easier. I 
will try to implement it as close as possible to be open for future 
refactoring. That's why I didn't use the

|$front->setParam
('noErrorHandler', true);
|
If I understand it correctly, that should have solved my problem 
without changes. A good read for it is the migration page ( 
http://framework.zend.com/manual/en/zend.controller.migration.html#zend.controller.migration.fromzeroninethree)


Hope these lines help some other users to figure it out a bit earlier 
and for you to understand the issues ZF newbies may face.


Gunter





--
Maurice Fonk

[EMAIL PROTECTED]
http://naneau.nl/

Scio me nihil scire



Re: [fw-general] Really complications Zend_Controller is purpose ZF?

2007-05-29 Thread James Andrews
Isn't using Smarty on top of MVC kind of  counter intuitive.  You  
should be using one or the other, not both.   Any template engine  
that has logic in it is pointless the entire idea is that you do all  
your logic in the php and then the template engine should just  
displays the results.  Then again I am quite anti smarty.  (sorry big  
pet peeve of mine.)


James




On May 29, 2007, at 7:02 PM, Gunter Sammet wrote:

Matthew, thank you for your hard work and prompt responses. Here a  
few lines on my experience so far:


I am pretty new to ZF and MVC. On top of that I want to implement  
Smarty as the template engine. Been spending a few days on reading  
the documentation, what I could find on the Internet and playing  
around with the zfdemo code. Still don't get the whole picture but  
it makes more and more sense. Figure it will take me another few  
days of playing around to understand it a bit more.
Managed to get some views working through piecing together code  
pieces from several tutorials and the zfdemo app. I followed the  
emails in the last few weeks, so I knew that there were some  
changes that are not compatible. That's why I upgraded today to 1.0.
This broke my setup with the Smarty view, injecting templates out  
of a template directory. Since I am still not very proficient in  
debugging the ZF and I had $frontController->throwExceptions(true)  
set, I didn't get the error message that it didn't find 'index/ 
index.phtml'. It took me a few hours to figure it out and I am  
thinking about my potential new structure.
Besides the above, I had to change my smarty view to use "extends  
Zend_View_Abstract" instead of "implements Zend_View_Interface"  
which required me to declare the "_run" method.
For now till I have my new template structure, I managed to bypass  
the auto view settings by using the following lines of code;
$viewRenderer = new  
Zend_Controller_Action_Helper_ViewRenderer($view);

$viewRenderer->setViewBasePathSpec($tmplPath)
 ->setViewScriptPathSpec('landing.tpl')
 ->setViewScriptPathNoControllerSpec(' landing.tpl')
 ->setViewSuffix('tpl');
Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
//Zend_View_Controller_HelperBroker::addHelper($viewRenderer);
NOTE:
=
-->The sample code at http://framework.zend.com/manual/en/ 
zend.controller.actionhelpers.html#zend.controller.actionhelpers.viewr 
enderer (paragraph 7.9) wants you to implement  
Zend_View_Controller_HelperBroker::addHelper($viewRenderer);.  
However, I didn't find a HelperBroker there. Seems to be the  
Zend_Controller_Action_HelperBroker that is meant there.


Your changes make sense and should make the default setup easier. I  
will try to implement it as close as possible to be open for future  
refactoring. That's why I didn't use the

$front->setParam
('noErrorHandler', true);
If I understand it correctly, that should have solved my problem  
without changes. A good read for it is the migration page ( http:// 
framework.zend.com/manual/en/ 
zend.controller.migration.html#zend.controller.migration.fromzeroninet 
hree)


Hope these lines help some other users to figure it out a bit  
earlier and for you to understand the issues ZF newbies may face.


Gunter




Re: [fw-general] Really complications Zend_Controller is purpose ZF?

2007-05-29 Thread Justin Plock

I'd love to see a tutorial, using ZF 1.0RC1 (or later) using Smarty.
I myself have been trying to figure out how to migrate an existing
code base where we used Smarty exclusively, over to the ZF MVC
pattern.  I've ended up having to disable both the ViewRenderer and
the ErrorHandler plugin to start sifting through where to do the
migration.

Personally, I think the ZF MVC code should be a "best practices" of
sort.  ViewRenderer seems very much like an after-thought to me
instead of integrating the View functionality into the Controller
directly.

I realize the time and effort people have put into all of this code,
but at some point, I think we need to step back and K.I.S.

That's my 2 cents.

Thanks.

-Justin

On 5/29/07, Gunter Sammet <[EMAIL PROTECTED]> wrote:

Matthew, thank you for your hard work and prompt responses. Here a few lines
on my experience so far:

I am pretty new to ZF and MVC. On top of that I want to implement Smarty as
the template engine. Been spending a few days on reading the documentation,
what I could find on the Internet and playing around with the zfdemo code.
Still don't get the whole picture but it makes more and more sense. Figure
it will take me another few days of playing around to understand it a bit
more.
Managed to get some views working through piecing together code pieces from
several tutorials and the zfdemo app. I followed the emails in the last few
weeks, so I knew that there were some changes that are not compatible.
That's why I upgraded today to 1.0.
This broke my setup with the Smarty view, injecting templates out of a
template directory. Since I am still not very proficient in debugging the ZF
and I had $frontController->throwExceptions(true) set, I
didn't get the error message that it didn't find 'index/index.phtml'. It
took me a few hours to figure it out and I am thinking about my potential
new structure.
Besides the above, I had to change my smarty view to use "extends
Zend_View_Abstract" instead of "implements Zend_View_Interface" which
required me to declare the "_run" method.
For now till I have my new template structure, I managed to bypass the auto
view settings by using the following lines of code;
$viewRenderer = new
Zend_Controller_Action_Helper_ViewRenderer($view);
$viewRenderer->setViewBasePathSpec($tmplPath)
 ->setViewScriptPathSpec('landing.tpl')
 ->setViewScriptPathNoControllerSpec('
landing.tpl')
 ->setViewSuffix('tpl');
Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
//Zend_View_Controller_HelperBroker::addHelper($viewRenderer);
NOTE:
=
 -->The sample code at
http://framework.zend.com/manual/en/zend.controller.actionhelpers.html#zend.controller.actionhelpers.viewrenderer
(paragraph 7.9) wants you to implement
Zend_View_Controller_HelperBroker::addHelper($viewRenderer);.
However, I didn't find a HelperBroker there. Seems to be the
Zend_Controller_Action_HelperBroker that is meant there.

Your changes make sense and should make the default setup easier. I will try
to implement it as close as possible to be open for future refactoring.
That's why I didn't use the
$front->setParam
('noErrorHandler', true);

If I understand it correctly, that should have solved my problem without
changes. A good read for it is the migration page (
http://framework.zend.com/manual/en/zend.controller.migration.html#zend.controller.migration.fromzeroninethree)

Hope these lines help some other users to figure it out a bit earlier and
for you to understand the issues ZF newbies may face.

Gunter



Re: [fw-general] Really complications Zend_Controller is purpose ZF?

2007-05-29 Thread Gunter Sammet

Matthew, thank you for your hard work and prompt responses. Here a few lines
on my experience so far:

I am pretty new to ZF and MVC. On top of that I want to implement Smarty as
the template engine. Been spending a few days on reading the documentation,
what I could find on the Internet and playing around with the zfdemo code.
Still don't get the whole picture but it makes more and more sense. Figure
it will take me another few days of playing around to understand it a bit
more.
Managed to get some views working through piecing together code pieces from
several tutorials and the zfdemo app. I followed the emails in the last few
weeks, so I knew that there were some changes that are not compatible.
That's why I upgraded today to 1.0.
This broke my setup with the Smarty view, injecting templates out of a
template directory. Since I am still not very proficient in debugging the ZF
and I had $frontController->throwExceptions(true) set, I didn't get the
error message that it didn't find 'index/index.phtml'. It took me a few
hours to figure it out and I am thinking about my potential new structure.
Besides the above, I had to change my smarty view to use "extends
Zend_View_Abstract" instead of "implements Zend_View_Interface" which
required me to declare the "_run" method.
For now till I have my new template structure, I managed to bypass the auto
view settings by using the following lines of code;
   $viewRenderer = new
Zend_Controller_Action_Helper_ViewRenderer($view);
$viewRenderer->setViewBasePathSpec($tmplPath)
->setViewScriptPathSpec('landing.tpl')
->setViewScriptPathNoControllerSpec('landing.tpl')
->setViewSuffix('tpl');
Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
//Zend_View_Controller_HelperBroker::addHelper($viewRenderer);
NOTE:
=
-->The sample code at
http://framework.zend.com/manual/en/zend.controller.actionhelpers.html#zend.controller.actionhelpers.viewrenderer(paragraph
7.9) wants you to implement
Zend_View_Controller_HelperBroker::addHelper($viewRenderer);. However, I
didn't find a HelperBroker there. Seems to be the
Zend_Controller_Action_HelperBroker that is meant there.

Your changes make sense and should make the default setup easier. I will try
to implement it as close as possible to be open for future refactoring.
That's why I didn't use the

$front->setParam('noErrorHandler', true);

If I understand it correctly, that should have solved my problem without
changes. A good read for it is the migration page (
http://framework.zend.com/manual/en/zend.controller.migration.html#zend.controller.migration.fromzeroninethree
)

Hope these lines help some other users to figure it out a bit earlier and
for you to understand the issues ZF newbies may face.

Gunter


Re: [fw-general] Really complications Zend_Controller is purpose ZF?

2007-05-29 Thread Matthew Weier O'Phinney
-- Roman1975 <[EMAIL PROTECTED]> wrote
(on Tuesday, 29 May 2007, 01:32 PM -0700):
> Really complications Zend_Controller is purpose ZF?
> If to look at the first versions everyone was transparent and it is clear,
> but the further, the more difficultly
> To use given component Zend_Controller, what your opinion?

Ummm... what parts are less transparent now? What's harder?

In the old versions, if you wanted to create and render a view, you'd
have code like this:

class FooController extends Zend_Controller_Action
{
public function barAction()
{
$view = new Zend_View();
$view->setScriptPath(dirname(__FILE__) . '/../views/scripts');
$view->setHelperPath(dirname(__FILE__) . '/../views/helpers');
$view->content = 'Some content for my view';
$view->render('foo/bar.phtml');
}
}

Now the following accomplishes the same:

class FooController extends Zend_Controller_Action
{
public function barAction()
{
$this->view->content = 'Some content for my view';
}
}

I've been striving hard, based on user issues as well as my own, to
improve the Zend_Controller code and simplify the typical use case for
most developers. If you have some feedback, I'd love to hear it, but
what you've said above gives me absolutely no context whatsoever.

-- 
Matthew Weier O'Phinney
PHP Developer| [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/


[fw-general] When using Mysqli as session manager an error occers if Mysqli fails

2007-05-29 Thread John Baldock

I have just been testing a database failure when using the database in
"Zend_Session::setSaveHandler(new Sessions($db));". I was expecting an
exception to be thrown, but instead I get the following error:


Warning:
Zend_Db_Adapter_Mysqli::require_once(Zend/Db/Adapter/Mysqli/Exception.php)
[function.Zend-Db-Adapter-Mysqli-require-once]: failed to open stream: No
such file or directory in C:\Program Files\Apache Software
Foundation\Apache2.2\library\Zend\Db\Adapter\Mysqli.php on line 255

Fatal error: Zend_Db_Adapter_Mysqli::require_once() [function.require]:
Failed opening required 'Zend/Db/Adapter/Mysqli/Exception.php'
(include_path='../library;esphotog/application/models;.;C:\Program
Files\Pear\pear') in C:\Program Files\Apache Software
Foundation\Apache2.2\library\Zend\Db\Adapter\Mysqli.php on line 255


I'm not sure what could cause the error with require_once. This is the
easiest way to replicate these results:

Bootstrap.php:
 'invalid',
  'username' => 'invalid',
  'password' => 'invalid',
  'dbname' => 'invalid');

$db = Zend_Db::factory('Mysqli', $dbSettings);

Zend_Session::setSaveHandler(new Sessions($db));


Sessions.php:
http://www.baldock-web-development.com/temp/Sessions.txt Sessions.txt 


Cheers,
John Baldock
-- 
View this message in context: 
http://www.nabble.com/When-using-Mysqli-as-session-manager-an-error-occers-if-Mysqli-fails-tf3836456s16154.html#a10862276
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Really complications Zend_Controller is purpose ZF?

2007-05-29 Thread Roman1975

Really complications Zend_Controller is purpose ZF?
If to look at the first versions everyone was transparent and it is clear,
but the further, the more difficultly
To use given component Zend_Controller, what your opinion?

-- 
View this message in context: 
http://www.nabble.com/Really-complications-Zend_Controller-is-purpose-ZF--tf3836387s16154.html#a10862066
Sent from the Zend Framework mailing list archive at Nabble.com.



RE: [fw-general] Is http://framework.zend.com/apidoc/core/ broken

2007-05-29 Thread Bill Karwin
Hi, this is now fixed.  Thanks for the heads-up.
 
Regards,
Bill Karwin




From: Gunter Sammet [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 29, 2007 12:36 PM
To: fw-general@lists.zend.com
Subject: [fw-general] Is http://framework.zend.com/apidoc/core/
broken


Hi all:
Not sure if it's just me but I can't seem to browse
http://framework.zend.com/apidoc/core/ anymore. Getting errors like:



Not Found


The requested URL /apidoc/core/classtrees_Zend_Acl.html was not
found on this server.


Did the link change?

Also noticed that the link in the Zend Framework Manual is
missing the trailing slash:

http://framework.zend.com/manual/en/zend.controller.html

Please fix!
Thanks,

Gunter




Re: [fw-general] Zend_Validate

2007-05-29 Thread Thomas Weidner

You can get the supported characters from a locale with

$locale = new Zend_Locale();
$characters = $locale->getTranslationList('characters','de');

where 'de' is the wished locale.

But to make one thing clear...
CLDR Data for exemplar characters is not complete as for 1.4.1

Also related to ZF-1248 the IDN does not support all characters as given 
through the CLDR.

This data does not match to each other.

And when you look at 'zh' for example there is a wide range of more than 100 
supported characters.


Greetings
Thomas
I18N Team Leader


- Original Message - 
From: "Pádraic Brady" <[EMAIL PROTECTED]>

To: "Andries Seutens" <[EMAIL PROTECTED]>
Cc: "Zend Framework General" 
Sent: Tuesday, May 29, 2007 6:49 PM
Subject: Re: [fw-general] Zend_Validate


From what I remember the CLDR exemplar characters also have sets of 
proposed elements. So for a language like Irish Gaelic some traditional 
characters wouldn't get included in the Filter/Validator. Not too much an 
issue though - most Gaelic doesn't use them anymore.


I think even a single Locale solution is worth something. We already have 
the characters for each just sitting there.


At the end of the day I think multi-Locale ranges are going to remain a 
manual exercise... Maybe some manual manipulation and duplicate removal 
across multiple CLDR exemplars would work - not very easy though.


P.

Pádraic Brady
http://blog.astrumfutura.com
http://www.patternsforphp.com


- Original Message 
From: Andries Seutens <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: Darby Felton <[EMAIL PROTECTED]>; Guillaume Millet <[EMAIL PROTECTED]>; 
Zend Framework General 

Sent: Tuesday, May 29, 2007 9:58:56 AM
Subject: Re: [fw-general] Zend_Validate


Hello Alexander,

This issue is slightly more complicated, and so far, we have not come to
a consensus. You might want to check out the following Jira issue as well:

http://framework.zend.com/issues/browse/ZF-1248

I have a proof of concept available here:
http://andries.systray.be/Alpha.phps

However, the problem is that this does not support ALL locales, but only
the given locale

Best,


Andries Seutens
http://andries.systray.be

Alexander Jaeger schreef:

Hello List,

i waited eagerly to see 1.0 RC1, and here it is ;)

I am still looking for a solution to my Umlauts problem,

i tried using the mbstring settings within php,

[mbstring]
mbstring.language = neutral
mbstring.http_input = iso-88589
mbstring.http_output = iso-8859-1
mbstring.internal_encoding = iso-8859-1
mbstring.encoding_translation = Off

I changed it a couple of times using german as language, and UTF-8
encoding, also http_input as auto,
no success on that matter.

Then I red the new post @ http://framework.zend.com/issues/browse/ZF-269

Could anyone provide me with an example how to use the

Zend_Filter_Input::getRaw()

for this code:

$var1 = "jäger";

$filter_StripTags->filter($var1);

$alpha = new Zend_Validate();
$alpha->addValidator(new Zend_Validate_StringLength(1, 64));
$alpha->addValidator(new Zend_Validate_Alpha());

if ($alpha->isValid($var1) {
 echo $var1 . 'is Valid';
} else {
 echo $var1 . 'is not Valid';
}


I guess i am just being stupid... i have no idea how i get that workin.

Help greatly appreciated.

Alex



Darby Felton schrieb:

Hi Alex,

The issue you experience is related to ZF-269:

http://framework.zend.com/issues/browse/ZF-269

Thanks for the report!

Best regards,
Darby

Alexander Jäger wrote:


Sorry to bother,

I try to validate a variable cotaining my lastname "jäger".

$alpha = new Zend_Validate();
$alpha->addValidator(new Zend_Validate_StringLength(1, 64));
$alpha->addValidator(new Zend_Validate_Alpha());

$var1 = "jäger"

if ($alpha->isValid($var1) {
  echo $var1 . 'is Valid';
} else {
  echo $var1 . 'is not Valid';
}

// prints: jäger is not Valid

if itry the same with $var1='alexander' it is valid.

I try to get the locales workin and they work using the
setlocale(LC_ALL,"de_DE.UTF-8");

Also I tries using Zend_Locale, but still no improvement.

Can any one point me to an direction to seek a solution.

Please help ;)

Alex


Alexander Jäger schrieb:


Hello Guillaume,

thats a simple solution

somtimes i don´t see the forest, because of all the trees.

thanks.

Alex

Guillaume Millet schrieb:


Hi Alex,

If you're trying to validate data like your name using
Zend_Validate_Alpha, you may want to try and set PHP's locale to
German using setlocale() if it's not already done.

Regards,

Guillaume

Lx a écrit :



Simon R Jones schrieb:



Hi Alexander,

Some domain names have been set up to accept international
characters, DE domains being one of them. More info on how to use
it is on
http://framework.zend.com/manual/en/zend.validate.validating_hostnames.html



However, there have been reports of it not working reliably for
some people. This is likely down to character encoding issues.
This has been reported in ZF-1083 (
http://framework.zend.com/issues/browse/ZF-1083 ) and I'm looking
into wh

[fw-general] Is http://framework.zend.com/apidoc/core/ broken

2007-05-29 Thread Gunter Sammet

Hi all:
Not sure if it's just me but I can't seem to browse
http://framework.zend.com/apidoc/core/ anymore. Getting errors like:

Not Found

The requested URL /apidoc/core/classtrees_Zend_Acl.html was not found on
this server.

Did the link change?

Also noticed that the link in the Zend Framework Manual is missing the
trailing slash:

http://framework.zend.com/manual/en/zend.controller.html

Please fix!
Thanks,

Gunter


Re: [fw-general] Zend_Validate

2007-05-29 Thread Pádraic Brady
>From what I remember the CLDR exemplar characters also have sets of proposed 
>elements. So for a language like Irish Gaelic some traditional characters 
>wouldn't get included in the Filter/Validator. Not too much an issue though - 
>most Gaelic doesn't use them anymore.

I think even a single Locale solution is worth something. We already have the 
characters for each just sitting there.

At the end of the day I think multi-Locale ranges are going to remain a manual 
exercise... Maybe some manual manipulation and duplicate removal across 
multiple CLDR exemplars would work - not very easy though.

P.
 
Pádraic Brady
http://blog.astrumfutura.com
http://www.patternsforphp.com


- Original Message 
From: Andries Seutens <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: Darby Felton <[EMAIL PROTECTED]>; Guillaume Millet <[EMAIL PROTECTED]>; 
Zend Framework General 
Sent: Tuesday, May 29, 2007 9:58:56 AM
Subject: Re: [fw-general] Zend_Validate


Hello Alexander,

This issue is slightly more complicated, and so far, we have not come to 
a consensus. You might want to check out the following Jira issue as well:

http://framework.zend.com/issues/browse/ZF-1248

I have a proof of concept available here:
http://andries.systray.be/Alpha.phps

However, the problem is that this does not support ALL locales, but only 
the given locale

Best,


Andries Seutens
http://andries.systray.be

Alexander Jaeger schreef:
> Hello List,
>
> i waited eagerly to see 1.0 RC1, and here it is ;)
>
> I am still looking for a solution to my Umlauts problem,
>
> i tried using the mbstring settings within php,
>
> [mbstring]
> mbstring.language = neutral
> mbstring.http_input = iso-88589
> mbstring.http_output = iso-8859-1
> mbstring.internal_encoding = iso-8859-1
> mbstring.encoding_translation = Off
>
> I changed it a couple of times using german as language, and UTF-8 
> encoding, also http_input as auto,
> no success on that matter.
>
> Then I red the new post @ http://framework.zend.com/issues/browse/ZF-269
>
> Could anyone provide me with an example how to use the
>
> Zend_Filter_Input::getRaw()
>
> for this code:
>
> $var1 = "jäger";
>
> $filter_StripTags->filter($var1);
>
> $alpha = new Zend_Validate();
> $alpha->addValidator(new Zend_Validate_StringLength(1, 64));
> $alpha->addValidator(new Zend_Validate_Alpha());
>
> if ($alpha->isValid($var1) {
>  echo $var1 . 'is Valid';
> } else {
>  echo $var1 . 'is not Valid';
> }
>
>
> I guess i am just being stupid... i have no idea how i get that workin.
>
> Help greatly appreciated.
>
> Alex
>
>
>
> Darby Felton schrieb:
>> Hi Alex,
>>
>> The issue you experience is related to ZF-269:
>>
>> http://framework.zend.com/issues/browse/ZF-269
>>
>> Thanks for the report!
>>
>> Best regards,
>> Darby
>>
>> Alexander Jäger wrote:
>>  
>>> Sorry to bother,
>>>
>>> I try to validate a variable cotaining my lastname "jäger".
>>>
>>> $alpha = new Zend_Validate();
>>> $alpha->addValidator(new Zend_Validate_StringLength(1, 64));
>>> $alpha->addValidator(new Zend_Validate_Alpha());
>>>
>>> $var1 = "jäger"
>>>
>>> if ($alpha->isValid($var1) {
>>>   echo $var1 . 'is Valid';
>>> } else {
>>>   echo $var1 . 'is not Valid';
>>> }
>>>
>>> // prints: jäger is not Valid
>>>
>>> if itry the same with $var1='alexander' it is valid.
>>>
>>> I try to get the locales workin and they work using the
>>> setlocale(LC_ALL,"de_DE.UTF-8");
>>>
>>> Also I tries using Zend_Locale, but still no improvement.
>>>
>>> Can any one point me to an direction to seek a solution.
>>>
>>> Please help ;)
>>>
>>> Alex
>>>
>>>
>>> Alexander Jäger schrieb:
>>>
 Hello Guillaume,

 thats a simple solution

 somtimes i don´t see the forest, because of all the trees.

 thanks.

 Alex

 Guillaume Millet schrieb:
  
> Hi Alex,
>
> If you're trying to validate data like your name using
> Zend_Validate_Alpha, you may want to try and set PHP's locale to
> German using setlocale() if it's not already done.
>
> Regards,
>
> Guillaume
>
> Lx a écrit :
>
>
>> Simon R Jones schrieb:
>>
>>  
>>> Hi Alexander,
>>>
>>> Some domain names have been set up to accept international
>>> characters, DE domains being one of them. More info on how to use
>>> it is on
>>> http://framework.zend.com/manual/en/zend.validate.validating_hostnames.html
>>>  
>>>
>>>
>>>
>>> However, there have been reports of it not working reliably for
>>> some people. This is likely down to character encoding issues.
>>> This has been reported in ZF-1083 (
>>> http://framework.zend.com/issues/browse/ZF-1083 ) and I'm looking
>>> into why this isn't working for some people. I had uploaded a test
>>> script to that page but the upload process messed up the character
>>> encoding so that doesn't work.
>>>
>>> I plan to write up some tests and host them myself to hel

Re: [fw-general] ViewRenderer and nested templates

2007-05-29 Thread Pádraic Brady
I posted the link to Matthew's previously posted Two-Step approach on  my blog 
along with the last Layout example a few days back. Here it is for those trying 
to find it:

http://framework.zend.com/wiki/display/ZFMLGEN/mail/27145
 
Pádraic Brady
http://blog.astrumfutura.com
http://www.patternsforphp.com


- Original Message 
From: Matthew Weier O'Phinney <[EMAIL PROTECTED]>
To: fw-general@lists.zend.com
Sent: Tuesday, May 29, 2007 5:23:51 PM
Subject: Re: [fw-general] ViewRenderer and nested templates

-- Kevin McArthur <[EMAIL PROTECTED]> wrote
(on Tuesday, 29 May 2007, 10:09 AM -0600):
> How do you tie in context-sensitive things like menu's or breadcrumbs?

I use a persistent view object, so typically I'll set variables in the
view that I then check against and/or use directly in the site template,
and ignore in the application template.

> - Original Message - 
> From: "Matthew Weier O'Phinney" <[EMAIL PROTECTED]>
> To: 
> Sent: Tuesday, May 29, 2007 9:53 AM
> Subject: Re: [fw-general] ViewRenderer and nested templates
> 
> 
> >-- Kevin McArthur <[EMAIL PROTECTED]> wrote
> >(on Tuesday, 29 May 2007, 09:43 AM -0600):
> >>Surely, nested templates will have some sort of built-in basic
> >>functionality. I dont know many PHP developers who use templates like
> >>they're a series of concatenated strings. It just doesn't jive with the
> >>nested nature of html.
> >>
> >>Most PHP apps follow a standard/shared layout approach; so whats the
> >>'framework' way of handling common elements now? render header, content,
> >>footer?
> >
> >I use the Two Step View pattern. My applications render content to the
> >response object (just the application content, none of the site
> >skeleton), and then in a dispatchLoopShutdown() plugin I pull the
> >response content and inject it into a sitewide template, and finally
> >inject that rendered content back into the response object. I've
> >provided a sample of such a plugin in the past on either the fw-mvc or
> >fw-general list.
> >
> >
> >>- Original Message - 
> >>From: "Rob Allen" <[EMAIL PROTECTED]>
> >>To: 
> >>Sent: Tuesday, May 29, 2007 2:09 AM
> >>Subject: Re: [fw-general] ViewRenderer and nested templates
> >>
> >>
> >>>Kevin McArthur wrote:
> Hi Guys,
> 
> I'm trying to upgrade several sites to 1.0 but my sites tend to use a
> main template (engine.tpl) plus a set of sub templates (actionName.tpl)
> (menu.tpl) etc... it seems fairly evident how to sub-render, but with
> outer most template always being the same file, how do you set this 
> with
> the view renderer's automatic actions to set the $view->content 
> variable
> to the actionName template automatically.
> 
> >>>
> >>>
> >>>Currently, I'm exploring extending ViewRender's renderScript() to do
> >>>something similar.
> >>>
> >>>My first attempt looks like this:
> >>>
> >>>class My_Controller_Action_Helper_ViewRenderer
> >>>extends Zend_Controller_Action_Helper_ViewRenderer
> >>>{
> >>>   public function renderScript($script, $name = null)
> >>>   {
> >>>   if (null === $name) {
> >>>   $name = $this->getResponseSegment();
> >>>   }
> >>>   $content = $this->view->render($script);
> >>>
> >>>   $this->view->content = $content;
> >>>
> >>>   $layoutTemplate = 'site.tpl.php';
> >>>   $this->getResponse()->appendBody(
> >>>   $this->view->render($layoutTemplate),
> >>>   $name
> >>>   );
> >>>
> >>>   $this->setNoRender();
> >>>   }
> >>>}
> >>>
> >>>
> >>>I also have:
> >>>
> >>>   $viewRenderer = new My_Controller_Action_Helper_ViewRenderer();
> >>>   $viewRenderer->setViewSuffix('tpl.php');
> >>>   Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
> >>>
> >>>in my bootstrap before I first instantiate the front controller, so that
> >>>my ViewRenderer is used.
> >>>
> >>>
> >>>
> >>>
> >>>Regards,
> >>>
> >>>Rob...
> >>>
> >>
> >
> >-- 
> >Matthew Weier O'Phinney
> >PHP Developer| [EMAIL PROTECTED]
> >Zend - The PHP Company   | http://www.zend.com/ 
> 

-- 
Matthew Weier O'Phinney
PHP Developer| [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/







   
Choose
 the right car based on your needs.  Check out Yahoo! Autos new Car Finder tool.
http://autos.yahoo.com/carfinder/

Re: [fw-general] ViewRenderer and nested templates

2007-05-29 Thread Matthew Weier O'Phinney
-- Kevin McArthur <[EMAIL PROTECTED]> wrote
(on Tuesday, 29 May 2007, 10:09 AM -0600):
> How do you tie in context-sensitive things like menu's or breadcrumbs?

I use a persistent view object, so typically I'll set variables in the
view that I then check against and/or use directly in the site template,
and ignore in the application template.

> - Original Message - 
> From: "Matthew Weier O'Phinney" <[EMAIL PROTECTED]>
> To: 
> Sent: Tuesday, May 29, 2007 9:53 AM
> Subject: Re: [fw-general] ViewRenderer and nested templates
> 
> 
> >-- Kevin McArthur <[EMAIL PROTECTED]> wrote
> >(on Tuesday, 29 May 2007, 09:43 AM -0600):
> >>Surely, nested templates will have some sort of built-in basic
> >>functionality. I dont know many PHP developers who use templates like
> >>they're a series of concatenated strings. It just doesn't jive with the
> >>nested nature of html.
> >>
> >>Most PHP apps follow a standard/shared layout approach; so whats the
> >>'framework' way of handling common elements now? render header, content,
> >>footer?
> >
> >I use the Two Step View pattern. My applications render content to the
> >response object (just the application content, none of the site
> >skeleton), and then in a dispatchLoopShutdown() plugin I pull the
> >response content and inject it into a sitewide template, and finally
> >inject that rendered content back into the response object. I've
> >provided a sample of such a plugin in the past on either the fw-mvc or
> >fw-general list.
> >
> >
> >>- Original Message - 
> >>From: "Rob Allen" <[EMAIL PROTECTED]>
> >>To: 
> >>Sent: Tuesday, May 29, 2007 2:09 AM
> >>Subject: Re: [fw-general] ViewRenderer and nested templates
> >>
> >>
> >>>Kevin McArthur wrote:
> Hi Guys,
> 
> I'm trying to upgrade several sites to 1.0 but my sites tend to use a
> main template (engine.tpl) plus a set of sub templates (actionName.tpl)
> (menu.tpl) etc... it seems fairly evident how to sub-render, but with
> outer most template always being the same file, how do you set this 
> with
> the view renderer's automatic actions to set the $view->content 
> variable
> to the actionName template automatically.
> 
> >>>
> >>>
> >>>Currently, I'm exploring extending ViewRender's renderScript() to do
> >>>something similar.
> >>>
> >>>My first attempt looks like this:
> >>>
> >>>class My_Controller_Action_Helper_ViewRenderer
> >>>extends Zend_Controller_Action_Helper_ViewRenderer
> >>>{
> >>>   public function renderScript($script, $name = null)
> >>>   {
> >>>   if (null === $name) {
> >>>   $name = $this->getResponseSegment();
> >>>   }
> >>>   $content = $this->view->render($script);
> >>>
> >>>   $this->view->content = $content;
> >>>
> >>>   $layoutTemplate = 'site.tpl.php';
> >>>   $this->getResponse()->appendBody(
> >>>   $this->view->render($layoutTemplate),
> >>>   $name
> >>>   );
> >>>
> >>>   $this->setNoRender();
> >>>   }
> >>>}
> >>>
> >>>
> >>>I also have:
> >>>
> >>>   $viewRenderer = new My_Controller_Action_Helper_ViewRenderer();
> >>>   $viewRenderer->setViewSuffix('tpl.php');
> >>>   Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
> >>>
> >>>in my bootstrap before I first instantiate the front controller, so that
> >>>my ViewRenderer is used.
> >>>
> >>>
> >>>
> >>>
> >>>Regards,
> >>>
> >>>Rob...
> >>>
> >>
> >
> >-- 
> >Matthew Weier O'Phinney
> >PHP Developer| [EMAIL PROTECTED]
> >Zend - The PHP Company   | http://www.zend.com/ 
> 

-- 
Matthew Weier O'Phinney
PHP Developer| [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/


Re: [fw-general] ViewRenderer and nested templates

2007-05-29 Thread Kevin McArthur

How do you tie in context-sensitive things like menu's or breadcrumbs?

- Original Message - 
From: "Matthew Weier O'Phinney" <[EMAIL PROTECTED]>

To: 
Sent: Tuesday, May 29, 2007 9:53 AM
Subject: Re: [fw-general] ViewRenderer and nested templates



-- Kevin McArthur <[EMAIL PROTECTED]> wrote
(on Tuesday, 29 May 2007, 09:43 AM -0600):

Surely, nested templates will have some sort of built-in basic
functionality. I dont know many PHP developers who use templates like
they're a series of concatenated strings. It just doesn't jive with the
nested nature of html.

Most PHP apps follow a standard/shared layout approach; so whats the
'framework' way of handling common elements now? render header, content,
footer?


I use the Two Step View pattern. My applications render content to the
response object (just the application content, none of the site
skeleton), and then in a dispatchLoopShutdown() plugin I pull the
response content and inject it into a sitewide template, and finally
inject that rendered content back into the response object. I've
provided a sample of such a plugin in the past on either the fw-mvc or
fw-general list.


- Original Message - 
From: "Rob Allen" <[EMAIL PROTECTED]>

To: 
Sent: Tuesday, May 29, 2007 2:09 AM
Subject: Re: [fw-general] ViewRenderer and nested templates


>Kevin McArthur wrote:
>>Hi Guys,
>>
>>I'm trying to upgrade several sites to 1.0 but my sites tend to use a
>>main template (engine.tpl) plus a set of sub templates (actionName.tpl)
>>(menu.tpl) etc... it seems fairly evident how to sub-render, but with
>>outer most template always being the same file, how do you set this 
>>with
>>the view renderer's automatic actions to set the $view->content 
>>variable

>>to the actionName template automatically.
>>
>
>
>Currently, I'm exploring extending ViewRender's renderScript() to do
>something similar.
>
>My first attempt looks like this:
>
>class My_Controller_Action_Helper_ViewRenderer
>extends Zend_Controller_Action_Helper_ViewRenderer
>{
>   public function renderScript($script, $name = null)
>   {
>   if (null === $name) {
>   $name = $this->getResponseSegment();
>   }
>   $content = $this->view->render($script);
>
>   $this->view->content = $content;
>
>   $layoutTemplate = 'site.tpl.php';
>   $this->getResponse()->appendBody(
>   $this->view->render($layoutTemplate),
>   $name
>   );
>
>   $this->setNoRender();
>   }
>}
>
>
>I also have:
>
>   $viewRenderer = new My_Controller_Action_Helper_ViewRenderer();
>   $viewRenderer->setViewSuffix('tpl.php');
>   Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
>
>in my bootstrap before I first instantiate the front controller, so that
>my ViewRenderer is used.
>
>
>
>
>Regards,
>
>Rob...
>



--
Matthew Weier O'Phinney
PHP Developer| [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/ 




Re: [fw-general] ViewRenderer and nested templates

2007-05-29 Thread James Andrews

The other day I was pointed at

http://akrabat.com/zend-framework-tutorial/

Look on page 9.  It seems to talk about rendering header and footers,  
but I would think that you can also render other common aspects using  
this method as well.


James


On May 29, 2007, at 11:43 AM, Kevin McArthur wrote:

Surely, nested templates will have some sort of built-in basic  
functionality. I dont know many PHP developers who use templates  
like they're a series of concatenated strings. It just doesn't jive  
with the nested nature of html.


Most PHP apps follow a standard/shared layout approach; so whats  
the 'framework' way of handling common elements now? render header,  
content, footer?


Kevin
- Original Message - From: "Rob Allen" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, May 29, 2007 2:09 AM
Subject: Re: [fw-general] ViewRenderer and nested templates



Kevin McArthur wrote:

Hi Guys,

I'm trying to upgrade several sites to 1.0 but my sites tend to  
use a
main template (engine.tpl) plus a set of sub templates  
(actionName.tpl)
(menu.tpl) etc... it seems fairly evident how to sub-render, but  
with
outer most template always being the same file, how do you set  
this with
the view renderer's automatic actions to set the $view->content  
variable

to the actionName template automatically.




Currently, I'm exploring extending ViewRender's renderScript() to do
something similar.

My first attempt looks like this:

class My_Controller_Action_Helper_ViewRenderer
extends Zend_Controller_Action_Helper_ViewRenderer
{
   public function renderScript($script, $name = null)
   {
   if (null === $name) {
   $name = $this->getResponseSegment();
   }
   $content = $this->view->render($script);

   $this->view->content = $content;

   $layoutTemplate = 'site.tpl.php';
   $this->getResponse()->appendBody(
   $this->view->render($layoutTemplate),
   $name
   );

   $this->setNoRender();
   }
}


I also have:

   $viewRenderer = new My_Controller_Action_Helper_ViewRenderer();
   $viewRenderer->setViewSuffix('tpl.php');
   Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);

in my bootstrap before I first instantiate the front controller,  
so that

my ViewRenderer is used.




Regards,

Rob...






Re: [fw-general] ViewRenderer and nested templates

2007-05-29 Thread Matthew Weier O'Phinney
-- Kevin McArthur <[EMAIL PROTECTED]> wrote
(on Tuesday, 29 May 2007, 09:43 AM -0600):
> Surely, nested templates will have some sort of built-in basic 
> functionality. I dont know many PHP developers who use templates like 
> they're a series of concatenated strings. It just doesn't jive with the 
> nested nature of html.
> 
> Most PHP apps follow a standard/shared layout approach; so whats the 
> 'framework' way of handling common elements now? render header, content, 
> footer?

I use the Two Step View pattern. My applications render content to the
response object (just the application content, none of the site
skeleton), and then in a dispatchLoopShutdown() plugin I pull the
response content and inject it into a sitewide template, and finally
inject that rendered content back into the response object. I've
provided a sample of such a plugin in the past on either the fw-mvc or
fw-general list.


> - Original Message - 
> From: "Rob Allen" <[EMAIL PROTECTED]>
> To: 
> Sent: Tuesday, May 29, 2007 2:09 AM
> Subject: Re: [fw-general] ViewRenderer and nested templates
> 
> 
> >Kevin McArthur wrote:
> >>Hi Guys,
> >>
> >>I'm trying to upgrade several sites to 1.0 but my sites tend to use a
> >>main template (engine.tpl) plus a set of sub templates (actionName.tpl)
> >>(menu.tpl) etc... it seems fairly evident how to sub-render, but with
> >>outer most template always being the same file, how do you set this with
> >>the view renderer's automatic actions to set the $view->content variable
> >>to the actionName template automatically.
> >>
> >
> >
> >Currently, I'm exploring extending ViewRender's renderScript() to do
> >something similar.
> >
> >My first attempt looks like this:
> >
> >class My_Controller_Action_Helper_ViewRenderer
> >extends Zend_Controller_Action_Helper_ViewRenderer
> >{
> >   public function renderScript($script, $name = null)
> >   {
> >   if (null === $name) {
> >   $name = $this->getResponseSegment();
> >   }
> >   $content = $this->view->render($script);
> >
> >   $this->view->content = $content;
> >
> >   $layoutTemplate = 'site.tpl.php';
> >   $this->getResponse()->appendBody(
> >   $this->view->render($layoutTemplate),
> >   $name
> >   );
> >
> >   $this->setNoRender();
> >   }
> >}
> >
> >
> >I also have:
> >
> >   $viewRenderer = new My_Controller_Action_Helper_ViewRenderer();
> >   $viewRenderer->setViewSuffix('tpl.php');
> >   Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);
> >
> >in my bootstrap before I first instantiate the front controller, so that
> >my ViewRenderer is used.
> >
> >
> >
> >
> >Regards,
> >
> >Rob...
> >
> 

-- 
Matthew Weier O'Phinney
PHP Developer| [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/


Re: [fw-general] ViewRenderer and nested templates

2007-05-29 Thread Kevin McArthur
Surely, nested templates will have some sort of built-in basic 
functionality. I dont know many PHP developers who use templates like 
they're a series of concatenated strings. It just doesn't jive with the 
nested nature of html.


Most PHP apps follow a standard/shared layout approach; so whats the 
'framework' way of handling common elements now? render header, content, 
footer?


Kevin
- Original Message - 
From: "Rob Allen" <[EMAIL PROTECTED]>

To: 
Sent: Tuesday, May 29, 2007 2:09 AM
Subject: Re: [fw-general] ViewRenderer and nested templates



Kevin McArthur wrote:

Hi Guys,

I'm trying to upgrade several sites to 1.0 but my sites tend to use a
main template (engine.tpl) plus a set of sub templates (actionName.tpl)
(menu.tpl) etc... it seems fairly evident how to sub-render, but with
outer most template always being the same file, how do you set this with
the view renderer's automatic actions to set the $view->content variable
to the actionName template automatically.




Currently, I'm exploring extending ViewRender's renderScript() to do
something similar.

My first attempt looks like this:

class My_Controller_Action_Helper_ViewRenderer
extends Zend_Controller_Action_Helper_ViewRenderer
{
   public function renderScript($script, $name = null)
   {
   if (null === $name) {
   $name = $this->getResponseSegment();
   }
   $content = $this->view->render($script);

   $this->view->content = $content;

   $layoutTemplate = 'site.tpl.php';
   $this->getResponse()->appendBody(
   $this->view->render($layoutTemplate),
   $name
   );

   $this->setNoRender();
   }
}


I also have:

   $viewRenderer = new My_Controller_Action_Helper_ViewRenderer();
   $viewRenderer->setViewSuffix('tpl.php');
   Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);

in my bootstrap before I first instantiate the front controller, so that
my ViewRenderer is used.




Regards,

Rob...





Re: [fw-general] pdf manual

2007-05-29 Thread vanne

There is no official PDF documantation (yet).
While waiting for that I generated a new PDF myself (1.0.0rc1 core docs)

http://www.nabble.com/file/p10853346/zf-1.0.0rc1.pdf zf-1.0.0rc1.pdf 



Marcelo Araujo wrote:
> 
> Hello,
> 
> Is there a pdf manual for the zend framework available at the official
> website?
> 
> Regards,
> 
> --Marcelo
> 
> 

-- 
View this message in context: 
http://www.nabble.com/pdf-manual-tf3569487s16154.html#a10853346
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend_Validate

2007-05-29 Thread Pádraic Brady
Hi Alex,

You're not the only guy with an accented character in their name ;).

Your problem is not a bug within the Zend Framework (except that it's overrun 
with Anglic overlords ;)), rather it's that you are using Validator rules 
unsafe for accented/multibyte characters without some changes. Personally I 
wish someone would put a warning sticker on those String rules since they are 
not safe to use for internationalised applications and should be avoided. It's 
a weak spot in the framework since strlen() in PHP does not in fact count 
characters (it counts bytes!).

Firstly, Zend_Validate_Alpha places a call to ctype_alpha(). This function is 
likely not reading accented characters as being valid alphabetic characters by 
default. This is because your currently set Locale doesn't understand them or 
they are encoded in a non-default character set. For example, an accented 
character encoded in UTF-8, passed into ctype_alpha() with the correct locale 
would still fail until the input string is converted to something like 
ISO-8849-1 (or 15 these days). Check how many bytes any accented character in 
UTF-8 contains ;).

At this stage I usually say screw ctype_alpha() and use something where the 
input is more comparable - like preg_match(). So long as the file containing 
the character range is stored as UTF-8 it works perfectly well. So in your case 
you can write a new Validator using something like:

public function isValid($value)
{
$this->_messages = array();

$valueString = (string) $value;

/**
 * German Alpha range requiring a minimum length of 1 (empty string 
will fail)
 * NB: This PHP file must be saved as UTF-8 only.
 */
if (!preg_match("/^[a-zA-ZäÄéÉÖöÜüß]{1,}$/", $valueString)) {
$this->_messages[] = "'$valueString' has not only Deutsche 
alphabetic characters";
return false;
}

return true;
}

The file must be stored as UTF-8 (not any ISO-8849-1 to 15). Also any input 
being validated must likewise be UTF-8 (or validated as UTF-8), i.e. web pages 
should be server with this header:
Content-Type: text/html;charset=UTF-8 or an equivalent meta tag in the HTML 
head section so forms are sent as UTF-8. You can also add the 
charset-accept="utf-8" attribute to your forms (in case some browsers need the 
extra hint).

Alternatively the character range can be specified using the PCRE \x{} 
format, where  is the Unicode "code point" (hexidecimal) for that 
character. This one needs the \u flag at the end of the pattern to enable 
PCRE's unicode support. This is probably the better solution if possible - the 
PHP file encoding then becomes less essential since multibyte characters are 
now represented as ranges/points of Unicode in terms of hexidecimal.

Secondly, the StringLength validator uses strlen(). This counts bytes, not 
characters. If you write a string like "groß", you have 4 characters. But 
strlen() will tell you there are 5 bytes (so standard strlen is useless for 
counting characters including anything with accents under Unicode). If you have 
such characters (including Unicode accented characters) then you need to use 
either mbstring or iconv to write a new validator. For example, here's an 
extract of one based on mbstring (assuming UTF-8 settings).

// Zps_Validate_StringLength extends Zend_Validate_StringLength

public function isValid($value)
{
$this->_messages = array();
$valueString = (string) $value;
/**
 * Can omit the encoding reference if you prefer setting it in php.ini 
or using
 * mb_internal_encoding() in the bootstrap.
 */
$length = mb_strlen($valueString, 'UTF-8');
if ($length < $this->_min) {
$this->_messages[] = "'$valueString' is less than $this->_min 
characters long";
}
if (null !== $this->_max && $this->_max < $length) {
$this->_messages[] = "'$valueString' is greater than $this->_max 
characters long";
}
if (count($this->_messages)) {
return false;
} else {
return true;
}
}

If you add in these two validator changes, apply UTF-8 consistently (save all 
files as UTF-8, output HTML with the UTF-8 charset, and use the utf8_general_ci 
collation for MySQL (or it's equivelant for other DBMSs) then you're almost 
there. Just make sure ALL string manipulation/counting functions are replaced 
with their mbstring or iconv equivelants and that mbstring has UTF-8 set as 
it's internal encoding.

Long post, eh? :) Hope it helps some.
 
Pádraic Brady
http://blog.astrumfutura.com
http://www.patternsforphp.com


- Original Message 
From: Alexander Jaeger <[EMAIL PROTECTED]>
To: Darby Felton <[EMAIL PROTECTED]>
Cc: Guillaume Millet <[EMAIL PROTECTED]>; Zend Framework General 

Sent: Tuesday, May 29, 2007 9:44:21 AM
Subject: Re: [fw-general] Zend_Validate

Hello List,

i waited eagerly t

[fw-general] Zend_Service_Amazon problem

2007-05-29 Thread Cristian Bichis

Hello,

I started using Zend_Service_Amazon.

But i got problems into getting any result from query

   require_once 'Zend/Service/Amazon/Query.php';
   $query = new Zend_Service_Amazon_Query("1"); 
//i hided my API KEY

   $query->category('Books')->Keywords('php');
   $this->view->books = $query->search();

result of $query->search() is always null, no resultset or item returned.

--
Cristian Bichis
www.zftutorials.com | www.zfforums.com | www.zflinks.com | www.zftalk.com




[fw-general] Product using ZF0.9.3

2007-05-29 Thread Jeff Bailey

Heya!  I'm not sure if this is useful at all, but we've just redone
http://www.connectuu.com/ using the Zend Framework.  If folks are interested
in seeing what we've done, you can use bzr to check out the source from
http://bazaar.launchpad.net/~connectuu/groupus/trunk or I have a tarball at
http://www.raspberryginger.com/jbailey/groupus-1032.tar.gz

We're using a number of components of Zend:
Zend_Date, Zend_Config, Zend_Locale, Zend_Auth, Zend_Mail, Zend_Registry,
Zend_Db, Zend_Debug, Zend_Exception, Zend_Loader, Zend_View, Zend_Session

A number of the classes are extended to provide extra functionality, and the
table classes are all a close approximation of an active record.

I think the only parts of Zend that we wanted to use but weren't able to
bend to our needs were Zend_Acl, and Zend_Cache.  I was impressed that we
did so well with it. =)

Thanks!  It made alot of things *much* better!

Tks,
Jeff Bailey

--
Jeff Bailey - http://www.raspberryginger.com/jbailey/


Re: [fw-general] Controller MVC Questions.

2007-05-29 Thread Johannes Schill

This tutorial might help you out:
http://akrabat.com/zend-framework-tutorial/

On 5/27/07, James Andrews <[EMAIL PROTECTED]> wrote:


I'm reading the manual on MVC and playing around a little to see how
it all works, and one thing I am failing to figure out how to do is
separation of common items from pages, such as headers, and footers,
and side bars.  Is it possible?  If so can someone point me in the
right direction, and if it is not why? I would expect that separation
like that is so common in sites that it should be.

Also,

Say I want to have multiple views, working from the same controllers,
I see that the "Zend_View_Interface"  has a setScriptPath method, how
would you access this prior to displaying so that you can dynamically
choose new view scripts but keep the same controllers?

Thanks,
James



Re: [fw-general] ViewRenderer and nested templates

2007-05-29 Thread Matthew Weier O'Phinney
-- Sebastian Poręba <[EMAIL PROTECTED]> wrote
(on Tuesday, 29 May 2007, 08:55 AM +0200):
> 2007/5/29, Kevin McArthur <[EMAIL PROTECTED]>:
> > I'm trying to upgrade several sites to 1.0 but my sites tend to use a main
> > template (engine.tpl) plus a set of sub templates (actionName.tpl)
> > (menu.tpl) etc... it seems fairly evident how to sub-render, but with outer
> > most template always being the same file, how do you set this with the view
> > renderer's automatic actions to set the $view->content variable to the
> > actionName template automatically.
> 
> as far as I remember, there was a proposal of advanced templates
> management, but not ready yet.  For now, You can still render Your
> templates manually.
> Adding:
> 
> function init()
> {
> $this->initView();

Just a note: When using the ViewRenderer, the above line is never
necessary.

-- 
Matthew Weier O'Phinney
PHP Developer| [EMAIL PROTECTED]
Zend - The PHP Company   | http://www.zend.com/


Re: [fw-general] Zend_Validate

2007-05-29 Thread Andries Seutens


Hello Alexander,

This issue is slightly more complicated, and so far, we have not come to 
a consensus. You might want to check out the following Jira issue as well:


http://framework.zend.com/issues/browse/ZF-1248

I have a proof of concept available here:
http://andries.systray.be/Alpha.phps

However, the problem is that this does not support ALL locales, but only 
the given locale


Best,


Andries Seutens
http://andries.systray.be

Alexander Jaeger schreef:

Hello List,

i waited eagerly to see 1.0 RC1, and here it is ;)

I am still looking for a solution to my Umlauts problem,

i tried using the mbstring settings within php,

[mbstring]
mbstring.language = neutral
mbstring.http_input = iso-88589
mbstring.http_output = iso-8859-1
mbstring.internal_encoding = iso-8859-1
mbstring.encoding_translation = Off

I changed it a couple of times using german as language, and UTF-8 
encoding, also http_input as auto,

no success on that matter.

Then I red the new post @ http://framework.zend.com/issues/browse/ZF-269

Could anyone provide me with an example how to use the

Zend_Filter_Input::getRaw()

for this code:

$var1 = "jäger";

$filter_StripTags->filter($var1);

$alpha = new Zend_Validate();
$alpha->addValidator(new Zend_Validate_StringLength(1, 64));
$alpha->addValidator(new Zend_Validate_Alpha());

if ($alpha->isValid($var1) {
 echo $var1 . 'is Valid';
} else {
 echo $var1 . 'is not Valid';
}


I guess i am just being stupid... i have no idea how i get that workin.

Help greatly appreciated.

Alex



Darby Felton schrieb:

Hi Alex,

The issue you experience is related to ZF-269:

http://framework.zend.com/issues/browse/ZF-269

Thanks for the report!

Best regards,
Darby

Alexander Jäger wrote:
 

Sorry to bother,

I try to validate a variable cotaining my lastname "jäger".

$alpha = new Zend_Validate();
$alpha->addValidator(new Zend_Validate_StringLength(1, 64));
$alpha->addValidator(new Zend_Validate_Alpha());

$var1 = "jäger"

if ($alpha->isValid($var1) {
  echo $var1 . 'is Valid';
} else {
  echo $var1 . 'is not Valid';
}

// prints: jäger is not Valid

if itry the same with $var1='alexander' it is valid.

I try to get the locales workin and they work using the
setlocale(LC_ALL,"de_DE.UTF-8");

Also I tries using Zend_Locale, but still no improvement.

Can any one point me to an direction to seek a solution.

Please help ;)

Alex


Alexander Jäger schrieb:
   

Hello Guillaume,

thats a simple solution

somtimes i don´t see the forest, because of all the trees.

thanks.

Alex

Guillaume Millet schrieb:
 

Hi Alex,

If you're trying to validate data like your name using
Zend_Validate_Alpha, you may want to try and set PHP's locale to
German using setlocale() if it's not already done.

Regards,

Guillaume

Lx a écrit :

   

Simon R Jones schrieb:

 

Hi Alexander,

Some domain names have been set up to accept international
characters, DE domains being one of them. More info on how to use
it is on
http://framework.zend.com/manual/en/zend.validate.validating_hostnames.html 




However, there have been reports of it not working reliably for
some people. This is likely down to character encoding issues.
This has been reported in ZF-1083 (
http://framework.zend.com/issues/browse/ZF-1083 ) and I'm looking
into why this isn't working for some people. I had uploaded a test
script to that page but the upload process messed up the character
encoding so that doesn't work.

I plan to write up some tests and host them myself to help resolve
this. I'll send you a link once I've done this.

best wishes,
Simon

  

Hi Simon,

thanks very much for the fast reply,

i actually searched for a solution to validate a string containing
umlaute such as a name as mine "Jäger" ;)

But the example of the domains will help to find a solution to my
umlaut problem.

Again thank you,

Alex

P.S. I really love your project, thanks for the effort to build such
an perfect framework
  







--
Andries Seutens
http://andries.systray.be

Gecontroleerd op virussen door de JOJO Secure Gateway.


Re: [fw-general] Zend_Validate

2007-05-29 Thread Alexander Jaeger

Hello List,

i waited eagerly to see 1.0 RC1, and here it is ;)

I am still looking for a solution to my Umlauts problem,

i tried using the mbstring settings within php,

[mbstring]
mbstring.language = neutral
mbstring.http_input = iso-88589
mbstring.http_output = iso-8859-1
mbstring.internal_encoding = iso-8859-1
mbstring.encoding_translation = Off

I changed it a couple of times using german as language, and UTF-8 
encoding, also http_input as auto,

no success on that matter.

Then I red the new post @ http://framework.zend.com/issues/browse/ZF-269

Could anyone provide me with an example how to use the

Zend_Filter_Input::getRaw()

for this code:

$var1 = "jäger";

$filter_StripTags->filter($var1);

$alpha = new Zend_Validate();
$alpha->addValidator(new Zend_Validate_StringLength(1, 64));
$alpha->addValidator(new Zend_Validate_Alpha());

if ($alpha->isValid($var1) {
 echo $var1 . 'is Valid';
} else {
 echo $var1 . 'is not Valid';
}


I guess i am just being stupid... i have no idea how i get that workin.

Help greatly appreciated.

Alex



Darby Felton schrieb:

Hi Alex,

The issue you experience is related to ZF-269:

http://framework.zend.com/issues/browse/ZF-269

Thanks for the report!

Best regards,
Darby

Alexander Jäger wrote:
  

Sorry to bother,

I try to validate a variable cotaining my lastname "jäger".

$alpha = new Zend_Validate();
$alpha->addValidator(new Zend_Validate_StringLength(1, 64));
$alpha->addValidator(new Zend_Validate_Alpha());

$var1 = "jäger"

if ($alpha->isValid($var1) {
  echo $var1 . 'is Valid';
} else {
  echo $var1 . 'is not Valid';
}

// prints: jäger is not Valid

if itry the same with $var1='alexander' it is valid.

I try to get the locales workin and they work using the
setlocale(LC_ALL,"de_DE.UTF-8");

Also I tries using Zend_Locale, but still no improvement.

Can any one point me to an direction to seek a solution.

Please help ;)

Alex


Alexander Jäger schrieb:


Hello Guillaume,

thats a simple solution

somtimes i don´t see the forest, because of all the trees.

thanks.

Alex

Guillaume Millet schrieb:
  

Hi Alex,

If you're trying to validate data like your name using
Zend_Validate_Alpha, you may want to try and set PHP's locale to
German using setlocale() if it's not already done.

Regards,

Guillaume

Lx a écrit :



Simon R Jones schrieb:

  

Hi Alexander,

Some domain names have been set up to accept international
characters, DE domains being one of them. More info on how to use
it is on
http://framework.zend.com/manual/en/zend.validate.validating_hostnames.html


However, there have been reports of it not working reliably for
some people. This is likely down to character encoding issues.
This has been reported in ZF-1083 (
http://framework.zend.com/issues/browse/ZF-1083 ) and I'm looking
into why this isn't working for some people. I had uploaded a test
script to that page but the upload process messed up the character
encoding so that doesn't work.

I plan to write up some tests and host them myself to help resolve
this. I'll send you a link once I've done this.

best wishes,
Simon

  


Hi Simon,

thanks very much for the fast reply,

i actually searched for a solution to validate a string containing
umlaute such as a name as mine "Jäger" ;)

But the example of the domains will help to find a solution to my
umlaut problem.

Again thank you,

Alex

P.S. I really love your project, thanks for the effort to build such
an perfect framework
  





Re: [fw-general] ViewRenderer and nested templates

2007-05-29 Thread Rob Allen
Kevin McArthur wrote:
> Hi Guys,
>  
> I'm trying to upgrade several sites to 1.0 but my sites tend to use a
> main template (engine.tpl) plus a set of sub templates (actionName.tpl)
> (menu.tpl) etc... it seems fairly evident how to sub-render, but with
> outer most template always being the same file, how do you set this with
> the view renderer's automatic actions to set the $view->content variable
> to the actionName template automatically.
>  


Currently, I'm exploring extending ViewRender's renderScript() to do
something similar.

My first attempt looks like this:

class My_Controller_Action_Helper_ViewRenderer
extends Zend_Controller_Action_Helper_ViewRenderer
{
public function renderScript($script, $name = null)
{
if (null === $name) {
$name = $this->getResponseSegment();
}
$content = $this->view->render($script);

$this->view->content = $content;

$layoutTemplate = 'site.tpl.php';
$this->getResponse()->appendBody(
$this->view->render($layoutTemplate),
$name
);

$this->setNoRender();
}
}


I also have:

$viewRenderer = new My_Controller_Action_Helper_ViewRenderer();
$viewRenderer->setViewSuffix('tpl.php');
Zend_Controller_Action_HelperBroker::addHelper($viewRenderer);

in my bootstrap before I first instantiate the front controller, so that
my ViewRenderer is used.




Regards,

Rob...