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
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
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
thanks guys
but how can i access that $action outside that function($e)
i want to assign it to viewmodel
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
-- 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
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
-- 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
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
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:
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
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
12 matches
Mail list logo