[fw-general] Re: ZF2 - Retrieve navigation in Controller ?

2013-07-30 Thread Razorblade
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

[fw-general] Re: [ZF2] Get paginator output in a non-view context

2013-05-27 Thread Razorblade
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

[fw-general] Re: [ZF2] Get paginator output in a non-view context

2013-05-27 Thread Razorblade
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

[fw-general] [ZF2] Get paginator output in a non-view context

2013-05-24 Thread Razorblade
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

[fw-general] Re: ZFCUser: some questions about teh AuthenticationService

2013-05-17 Thread Razorblade
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

[fw-general] ZFCUser: some questions about teh AuthenticationService

2013-05-17 Thread Razorblade
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

[fw-general] Re: [ZF2] Help needed to understand this navigation behaviour

2013-05-10 Thread Razorblade
Solved, thank you Whisher! This is the correct navigation configuration [...] 'navigation' => array( 'default' => array( array( 'label' => 'Home', 'route' => 'home', ), array( 'label' => 'Page #1

[fw-general] Re: [ZF2] Help needed to understand this navigation behaviour

2013-05-09 Thread Razorblade
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

[fw-general] [ZF2] Help needed to understand this navigation behaviour

2013-05-09 Thread Razorblade
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

[fw-general] Re: [ZF2] Navigation: change class for UL tag

2013-05-08 Thread Razorblade
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

[fw-general] Re: [ZF2] Navigation: change class for UL tag

2013-05-08 Thread Razorblade
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

[fw-general] [ZF2] Navigation: change class for UL tag

2013-05-08 Thread Razorblade
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

[fw-general] Re: Alter HTML just before displaying.

2013-04-17 Thread Razorblade
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

[fw-general] Re: Problem with Zend 1.12 Form

2013-03-12 Thread Razorblade
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

[fw-general] [ZF1] Error with Zend_Rest_Server when set a class that extends Zend_Db_Table

2013-02-11 Thread Razorblade
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

[fw-general] Re: [ZF2] Install ZF2 suggested packages

2012-09-07 Thread Razorblade
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

[fw-general] Re: [ZF2] Install ZF2 suggested packages

2012-09-07 Thread Razorblade
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

[fw-general] Re: Remove from default Zend Form decorators

2012-01-19 Thread Razorblade
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

[fw-general] Re: [ZF2] Switching layouts between modules.

2012-01-18 Thread Razorblade
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

[fw-general] [ZF2] Switching layouts between modules.

2011-12-13 Thread Razorblade
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

Re: AW: AW: [fw-general] Re: Fatal error: Call to a member function setLayout() on a non-object

2011-11-28 Thread Razorblade
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

Re: AW: [fw-general] Re: Fatal error: Call to a member function setLayout() on a non-object

2011-11-28 Thread Razorblade
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

[fw-general] Re: Fatal error: Call to a member function setLayout() on a non-object

2011-11-28 Thread Razorblade
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

[fw-general] RE: desperately need help with decorators

2011-11-26 Thread Razorblade
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' =>

[fw-general] Re: Appending query string‏

2011-07-21 Thread Razorblade
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' );

[fw-general] Re: Route regex error: Cannot assemble. Too few arguments?

2011-07-20 Thread Razorblade
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

[fw-general] Creating a container using a config object: add reset param‏

2011-06-10 Thread Razorblade
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

[fw-general] Re: Lucene reindex problem

2010-11-28 Thread Razorblade
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

[fw-general] RE: Multiselect form element and validation

2010-09-21 Thread Razorblade
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

RE: [fw-general] Some strange behaviour with Zend_Search_Lucene

2009-08-04 Thread Razorblade
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

Re: [fw-general] Access Zend_View properties from Zend_Paginator view script

2009-08-01 Thread Razorblade
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

Re: [fw-general] FW: ZF1.8 Right way to get zend registry instance

2009-05-13 Thread Razorblade
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(); )