[fw-general] Zend_Ldap_Collection_Iterator_Default::next() error

2010-05-09 Thread waigani
Zend_Ldap_Collection_Iterator_Default::next() throws the following error: 0x54 (Decoding error): getting next entry (0x54 (Decoding error)) I am am searching a Apple OpenLdap ODM. The following code throws the error: $result = $this-_ldap-search(cn=*schoolofp*, $this-_ldapOptions['baseDn'],

Re: [fw-general] handle any exception with errorController

2008-11-04 Thread Waigani
throw exceptions is not on and I've also tested the dispatchLoopStartup in the plugins broker. It is not catching the exception. Waigani wrote: The code throw new Zend_Exception('test'); in the predispatch hook of a plugin returns Fatal error: Uncaught exception 'Zend_Exception

Re: [fw-general] handle any exception with errorController

2008-11-04 Thread Waigani
controller and error action from the error controller are called, both views are rendered also. This is all looking very similar to the following logged bug (marked as resolved): http://framework.zend.com/issues/browse/ZF-2461 Waigani wrote: correction, it is catching the exception when thrown

Re: [fw-general] handle any exception with errorController

2008-11-04 Thread Waigani
correction, it is catching the exception when thrown from dispatchLoopStartup from my plugin, but not whe it is thrown from preDispatch. Is this the expected behaviour? Waigani wrote: throw exceptions is not on and I've also tested the dispatchLoopStartup in the plugins broker

Re: [fw-general] handle any exception with errorController

2008-11-04 Thread Waigani
in a plugin, I want to stop everything and just handle that exception in the error controller. keith Pope-4 wrote: Would adding an exception to the Response work though? 2008/11/4 Matthew Weier O'Phinney [EMAIL PROTECTED]: -- Waigani [EMAIL PROTECTED] wrote (on Monday, 03 November 2008

Re: [fw-general] handle any exception with errorController

2008-11-03 Thread Waigani
: The Plugin Broker (Zend_Controller_Plugin_Broker) _should_ catch any exceptions thrown by controller plugins. Well, not should, it does. Perhaps this is an issue with how you're instantiating your plugins?? Waigani wrote: Thanks for the run down. Is it possible to throw an error

Re: [fw-general] handle any exception with errorController

2008-11-03 Thread Waigani
Thanks for the run down. Is it possible to throw an error in a plugin though? So far the errorController has missed it. Jason Webster wrote: Waigani wrote: Is it possible? I want to throw an exception in the preDispatch of a plugin if you are not allowed to view the page. I then want

Re: [fw-general] Zend_Dom query

2008-09-29 Thread Waigani
worked out reg exp (I'm a newbie to reg exp) '/\?.\?/' should be '/\?.+\?/' Waigani wrote: no luck I get a DOMXPath::query() [function.DOMXPath-query]: Invalid expression in … . Also I'm trying to grab the xml declaration with a reg - as there has been no feed back on grabbing

[fw-general] short tags and xml declaration- solution?

2008-09-28 Thread Waigani
Is there a ZF solution to using both short tags and xml declaration in a view script? I know ? vs ?xml is a general php problem, but if the ZF manual continues to demonstrate with short tags (and I hope it will - long live short tags) then it would be good to have a solution for this long

Re: [fw-general] short tags and xml declaration- solution?

2008-09-28 Thread Waigani
On the same topic, is there a way to select ?xml with Zend_Dom? What would be the xpath or css query? Waigani wrote: Is there a ZF solution to using both short tags and xml declaration in a view script? I know ? vs ?xml is a general php problem, but if the ZF manual continues

[fw-general] Zend_Dom query

2008-09-28 Thread Waigani
I'm trying to select every element that has the string 'url' inside its style attribute. The following does not work: $dom-query('*[style*=url]'). -- View this message in context: http://www.nabble.com/Zend_Dom-query-tp19715146p19715146.html Sent from the Zend Framework mailing list archive at

Re: [fw-general] Zend_Dom query

2008-09-28 Thread Waigani
= preg_replace( '/\?.\?/', 'replace xml', $html); echo $html; why does '/\?.\?/' not work? Waigani wrote: I'm trying to select every element that has the string 'url' inside its style attribute. The following does not work: $dom-query('*[style*=url]'). -- View this message in context: http

[fw-general] Does form validator implicitly set setRequired() to true?

2008-09-02 Thread Waigani
Hi, I'm validating a form. Most of the validation needs to be of the following format: IF there is content in a feild THEN that content needs to be valid xyz. It seems that if I put any kind of validator on a feild, the form fails if their is no content in that field. How do I get around this?

Re: [fw-general] Does form validator implicitly set setRequired() to true?

2008-09-02 Thread Waigani
I've added the bits. With the call, how do I create the $context variable? Michel Morelli wrote: Waigani ha scritto: I'm testing with '1' as the input value for startPage. While debugging I found that $context was not set, not even an empty array. What an I missing? In italy we say

[fw-general] Zend_Form, remove / add decorator for all elements of a form

2008-04-29 Thread Waigani
Is there a way to add and remove a decorator for all the elements of a form, not one at a time? Thanks, -- View this message in context: http://www.nabble.com/Zend_Form%2C-remove---add-decorator-for-all-elements-of-a-form-tp16953727p16953727.html Sent from the Zend Framework mailing list

Re: [fw-general] Zend_Form, remove / add decorator for all elements of a form

2008-04-29 Thread Waigani
thanks, can you change the type of an element after it has been added? Matthew Weier O'Phinney-3 wrote: -- Waigani [EMAIL PROTECTED] wrote (on Tuesday, 29 April 2008, 12:40 AM -0700): Is there a way to add and remove a decorator for all the elements of a form, not one at a time

Re: [fw-general] PDO::prepare cannot find an existing table.

2008-01-27 Thread Waigani
I've got same problem.Using ZF 1.03, trying to connect to mysql table: Zend_Db_Statement_Exception' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Jared Smith wrote: I just migrated to Zend Framework 0.6.0 from a lower version. Code which was previously working is

Re: [fw-general] : exception 'Zend_Feed_Builder_Exception' with message 'title key of source property is missing'

2007-12-11 Thread Waigani
, Jess Simone Carletti wrote: Be sure you set the correct MIME Response Type to application/xml. Waigani wrote: Yay it works! Thank you. But now the browser does not recognise the xml. I'm probably missing something obvious as I'm new to feeds: ?xml version=1.0 encoding=utf-8

Re: [fw-general] : exception 'Zend_Feed_Builder_Exception' with message 'title key of source property is missing'

2007-12-11 Thread Waigani
before the XML. Waigani wrote: The browser prompts me to download a file which has the same name as the action but no xml extension. When I add the xml extension and delete the white space before ?xml … the browser then reads the file as expected. How do I get Zend_Feed not doing

Re: [fw-general] : exception 'Zend_Feed_Builder_Exception' with message 'title key of source property is missing'

2007-12-10 Thread Waigani
:44 +/pubDate /item /channel /rss Simone Carletti wrote: Hi Waigani, entries must be an array of entries and each entry is an array itself. This is the right version of your code, you are missing one array statement. //Feed Array $feedArray = array( 'title

[fw-general] : exception 'Zend_Feed_Builder_Exception' with message 'title key of source property is missing'

2007-12-06 Thread Waigani
Hi, I'm trying to import an array as a feed and get the following error: 'Zend_Feed_Builder_Exception' with message 'title key of source property is missing' in …/Zend/Feed/Builder.php:368 Here is the code: //Feed Array $feedArray = array( 'title' =

Re: [fw-general] file manager

2007-11-26 Thread Waigani
to be resolved. Good luck, Jacob Waigani wrote: Yep. Inside an Action. Thanks, Jess oetting wrote: Hi, You will have to clearify how it does not work. ZF should not stop a completely external script from working. Is the problem that you want to use it within a Action Controller

[fw-general] xmlrpc beginners bad luck

2007-11-02 Thread Waigani
Hi All, I'm trying a simple 'hello world' test of xmlrpc but keep getting: Uncaught exception 'Zend_XmlRpc_Client_FaultException' with message 'Failed to parse response' So I've got: 1. a function in a class /** * Say Hello * * @return string */ function hello(){ return 'Hello World'; } 2.

[fw-general] Zend_Controller_Router_Route_Interface - extending default router

2007-10-17 Thread Waigani
Hi All, Is there a way of extending the default router behavior by implementing Zend_Controller_Router_Route_Interface? What I’m looking for is to maintain the /module/controller/action behavior and onto it a series of prams eg Default/index/index/parentPage/childPage/etc Thanks, -- View

Re: [fw-general] nested foreach

2007-10-11 Thread Waigani
Hi All, In the following script, how could I dynamically nest one key inside another to generate: $menu[tutorials][php][Language]=#; I'm thinking of something like variable variables, but they don't seem to work with array keys - unless I'm doing it wrong. here is the script: ?php /*

Re: [fw-general] nested foreach

2007-10-11 Thread Waigani
Here is how I will do it: Generate the array keys as a string and then eval the whole thing. Waigani wrote: Hi All, In the following script, how could I dynamically nest one key inside another to generate: $menu[tutorials][php][Language]=#; I'm thinking of something like variable

Re: [fw-general] nested foreach

2007-10-10 Thread Waigani
my head in!): $many = $this-many-toArray(); $i = 0; function loop($many){ foreach($many as $one){ $var = 'var' . $i; if($one['var'] == '$var){ $many2 = $many; if($condition){ loop($many2); } }else{prev($many); $i++; } } Waigani wrote: Thanks Michael, What I'm trying to get

Re: [fw-general] nested foreach

2007-10-10 Thread Waigani
://andries.systray.be Waigani schreef: Hi All, It seems that while() does not allow you to copy arrays (eg $array2 = $array1;) and foreach does not allow you to manipulate the array pointer. I need to do both. My main question is can you manipulate the array pointer in foreach? Bellow is a snipit of what

Re: [fw-general] nested foreach

2007-10-08 Thread Waigani
Here is my work around: foreach($this-many as $one){ echo '1st'; $array = $this-many-toArray(); while($array1 = current($array)){ echo '2nd'; } } Cheers, Waigani wrote: can you nest foreach in the framework? eg in a view template: foreach($this-many as $one){ print_r($one

Re: [fw-general] nested foreach

2007-10-08 Thread Waigani
Sorry forgot the 'next': foreach($this-many as $one){ echo '1st'; $array = $this-many-toArray(); while($array1 = current($array)){ echo '2nd'; next($array); } } Waigani wrote: Here is my work around: foreach($this-many as $one){ echo '1st'; $array = $this-many-toArray(); while($array1

Re: [fw-general] nested foreach

2007-10-08 Thread Waigani
Thanks Michael, What I'm trying to get is a nested foreach LOOP. My work around does not do it. I'll play with yours and see if I can get it to loop. Thanks, Michael B Allen-3 wrote: On 10/8/07, Waigani [EMAIL PROTECTED] wrote: can you nest foreach in the framework? eg in a view

Re: [fw-general] AW: AW: getRequest

2007-10-03 Thread Waigani
Zend_Controller_Router_Route_Module. Is there a way to tack on the above logic (*/:_preview = 'cmsPreview' = 'true') to the default router? The main thing is keeping the default params (which is the same problem as in my earlier posts). Thanks Waigani wrote: It is for a login form which logs you

Re: [fw-general] AW: AW: getRequest

2007-10-03 Thread Waigani
Thank you very much Matthew. Matthew Weier O'Phinney-3 wrote: -- Waigani [EMAIL PROTECTED] wrote (on Wednesday, 03 October 2007, 01:11 AM -0700): I'm still struggling with the router. Here is the idea. On any page you type /_preview after the uri to see the cms preview of that page. Here

Re: [fw-general] AW: AW: getRequest

2007-10-03 Thread Waigani
Hmm, The harder method is harder than it looks. When I type domain.com/_preview, the default router thinks its a controller and returns an error. domain.com/default/index/index/_preview works as expected. Waigani wrote: Thank you very much Matthew. Matthew Weier O'Phinney-3 wrote

Re: [fw-general] AW: AW: getRequest

2007-10-03 Thread Waigani
-setPathInfo($path); } from -8 to -9. Seems resetting the path likes '/' over '' when it is the default/index/index page. Thanks again. Waigani wrote: Hmm, The harder method is harder than it looks. When I type domain.com/_preview, the default router thinks its a controller and returns

Re: [fw-general] AW: getRequest

2007-10-01 Thread Waigani
. -Ursprüngliche Nachricht- Von: Waigani [mailto:[EMAIL PROTECTED] Gesendet: Sonntag, 30. September 2007 22:30 An: fw-general@lists.zend.com Betreff: Re: [fw-general] getRequest Dear Matthew, Thank you very much for the clear explanation. So if I want to add the current module as a default

Re: [fw-general] AW: AW: getRequest

2007-10-01 Thread Waigani
() methode. But why do you need the modulname there? You can access to it in the controller anyway. -Ursprüngliche Nachricht- Von: Waigani [mailto:[EMAIL PROTECTED] Gesendet: Montag, 1. Oktober 2007 11:04 An: fw-general@lists.zend.com Betreff: Re: [fw-general] AW: getRequest So

Re: [fw-general] getRequest

2007-09-30 Thread Waigani
Dear Matthew, Thank you very much for the clear explanation. So if I want to add the current module as a default variable of a route ($router-addRoute), should I do this in a plugin? Thanks, Matthew Weier O'Phinney-3 wrote: -- Waigani [EMAIL PROTECTED] wrote (on Thursday, 27 September

[fw-general] Paginate?

2007-09-30 Thread Waigani
to people recommend (before I go and roll my own, he threatened)? On 9/26/07, Waigani [EMAIL PROTECTED] wrote: Ah, My_Table extends Riskle_Db_Table{ } and then put in 'new My_Table' Waigani wrote: Hi, Has anyone used Riskle's Paginate class? It looks very good. http

Re: [fw-general] getRequest

2007-09-27 Thread Waigani
Hi All, I've added a route ($router-addRoute) and want to set the default value of a variable as the current module name. I can't seem to get the current module name though. Thanks, Jess Waigani wrote: Hi All, $request = Zend_Controller_Front::getInstance()-getRequest(); print_r

[fw-general] getRequest

2007-09-27 Thread Waigani
Hi All, $request = Zend_Controller_Front::getInstance()-getRequest(); print_r($request); in the bootstrap index.php prints nothing. I've tried everyway I can think of to getModuleName() from the bootstrap with no luck. I also tried $request = new Zend_Controller_Request_Http();

[fw-general] Riskle Paginate

2007-09-26 Thread Waigani
Hi, Has anyone used Riskle's Paginate class? It looks very good. http://fashion.hosmoz.net/post/2007/09/23/Zend-Framework-Pagination-third-strike In the example: $table = new Riskle_Db_Table_Paginate(new Table, $this-_getParam('page')); $this-view-rowset = $table-fetchAll(); I don't get what

Re: [fw-general] Riskle Paginate

2007-09-26 Thread Waigani
Ah, My_Table extends Riskle_Db_Table{ } and then put in 'new My_Table' Waigani wrote: Hi, Has anyone used Riskle's Paginate class? It looks very good. http://fashion.hosmoz.net/post/2007/09/23/Zend-Framework-Pagination-third-strike In the example: $table = new

[fw-general] post uri

2007-09-26 Thread Waigani
Hi All, Is there a way to find out where a post has come from, without sending the info in the form? In particular, can you get the module controller and action. Cheers, -- View this message in context: http://www.nabble.com/post-uri-tf4526349s16154.html#a12914633 Sent from the Zend

Re: [fw-general] two view prefixes?

2007-09-19 Thread Waigani
From: Waigani [EMAIL PROTECTED] To: fw-general@lists.zend.com Sent: Wednesday, September 19, 2007 3:43:37 AM Subject: [fw-general] two view prefixes? Hi, Is it possible to set two different view prefixes? Thanks, -- View this message in context: http://www.nabble.com/two-view

[fw-general] Action Helper

2007-09-18 Thread Waigani
Hi, I've written a custom helper: class Hs_Action_Helper_Priv extends Zend_Controller_Action_Helper_Abstract{ function Priv($priv){ $AclCk = new Hs_Acl_Auth(); return $AclCk-Priv($priv); } } Registered it in the bootstrap:

Re: [fw-general] Action Helper

2007-09-18 Thread Waigani
just call the method - ie take out the above step. Waigani wrote: Hi, I've written a custom helper: class Hs_Action_Helper_Priv extends Zend_Controller_Action_Helper_Abstract{ function Priv($priv){ $AclCk = new Hs_Acl_Auth(); return $AclCk-Priv($priv

Re: [fw-general] Action Helper

2007-09-18 Thread Waigani
Okay I'm missing something. Everything is the same as in my first post except the method is now called 'direct'. I get the same error message: Cannot redeclare IndexController::indexAction() Matthew Weier O'Phinney-3 wrote: -- Waigani [EMAIL PROTECTED] wrote (on Tuesday, 18 September 2007

Re: [fw-general] Action Helper

2007-09-18 Thread Waigani
Got it. Forgot to put in $this-_helper-Priv(); Thanks for the help :) Waigani wrote: Okay I'm missing something. Everything is the same as in my first post except the method is now called 'direct'. I get the same error message: Cannot redeclare IndexController::indexAction

Re: [fw-general] Action Helper

2007-09-18 Thread Waigani
Thanks Matthew, Just saw that I forgot the _helper after I posted. Cheers. Matthew Weier O'Phinney-3 wrote: -- Waigani [EMAIL PROTECTED] wrote (on Tuesday, 18 September 2007, 01:59 PM -0700): Okay I see I have to add $priv = $this-_helper-getHelper('Priv'); and then it works

[fw-general] two view prefixes?

2007-09-18 Thread Waigani
Hi, Is it possible to set two different view prefixes? Thanks, -- View this message in context: http://www.nabble.com/two-view-prefixes--tf4478451s16154.html#a12769919 Sent from the Zend Framework mailing list archive at Nabble.com.

[fw-general] w3c validation?

2007-09-16 Thread Waigani
Hi, Are there any nifty classes to validate xhtml, css etc as w3c standards compliant? A view helper might be good at this. Cheers, -- View this message in context: http://www.nabble.com/w3c-validation--tf4450501s16154.html#a12697717 Sent from the Zend Framework mailing list archive at

[fw-general] w3c validation?

2007-09-16 Thread Waigani
Hi, Are there any nifty classes to validate xhtml, css etc as w3c standards compliant? A view helper might be good at this. Cheers, -- View this message in context: http://www.nabble.com/w3c-validation--tf4450500s16154.html#a12697716 Sent from the Zend Framework mailing list archive at

[fw-general] cli parse error?

2007-09-15 Thread Waigani
Hi, I'm trying to run the bootstrap from cli and get the following: Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in .../Zend/Loader.php on line 52 Any clues ? Cheers, -- View this message in context:

[fw-general] Zend CMS Crisis

2007-09-13 Thread Waigani
Hi, I'm the central developer for a univeristy division. For the past three months I've been developing a CMS with Zend Framework. It has gone very well and has had good feed back. There are many departments that want to come on board as well as campuses in other cities. It answers a lot of the

Re: [fw-general] Zend CMS Crisis

2007-09-13 Thread Waigani
know if there is any serious development of a Zend Framework CMS? Maybe we could contribute our work? Rob Allen-3 wrote: Waigani wrote: Problem is: a college just showed me mysource Matrix, which is the competition. Have I just wasted the past three months? It already does everything I'm

Re: [fw-general] Zend CMS Crisis

2007-09-13 Thread Waigani
. Or you want to learn Zend Framework by building a CMS. Ask yourself, why did you even started doing it in the first place. Cheers, Karol Waigani wrote: Hi, I'm the central developer for a univeristy division. For the past three months I've been developing a CMS with Zend

[fw-general] RE: Zend CMS Crisis

2007-09-13 Thread Waigani
Hi Simon, Yes. The framework makes a lot of database applications a lot easier. There will be central libraries with phpdocumentor API, which all the applications will run off. So this aids is collaborative development among php developers and reduces repetitive coding across the division. I

Re: [fw-general] Zend CMS Crisis

2007-09-13 Thread Waigani
Hi Nick, Thanks for the post. I think I'm just freaking out. That is some really good advice you've given esp about how many people will know ZF in three years time as apposed to mysource. I will gather all the info from these posts and way up integrating a ZF friendly cms or continuing the

[fw-general] passing a param from controller to predispatch plugin?

2007-08-22 Thread Waigani
Hi, Is it possible to pass a param/variable from controller to pre-dispatch plugin? I've been trying the following: In Controller: setParam('var', $var); or Zend_Registry::set('var', $var) In Predispatch Plugin: getParam('var'); or Zend_Registry::get('var'); But this does not work as

Re: [fw-general] passing a param from controller to predispatch plugin?

2007-08-22 Thread Waigani
Hi Martin, I'm already setting the param in the controller init(). Cheers, Jess Martin Hujer wrote: try to put these commands in init() action... Best Regards. Martin. Waigani wrote: Hi, Is it possible to pass a param/variable from controller to pre-dispatch plugin

Re: [fw-general] passing a param from controller to predispatch plugin?

2007-08-22 Thread Waigani
Dear Matthew, Thanks for the answer. At least I can put that one to rest. Cheers, Jess Matthew Weier O'Phinney-3 wrote: -- Waigani [EMAIL PROTECTED] wrote (on Wednesday, 22 August 2007, 02:16 AM -0700): Is it possible to pass a param/variable from controller to pre-dispatch plugin

Re: [fw-general] Zend_Cache blank screen - fixed

2007-07-18 Thread Waigani
Zend_Cache prob fixed: directory path was wrong and needed to chmod 777. Thanks anyway -- View this message in context: http://www.nabble.com/Zend_Cache-blank-screen-tf4107962s16154.html#a11682111 Sent from the Zend Framework mailing list archive at Nabble.com.

Re: [fw-general] quite a module error: file was not found

2007-06-18 Thread Waigani
The module error remains defiant. Does anyone have any suggestions? Matthew, I've followed all your suggestions, triple checked and can't fault anything. I've been through the manual and several forums. No leads. Waigani wrote: All the cases are fine - have double checked. staffprofiles

Re: [fw-general] quite a module error: file was not found

2007-06-14 Thread Waigani
file?? That is really weird. Waigani wrote: Well I've got quite a module error here. Been wrestling with it all week. File structure: index.php /modules /default /controller /model /view