I think I had almost the same problem,
the need was to retrieve the breadcrumbs in an asyncronous application.
The current breadcrumbs are found searching the navigation container by the
fragment value.
I came up with a solution that actually mixes view and controller logic and
I knew it,
in th
Ok,
solved by using the application renderer service
'Zend\View\Renderer\PhpRenderer'.
Cheers
-
Sergio Rinaudo's Blog
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/ZF2-Get-paginator-output-in-a-non-view-context-tp4660107p4660116.html
Sent from th
Hi Marco,
I added the Resolver as described in the documentation
http://framework.zend.com/manual/2.0/en/modules/zend.view.renderer.php-renderer.html
this is my code
$renderer = new PhpRenderer();
$resolver = new Resolver\AggregateResolver();
$renderer->setR
Hi All,
I'm trying to get pagination output from an object, outside the view
context,
this is my code:
$renderer = new PhpRenderer();
$output = $renderer->paginationControl($paginator 'Sliding',
array('myscript', 'Mymodule'), array('route' => 'application/paginator') );
and this is the exceptio
Thank you Matthew,
your explanation was very clear!
I'll also read carefully the zf2 docs.
Best regards,
Sergio
-
Sergio Rinaudo's Blog
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/ZFCUser-some-questions-about-teh-AuthenticationService-tp4660053
Hello,
I am 'disassembling' ZFCUser trying to understand logics behind this module
and how to extend it.
I am a bit confuse about the AuthenticationService and how it works.
First, within the Module.php we have
'ZfcUser\Authentication\Adapter\AdapterChain' =>
'ZfcUser\Authentication\Adapter\Ada
Solved, thank you Whisher!
This is the correct navigation configuration
[...]
'navigation' => array(
'default' => array(
array(
'label' => 'Home',
'route' => 'home',
),
array(
'label' => 'Page #1
Hi Whisher,
but 'default' route how should be?
-
Sergio Rinaudo's Blog
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/ZF2-Help-needed-to-understand-this-navigation-behaviour-tp4659974p4659976.html
Sent from the Zend Framework mailing list archive at
Hi All,
I've set up a new zf2 pj using zftool.phar, then downloaded the library
using composer, so I have just the skeleton working and ready. I've added 3
actions inside the index controller, child1Action(), child2Action() and
page2Action(), with their view scripts.
I've added this line of code
I'm trying to configure navigation to render a twitter-bootstrap-aware menu
with dropdowns, is there any change to do that without use a partial script?
-
Sergio Rinaudo's Blog
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/ZF2-Navigation-change-class
Thanks for the quick reply,
I missed that part of the doc..
Cheers!
-
Sergio Rinaudo's Blog
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/ZF2-Navigation-change-class-for-UL-tag-tp4659957p4659959.html
Sent from the Zend Framework mailing list archi
Hi everyone,
is it possible to change the UL default class ('navigation') when render
menu() using Zend\Navigation without use a partial script?
Reading the docs I noticed it is possible to set a class for each pages that
however will render as a property of the tag.
Thanks
-
Sergio R
Hello,
you can do that with a controller plugin at postDispatch.
// plugin boilerplate..
public function postDispatch(Zend_Controller_Request_Abstract $request)
{
$response = $this->getResponse();
$body = $response->getBody();
// a
Hi,
override init() hook instead of __construct() in order to create your form:
class App_Form_TestForm extends Zend_Form {
public function init() {
// add your elements here
}
}
Give it a try and let me know!
Cheers
--
View this message in context:
h
Hi All,
as the title, I get this error when setting a Zend_Db_Table's type class
with Zend_Rest_Server.
Tested with ZF 1.12.1
This is the error:
object(Zend_Server_Reflection_Exception)#782 (8) {
["_previous":"Zend_Exception":private] => NULL
["message":protected] => string(224) "Variable nu
Also tried with "ext/intl", the error now is the follow:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package ext/intl dev-master could not be found.
Potential causes:
- A typo in the package name
- The package is not available in
Hi Marco,
thanks for your quick reply,
I don't know why but your answer created a new thread other than continue
the one I opened, anyway...
after followed the quickstart and installed doctrine 2, this is my current
composer.json
{
"name": "zendframework/skeleton-application",
"descripti
Hello,
I think should be a good idea read
http://devzone.zend.com/1240/decorators-with-zend_form/ this article where
form decorator are clearly explained.
Anyway, to render just the element without any other html tag, using only
the "ViewHelper" decorator should be fine, eg.
$formElement->setD
Sorry,
after that I found this problem I temporarily quit study ZF2, so I haven't
found a solution yet.
Regards
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/ZF2-Switching-layouts-between-modules-tp4190088p4306784.html
Sent from the Zend Framework mailin
Dear list,
I'm trying to set up ZF2 application using
http://akrabat.com/zend-framework/updated-tutorial-for-zend-framework-2-beta-1/
Rob Allen's guide and
http://packages.zendframework.com/docs/latest/manual/en/zend.mvc.quick-start.html
Zend Mvc Quickstart , and, not without problems, I finall
Did you registered the namespace with the autoloader?
autoloaderNamespaces[] = "BQS_" // should work also with BQS without the
undescore
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Fatal-error-Call-to-a-member-function-setLayout-on-a-non-object-tp41168
Try this
resources.view.helperPath.BQS_View_Helper = "BQS/View/Helper"
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Fatal-error-Call-to-a-member-function-setLayout-on-a-non-object-tp4116808p4116927.html
Sent from the Zend Framework mailing list archive at
Try to use layout action helper instead
$this->_helper->layout()->setLayout('...');
Cheers
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Fatal-error-Call-to-a-member-function-setLayout-on-a-non-object-tp4116808p4116850.html
Sent from the Zend Framework ma
Hi,
try also this solution:
protected $_formElementDecorators = array(
'ViewHelper',
array( 'Errors', array('escape' => false, 'placement' => 'append' ) ),
array( array( 'containerDD' => 'HtmlTag' ), array('tag' => 'dd') ),
array( 'Label', array('tag' => 'dt', 'escape' =>
Thanks mate,
I've resolved in the almost identical way without even knowing that page, I
think this confirm that this is a clever way to do this.
Here's my code
getRouter()->assemble($urlOptions, $name, $reset,
$encode);
$qs = $front->getRequest()->getServer( 'QUERY_STRING' );
Hi,
for me worked perfectly, but I used the resource router in application.ini (
did you? ) and also you dont need to repeat the default
module/controller/action in the view helper
application.ini
resources.router.routes.ppt.type = "Zend_Controller_Router_Route_Regex"
resources.router.routes.pp
Hi All,
I've created breadcrumbs using an xml config object as explained here
http://framework.zend.com/manual/en/zend.navigation.containers.html ,
and I want to add the 'reset' param for a page.
How to add it?
Thanks
Sergio
--
View this message in context:
http://zend-framework-community.6341
Hi Kuzma,
I also use Lucene on a project of mine,
actually I have almost 3000 ( three thousand ) records,
if I try to reindex all the documents in a row, I get errors.
The solution that worked for me was to add the limit clause to the query,
I thought that even if you have thousand records t
Sorry for reply this old post,
but the question is the same.
Using the method explained, the variable "$value" passed as argument by the
method "isValid" is just a string that represent one of the selected
elements, and the isValid method is cycled for each selected element, but
there is not che
Does anybody use Lucene for their project?
I update this discussion in the hope somebody with an answer could see it :)
Regards
Sergio
--
View this message in context:
http://www.nabble.com/Some-strange-behaviour-with-Zend_Search_Lucene-tp24766032p24817842.html
Sent from the Zend Framework mai
Hi David,
thanks for reply, unfortunatelly I did not get this by email, and I saw your
answer only today browsing directly nabble...
Anyway, I solved, and I want to Thank you.
Bye
David Mintz-2 wrote:
>
> On Thu, Jul 30, 2009 at 9:48 PM, Sergio Rinaudo
> wrote:
>
>> It is possible to access
Hi,
I have another question related to the registry.
If this
$registry = Zend_Registry::getInstance();
and this
$registry =
Zend_Controller_Front::getInstance()->getParam('bootstrap')->getContainer();
( or from a controller $registry =
$this->getInvokeArg('bootstrap')->getContainer(); )
32 matches
Mail list logo