RE: [fw-general] doing xajax like operation in zend framework

2009-04-30 Thread chronoel22
thanks xavier. you got my point exactly. i'll be looking into your code and see if it can work for me. i'll also post an update for on my progress. thanks again! :working: Xavier Vidal wrote: > > Last year we need something similar as Xajax, and i've developed a simple > class to achieve this f

Re: [fw-general] Getting the timezone from the browser's offset

2009-04-30 Thread Peter Wansch
Hi Thomas, I was looking at the API doc for Zend_Date or Zend_Locale to find something that would return for instance America/Los_Angeles. Any pointer is much appreciated. Danke!! Peter thomasW wrote: > > You can use Zend_Date or Zend_Locale for this purpose. > But it is also not problematic to

[fw-general] problem with SMTP auth

2009-04-30 Thread Brad Kowalczyk
Hi, just trying to use the Zend_Mail_Protocol_Smtp_Auth_Login class directly to test user supplied SMTP login details in an installer I am creating for an app. It keeps failing the auth() call as there is data still in the stream from the initial _connect() call which causes the _expect() to fai

Re: [fw-general] Adding routes with application.ini

2009-04-30 Thread iceangel89
Matthew Weier O'Phinney-3 wrote: > > -- iceangel89 wrote >> and in general how do i create a mapping from >> >> resources.db.adapter = "pdo_mysql" >> resources.db.params.host = "localhost" >> resources.db.params.username = "root" >> resources.db.params.password = "" >> resources.db.params.dbn

Re: [fw-general] Adding routes with application.ini

2009-04-30 Thread iceangel89
but now, i can't use module/controller to go to module/controller/action(indexAction) ... and Zend_Paginator also does not work if i am in module/controller only works if i am in module/controller/index -- View this message in context: http://www.nabble.com/Adding-routes-with-application.ini

[fw-general] Can't seem to load module boostraps in ZF 1.8

2009-04-30 Thread lroot
I seem to be having a tough time getting my Zend_Application_Module_Bootstrap based scripts to run. I'm using the following app structure: http://www.nabble.com/file/p23326297/app_structure.png http://www.nabble.com/file/p23326297/app.zip Download Source Code In my application/configuration/

Re: [fw-general] zf command won't work if I have ZF in the PHP include path

2009-04-30 Thread James Carr
Ralph Schindler wrote: I have added the following symbolic links: /usr/share/php/Zend => /usr/share/zend-framework/1.8.0b2/library/Zend/ /usr/local/bin/zf -> /usr/share/zend-framework/1.8.0b2/bin/zf.sh Early on, we found a problem with having links in the include_path so at current, they ar

Re: [fw-general] Zend_Navigation and Zend_Acl

2009-04-30 Thread Ian Young
My understanding is that the navigation helpers do what you're thinking of already. From the documentation[1]: "All built-in helpers extend Zend_View_Helper_Navigation_HelperAbstract, which adds integration with ACL and translation." That said, I haven't actually used this myself. Ian [1] <

Re: [fw-general] Zend_paginator + AJAX controls

2009-04-30 Thread dele454
I have it sorted now :) http://www.dojotoolkit.org/forum/dojo-core-dojo-0-9/dojo-core-support/how-can-dojo-pick-new-ids-after-ajax-response#comment-24280 - dee -- View this message in context: http://www.nabble.com/Zend_paginator-%2B-AJAX-controls-tp23310898p23322589.html Sent from the Ze

Re: [fw-general] Getting the timezone from the browser's offset

2009-04-30 Thread Thomas Weidner
You can use Zend_Date or Zend_Locale for this purpose. But it is also not problematic to realize this manually. Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: "Peter Wansch" To: Sent: Thursday, April 30, 2009 5:18 PM

Re: [fw-general] zf command won't work if I have ZF in the PHP include path

2009-04-30 Thread Ralph Schindler
I have added the following symbolic links: /usr/share/php/Zend => /usr/share/zend-framework/1.8.0b2/library/Zend/ /usr/local/bin/zf -> /usr/share/zend-framework/1.8.0b2/bin/zf.sh Early on, we found a problem with having links in the include_path so at current, they are not supported at curre

Re: [fw-general] Menu in ZF: Controller Plugin with postDispatch method

2009-04-30 Thread Andrei Iarus
Hello everyone,   THe solution is to use the dispatchLoopStartup method in the Controller_Plugin_Menu, and there to use the Zend_Controller_Plugin_ActionStack plugin, as this plugin "operates as a postDispatch plugin"(from the manual). This means that all the variables set from the requested by

Re: [fw-general] Zend_paginator + AJAX controls

2009-04-30 Thread Michael Scholl
-- only sent private before Am 30.04.2009 um 08:51 schrieb dele454: … - Depending on which link is clicked the page no is sent to the controller which then populates its view script and that gets sent back to the AJAX callback action which then inserts all the contents of the viewscript

RE: [fw-general] doing xajax like operation in zend framework

2009-04-30 Thread Xavier Vidal
Last year we need something similar as Xajax, and i've developed a simple class to achieve this functionality, but only the server part. The client part is hardcoded with javascript helpers. You can find a snippet here: http://www.pasteyourcode.com/34 A example could be useful: Class IndexContro

[fw-general] doing xajax like operation in zend framework

2009-04-30 Thread chronoel22
hi i was wondering if the zend framework provides a built-in way of manipulating html from the controller/action using ajax and javascript. i'm referring to how xajax and sajax does this. you see they implement something like the following on the php script: $x = new xajax(); $x->setStyle('aClass

[fw-general] Getting the timezone from the browser's offset

2009-04-30 Thread Peter Wansch
Hi, In our application, we let users select Timezones. To render a timezone list we use the following view helper which works great: class Ggv_View_Helper_TimezonesList extends Zend_View_Helper_Abstract { public function timezonesList($selectedzone, $label, $name = 'timezone', $desc = '')

Re: [fw-general] Re: Zend_Payment feedback

2009-04-30 Thread Vadim Gabriel
I should really read about that 3-D secure support. I might have used it before and just didn't noticed or didn't know it's that. On Thu, Apr 30, 2009 at 6:03 PM, Colin Guthrie wrote: > 'Twas brillig, and Tim Fountain at 23/04/09 16:03 did gyre and gimble: > >> I would also strongly recommend th

[fw-general] Re: Zend_Payment feedback

2009-04-30 Thread Colin Guthrie
'Twas brillig, and Tim Fountain at 23/04/09 16:03 did gyre and gimble: I would also strongly recommend that you look into 3-D Secure authorisation and work out how you would build support for this into the component. It would be very difficult to add this in at a later date without breaking bac

[fw-general] Zend_Search_Lucene: how to get field hit occured in?

2009-04-30 Thread cerebrix
Hi, i was wondering if and how it is possible to determine in which field of a document a search term was found. For Example: I have a document in an index with 3 fields: id, text1, text2 and perform a search for: "blue" is there a way to find out if the word "blue" was found in text1 or in text

Re: [fw-general] Zend_paginator + AJAX controls

2009-04-30 Thread lightflowmark
This is a Dojo question really, but I think the answer you're looking for is to use dojo.stopEvent(evt); to prevent the default behaviour (in this case, the browser navigating to a new page). Hope that helps, Mark dele454 wrote: > > http://www.nabble.com/file/p23310898/pag.gif > > I'm not s

Re: [fw-general] Menu in ZF: Controller Plugin with postDispatch method

2009-04-30 Thread lightflowmark
The way I do something similar is to run code in dispatchLoopStartup like $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer'); $viewRenderer->init(); $view = $viewRenderer->view; $this->_view = $view; // set up common variables for the view $view->originalModule

Re: [fw-general] Zend_form and getValues => empty array

2009-04-30 Thread denadai2
aha sorry it works Colin Guthrie-6 wrote: > > 'Twas brillig, and denadai2 at 30/04/09 10:58 did gyre and gimble: >> I've a problem: using getvalues i have an empty array as returned values. >> This appens if i submit the correct form, an empty form or if i put some >> chars. >> >> >> $form =

Re: [fw-general] Menu in ZF: Controller Plugin with postDispatch method

2009-04-30 Thread Andrei Iarus
Hello,   I forgot to mention that, executing: "Zend_Controller_Request_Abstract::setDispatched(false);" does not solve the problem. Is there any way to execute an action after all the actions are already dispatched? postDispatch is executed for every action dispatch, right? How can one force th

[fw-general] Re: How to get the previous page

2009-04-30 Thread Colin Guthrie
'Twas brillig, and iceangel89 at 29/04/09 09:33 did gyre and gimble: i want to find out what is the URL that called a controller/action so that after processing somethings (editing a record) i can go back to that exact page. i am using Zend_Paginator so say i came from page 2 editing a record, i

[fw-general] Re: Zend_form and getValues => empty array

2009-04-30 Thread Colin Guthrie
'Twas brillig, and denadai2 at 30/04/09 10:58 did gyre and gimble: I've a problem: using getvalues i have an empty array as returned values. This appens if i submit the correct form, an empty form or if i put some chars. $form = new forms_RegisterForm(); if ($this->getRequest()->isPost()

[fw-general] zf command won't work if I have ZF in the PHP include path

2009-04-30 Thread James Carr
Hi. I have installed the sanity test tarball (1.8.0-minimal) as follows: /usr/share/zend-framework/1.8.0b2/... /library/ /bin/ etc. NB: I've called it 1.8.0b2 in case the final release is different. I have added the following symb

[fw-general] Zend_form and getValues => empty array

2009-04-30 Thread denadai2
I've a problem: using getvalues i have an empty array as returned values. This appens if i submit the correct form, an empty form or if i put some chars. $form = new forms_RegisterForm(); if ($this->getRequest()->isPost()) { $values = $form->getValues(); print_r(

[fw-general] Define a validator as a certain type, e.g. a warning?

2009-04-30 Thread Colin J
Hi I was wondering if anyone might be able to help. I am working on an application that requires a Zend_Form to have validation checks that are 'errors' which mean the form cannot be posted and some validation checks that might raise a 'warning' to the user. The warnings can then be accepted an

Re: [fw-general] Zend_Forms with Zend_Db_Tables

2009-04-30 Thread Giorgio Sironi
2009/4/29 iceangel89 > so for add its simple all fields empty. for edit i want to populate the > fields with a table row. how can i do this? > You should convert the row to an array and call setDefaults() (populate is an alias for it) passing it. However, the mapping is not always so simple. -

Re: [fw-general] Adding routes with application.ini

2009-04-30 Thread iceangel89
hmm now if i do a lab/departments it does not go to index action? i tried doing resources.router.routes.mod.route = "/:module/:controller" resources.router.routes.mod.defaults.module = ":module" resources.router.routes.mod.defaults.controller = ":controller" resources.router.routes.mod.defaul

Re: [fw-general] Zend_Payment Paypal, MoneyBookers, Tranzila. Looking for review

2009-04-30 Thread Vadim Gabriel
Hey, I have updated the classes. * Updated class members to protected instead of private so overriding them will be easier * Updated exception class to throw exceptions using zend_payment_gateway_exception * Added class member $throwExceptions and a setter method to control the exceptions behavio

[fw-general] Zend_Application + Zend_Translate + Zend_Log

2009-04-30 Thread Elvin Şiriyev
Hi, how can i confugure log for Zend_Translate in application.ini with Zend_Application ? resources.translate.adapter = ini resources.translate.data = APPLICATION_PATH "/../languages" resources.translate.default = en_US resources.translate.options.scan = directory resources.translate.options.log