[fw-general] Re: Zend_Log and php errors

2012-09-12 Thread Marco Pivetta
Nope, you can only handle catchable errors. Marco Pivetta http://twitter.com/Ocramius http://marco-pivetta.com On 12 September 2012 06:08, kirens...@yahoo.com [via Zend Framework Community] ml-node+s634137n4656794...@n4.nabble.com wrote: Hi I am trying to log all the errors in my web

Re: [fw-general] ZF2: use paginator with own entities

2012-09-12 Thread Ralf Eggert
Hi Matthew, Basically, you need to use the HydratingResultSet with the DbSelect paginator, and pass it the hydrator and a prototype object that's of the type you want to use. I somehow missed the HydratingResultSet and only found the ResultSet. Works like a charme. Thanks and best regards,

Re: [fw-general] ZF2: use paginator with own entities

2012-09-12 Thread Ralf Eggert
Hi, I still have another problem with the pagination control view script. In my /module/User/view/user/admin/index.phtml I use this code: ?php echo $this-paginationControl($this-userlist, 'Sliding', 'pagination/sliding', array('route' = 'user/page')); ? The pagination control view script lies

Re: [fw-general] ZF2: use paginator with own entities

2012-09-12 Thread Matthew Weier O'Phinney
-- Ralf Eggert r.egg...@travello.de wrote (on Wednesday, 12 September 2012, 02:31 PM +0200): I still have another problem with the pagination control view script. In my /module/User/view/user/admin/index.phtml I use this code: ?php echo $this-paginationControl($this-userlist, 'Sliding',

Re: [fw-general] Check ACL on routing

2012-09-12 Thread Ralph Schindler
You effectively have 2 options: First, and I am sure least favorite option from a framework perspective: Put your acl check in an onDispatch() method inside of the routed controller (that means at least a controller was dispatched). Inside of this method, you could do whatever check you

Re: [fw-general] ZF2: use paginator with own entities

2012-09-12 Thread Ralf Eggert
Hi Matthew, That _should_ work -- we do exactly this on the ZF website (though with template_path_stack, but it's the same idea). The only thing I can think of is that the module is not telling the MVC about its config, or that the view_manager config is nested when it shouldn't be. *

Re: [fw-general] ZF2: use paginator with own entities

2012-09-12 Thread Ralf Eggert
Hi again, fixed the issue. I created a mailer service which uses Zend\View to render email templates. This mailer service created a new TemplateMapResolver instance with a new template map just for email templates. This overwrites the proper template map and lets the pagination control scripts to