[fw-general] $e-getRouteMatch() is NULL !!

2012-08-06 Thread sina miandashti
hi im wondering why this returned null in my onBootstrap method in module.php $e-getRouteMatch(); i want to get requested controller and action in module.php

Re: [fw-general] $e-getRouteMatch() is NULL !!

2012-08-06 Thread Marco Pivetta
You need to do that after routing. You can attach an event listener to your application, listening to `\Zend\Mvc\MvcEvent::EVENT_ROUTE` with low priority (so it happens after routing). Then you should be able to access a RouteMatch instance. It may be null anyway if nothing has been matched. To

Re: [fw-general] $e-getRouteMatch() is NULL !!

2012-08-06 Thread Jurian Sluiman
2012/8/6 sina miandashti s...@teamatec.com hi im wondering why this returned null in my onBootstrap method in module.php $e-getRouteMatch(); i want to get requested controller and action in module.php Hi Sine, The onBootstrap listener listens to the bootstrap event. That is a part

Re: [fw-general] $e-getRouteMatch() is NULL !!

2012-08-06 Thread sina miandashti
thanks guys but how can i access that $action outside that function($e) i want to assign it to viewmodel

Re: [fw-general] $e-getRouteMatch() is NULL !!

2012-08-06 Thread sina miandashti
ok fixed by this : $em-attach(MvcEvent::EVENT_ROUTE, function($e) { $routeMatch = $e-getRouteMatch(); $viewModel = $e-getViewModel(); $viewModel-action = $routeMatch-getParam('action'); }); thankkss On Mon, Aug 6, 2012 at 1:09 PM, Marco Pivetta

Re: [fw-general] User Guide with 2.0.0RC2 - white page

2012-08-06 Thread Matthew Weier O'Phinney
-- Gerry - bullfrogbl...@live.com wrote (on Saturday, 04 August 2012, 07:49 PM +0100): Is there any way for the docs to better highlight new code blocks? The problem with the above was that 2 code blocks are added but they're seperated by an existing one. I'm open to suggestions. The problem

Re: [fw-general] User Guide with 2.0.0RC2 - white page

2012-08-06 Thread Ralf Eggert
Hi Matthew, I'm open to suggestions. The problem currently is that if you're in a code-block in the docs, you can't apply other markup. (This was true of DocBook as well). I tried to highlight such lines with comments, but I'm sure I missed a few -- and I'm not positive it's the best way to

Re: [fw-general] [ZF2 2.0.0rc2] Pagination is still broken.

2012-08-06 Thread Matthew Weier O'Phinney
-- cmple roman.vidya...@gmail.com wrote (on Saturday, 04 August 2012, 07:38 PM -0700): It seems like the most vital feature of zf2 (the pagination) is still broken, or am I missing something? The DbSelect adapter has known issues, and a couple of contributors are collaborating to get those

[fw-general] ZF1: problem logging to Firebug console

2012-08-06 Thread Mike Wright
Hi all, Using ZF1 on Fedora 14, Firefox 13, Firebug 1.10.2. This is a stumper. It used to work but stopped. The following is in my Bootstrap.php: protected function _initLog() { $log = new Zend_Log(); $log-addWriter(new Zend_Log_Writer_Firebug()); return $log; } To use it I pull it

RE: [fw-general] ZF1: problem logging to Firebug console

2012-08-06 Thread Sergio Rinaudo
Hi Mike, I had the same problem in the past, for me the solution was to enable the 'net' panel of Firebug. Do you have it enabled? Cheers Sergio Rinaudo Date: Mon, 6 Aug 2012 10:32:37 -0700 From: mike.wri...@mailinator.com To: fw-general@lists.zend.com Subject: [fw-general] ZF1:

Re: [fw-general] ZF1: problem logging to Firebug console

2012-08-06 Thread Mike Wright
On 08/06/2012 11:28 AM, Sergio Rinaudo wrote: Hi Mike, I had the same problem in the past, for me the solution was to enable the 'net' panel of Firebug. Do you have it enabled? Thank you, Sergio. That was it. -- List: fw-general@lists.zend.com Info: http://framework.zend.com/archives

[fw-general] Locking out a module from normal routes?

2012-08-06 Thread Jamie Krasnoo
I've figured out how to route a subdomain to a specific module. The problem is that the module is still visible to the base domain. Is there a way to make sure that the module is ignored by normal base routes and routes a user to the error page if they try to get to it? Jamie