[fw-general] Zend_Cache lifetime problems

2008-05-21 Thread Ralf Kramer ZF
Hi, I am running into some trouble with Zend_Cache. The problem is that the cache gets cleaned every now and then and I dont know why. Actually the cache should never get cleaned. Here is the code that I use to initialize the cache: $frontendOptions = array( 'lifetime' => null, 'a

Re: [fw-general] Input Validation and Error reporting.

2007-10-25 Thread Ralf Kramer
Am Donnerstag, den 25.10.2007, 11:06 -0700 schrieb redphantm: > I have also seen discussions regarding > the model doing the validation. Should the model contain a function > that > uses Zend_Validate and returns the resulting object? My opinion to this topic is a very clear "YES", for two reason

Re: [fw-general] PhpUnit Test

2007-10-23 Thread Ralf Kramer
Am Dienstag, den 23.10.2007, 23:23 +0200 schrieb Christer Edvartsen: > http://www.phpunit.de/ If you like to use tests also for model classes that provide database operations, you might checkout release 3.2 of phpunit, which contains a database package. It isnt released yet, but it works nice so f

Re: [fw-general] Writing ActionHelper: Undefined property: $_actionController

2007-10-23 Thread Ralf Kramer
line is the most important of them, as it sets the flag that > the dispatch loop looks at in determining whether or not to iterate > again. > > > Am Sonntag, den 21.10.2007, 21:38 -0500 schrieb Ralph Schindler: > > > Ralf Kramer wrote: > > > > &g

Re: [fw-general] Writing ActionHelper: Undefined property: $_actionController

2007-10-21 Thread Ralf Kramer
Schindler: > Ralf Kramer wrote: > > > > > public function init() > > { > > Zend_Controller_Action_HelperBroker::addPrefix('Quasda_User_Helpers'); > > $helper = Zend_Controller_Action_HelperBroker::getHelper("User_Helper"); > > $

[fw-general] Writing ActionHelper: Undefined property: $_actionController

2007-10-21 Thread Ralf Kramer
Hi, I try to write an ActionHelper but I get stuck. The problem is that I can't access $this->_actionController within my Helper class. It complains. Notice: Undefined property: IndexController::$_actionController in /www/quasda/library/Zend/Controller/Action/HelperBroker.php on line 203 The hel

RE: [fw-general] ZF performance advice

2007-10-18 Thread Ralf Kramer
Am Mittwoch, den 17.10.2007, 23:26 -0700 schrieb Andi Gutmans: > There's no chance you'll even be close to the ridiculously slow > performance you are getting now and you may even find that your > optimizations (with the right config) will give you much less bang for > the buck. On my development

Re: [fw-general] Adding params to the Request

2007-09-29 Thread Ralf Kramer
Am Donnerstag, den 27.09.2007, 15:25 -0500 schrieb Ralph Schindler: > Actually, I did find that Rowset->toArray() does indeed return a > reference to a protected member of the rowset object instead of an > array. I marked that as a bug for rowset. > > http://framework.zend.com/issues/browse/ZF-18

Re: [fw-general] [solved] Adding params to the Request

2007-09-26 Thread Ralf Kramer
I deleted one line accidentally. $user = $this->User->find( $user_id ); $user = $user->current(); $this->getRequest()->setParams($user->toArray()); Best regards /Ralf

[fw-general] Adding params to the Request

2007-09-26 Thread Ralf Kramer
Hi, I'd like to inject the results of a DB operation to as params to the request. This happens within my controller. $user = $this->User->find( $user_id ); $this->getRequest()->setParams($user->toArray()); Now I'd like to gain access to this array within a view helper by: $value = $this->reques

[fw-general] Customizing messages of Zend_Validate_EmailAddress

2007-09-23 Thread Ralf Kramer
Hi, I tried to customize the message of Zend_Validate_EmailAddress, it works quite well, but I cant translate the messages that are added by Zend_Validate_Hostname in my $validators array. Sample: $validators = array( 'user_email' => array( 'EmailAddress', 'messages' => arr

Re: [fw-general] Zend Framework Web Application (best practices, structure, skeleton)

2007-09-21 Thread Ralf Kramer
> It would be nice to have a "Best practises" page on the Wiki and also a > basic but powerful "skeleton" demo capable of handling large web > applications. > I feel the Zend Framework would benefit from a such 'one-stop-shop' for new > developers who would like to use it as their framework of ch

Re: [fw-general] Using a complete HTML Template

2007-09-20 Thread Ralf Kramer
Thanks a lot to all for the comprehensive information in this issue -and for your patience ;) > The Zend_Layout methodology has been decided to be used in ZF 1.1 so I > can point you to the soon-to-be-official approach offered by Ralph > Schindler. This is a clear statement. Thus, I'll use Zend_L

[fw-general] Using a complete HTML Template

2007-09-19 Thread Ralf Kramer
Hi, as I understood the common process of template rendering it works in this manner: The MVC component determines (somehow), based on the route, which view script is supposed to be rendered. This view script will have such a structure which renders a valid HTML document: render('layouts/__heade

Re: [fw-general] Multiple Error Controllers

2007-09-13 Thread Ralf Kramer
Thnx Matthew, the plugin works fine. Best regards /Ralf > If you want to have it dynamically change per-action, the easiest way > would be to create a plugin that runs a preDispatch(); it would look > something like this: > > class OverrideErrorModule extends Zend_Controller_Plugin_Abstract

[fw-general] Multiple Error Controllers

2007-09-12 Thread Ralf Kramer
now that I can change the default forward to ErrorController::errorAction() by calling Zend_Controller_Plugin_ErrorHandler::setErrorHandlerModule() but this alone wont help. How can I assign the ErrorHandler dynamically accordingly to the currently routed module? What is best practice in this case. Any help and hints are welcome. Best regards /Ralf Kramer