Re: [fw-general] Zend_Dom out of memory
I'do more test. I note that is the query() function to a Zend_Dom_Query object that increase the memory. I unset() both Zend_Dom_Query and Zend_Dom_QueryResult objects and the problem persist! If I comment the query functions the memory usage does not increase!! I've no idea $dom = new Zend_Dom_Query($response); $domDiv = $dom-query('div[class=someClass]'); //this code goes in out of memory $dom = new Zend_Dom_Query($response); //$domDiv = $dom-query('div[class=someClass]'); //this code DO NOT goes in out of memory -- View this message in context: http://www.nabble.com/Zend_Dom-out-of-memory-tp21125082p21202175.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Sample code for Matthew's webinar on Rich UI/Dojo with ZF
-- sktib s_tibre...@yahoo.com wrote (on Sunday, 28 December 2008, 08:08 PM -0800): I just went through the webinar posted by Matthew on Rich UIs and easy AJAX with Dojo and Zend Framework posted here http://www.zend.com/en/resources/webinars/framework - great webinar. There is a link there for presentation slides but I can't find the related code download link anywhere. I take it the sample code has to be posted somewhere - can someone (Matthew?) please point me to that? The first demo, which shows the various dijits, is actually in the Zend_Dojo chapter of the manual. The second, the pastebin, is available on github: http://github.com/weierophinney/pastebin -- Matthew Weier O'Phinney Software Architect | matt...@zend.com Zend Framework | http://framework.zend.com/
Re: [fw-general] Zend_Dom out of memory
-- Lossoth marco.pasqual...@boraso.com wrote (on Monday, 29 December 2008, 03:48 AM -0800): I'do more test. I note that is the query() function to a Zend_Dom_Query object that increase the memory. I unset() both Zend_Dom_Query and Zend_Dom_QueryResult objects and the problem persist! If I comment the query functions the memory usage does not increase!! Well, that makes sense -- you're not actually performing any operations on the DOM at that point. I've no idea $dom = new Zend_Dom_Query($response); $domDiv = $dom-query('div[class=someClass]'); Rewrite this to: $domDiv = $dom-query('div.someClass'); as that's the correct CSS selector equivalent of what you're attempting to do. That may make a difference in resource usage. //this code goes in out of memory $dom = new Zend_Dom_Query($response); //$domDiv = $dom-query('div[class=someClass]'); //this code DO NOT goes in out of memory -- Matthew Weier O'Phinney Software Architect | matt...@zend.com Zend Framework | http://framework.zend.com/
Re: [fw-general] Zend_Dom out of memory
ok, with the sintax $domDiv = $dom-query('div.someClass'); it works nice!!! but the sintax 'div[class=someClass]' I've used is suggested in the Zend documentation (http://framework.zend.com/manual/en/zend.dom.query.html) in the 'arbitrary attributes' section there is an error in the library?? -- View this message in context: http://www.nabble.com/Zend_Dom-out-of-memory-tp21125082p21203493.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend_Dom out of memory
-- Lossoth marco.pasqual...@boraso.com wrote (on Monday, 29 December 2008, 05:51 AM -0800): ok, with the sintax $domDiv = $dom-query('div.someClass'); it works nice!!! but the sintax 'div[class=someClass]' I've used is suggested in the Zend documentation (http://framework.zend.com/manual/en/zend.dom.query.html) in the 'arbitrary attributes' section there is an error in the library?? Nah, just the docs. :) -- Matthew Weier O'Phinney Software Architect | matt...@zend.com Zend Framework | http://framework.zend.com/
[fw-general] Zend_DB : deletion
Hello Folks, Is there a provision in the -delete( 'table', ... ) to handle IN clauses or subqueries? eg: 1. DELETE FROM table1 WHERE col1 IN ( '1', '2' ) 2. DELETE FROM table1 WHERE col1 IN ( SELECT col2 FROM table2 WHERE col3=? ) Or is it only capable of handling basic equalities? Thanks. Alex
Re: [fw-general] Zend_Dom out of memory
ok, thanks a precisation: the wrong notation 'div[class=someClass]' don't gives an error, only a strange increase of memory... can I do something to notificate the error in the docs this problem causes to me a week of delay in my project !!! -- View this message in context: http://www.nabble.com/Zend_Dom-out-of-memory-tp21125082p21203965.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend_Dom out of memory
sorry, another question: there is any way to use the 'arbitrary attributes' described in the docs? sometime they can be more usefull... -- View this message in context: http://www.nabble.com/Zend_Dom-out-of-memory-tp21125082p21204052.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend_Paginator Negative itemCountPerPage
Hi Bradley, Use the scrolling style All instead. Please see http://framework.zend.com/manual/en/zend.paginator.usage.html for more information. -Matt On Sun, Dec 28, 2008 at 6:40 PM, Bradley Holt bradley.h...@foundline.comwrote: I was looking for a way to have Zend_Paginator show all of the items. For example, I have a selector that allows a user to show 25, 50, 100, or all records. I couldn't find any documentation but by experimenting I found that I could pass a negative one (-1) to setItemCountPerPage and it would show all items (actually, I think any negative number will show all items). Since I couldn't find any documentation on this I'm wondering if this is a supported feature of Zend_Paginator that just happens to work now but might break in the future. Thanks, Bradley -- Bradley Holt bradley.h...@foundline.com
Re: [fw-general] Zend_Paginator Negative itemCountPerPage
Matt, I'll give that a try, thanks! Since I really just want to change the item count per page to infinite I was hoping I could simply do this by changing my count parameter (like I do with the 25, 50, and 100 selectors) and passing it on as is. I should probably just go ahead and enter a feature request for this but I wanted to check first if it was supposed to work but just not documented. Thanks, Bradley On Mon, Dec 29, 2008 at 1:00 PM, Matthew Ratzloff m...@builtfromsource.comwrote: Hi Bradley, Use the scrolling style All instead. Please see http://framework.zend.com/manual/en/zend.paginator.usage.htmlfor more information. -Matt On Sun, Dec 28, 2008 at 6:40 PM, Bradley Holt bradley.h...@foundline.comwrote: I was looking for a way to have Zend_Paginator show all of the items. For example, I have a selector that allows a user to show 25, 50, 100, or all records. I couldn't find any documentation but by experimenting I found that I could pass a negative one (-1) to setItemCountPerPage and it would show all items (actually, I think any negative number will show all items). Since I couldn't find any documentation on this I'm wondering if this is a supported feature of Zend_Paginator that just happens to work now but might break in the future. Thanks, Bradley -- Bradley Holt bradley.h...@foundline.com -- Bradley Holt bradley.h...@foundline.com
Re: [fw-general] Zend_Dojo Email validation, checkbox and Submit dojo form question- please?
There was a few members pointing that this wont work, and i dont have it worked yet. Any new ideas? drj201 wrote: I confirm this does not work using capture... I have the same problem. Thanks gerardroche wrote: vladimirn wrote: Alert you suggested me to make wont work as well :( phtml: ? $this-dojo()-javascriptCaptureStart() ? function validateForm() { var form = dijit.byId(signup); if (!form.validate()) { alert(Invalid form); return false; } return true; } ? $this-dojo()-javascriptCaptureEnd() ? ? $this-dojo()-onLoadCaptureStart() ? function () { dojo.connect(dijit.byId(signup), onSubmit, validateForm); } ? $this-dojo()-onLoadCaptureEnd() ? div class=signupForm ?= $this-form ? /div Thanks, Vladimir Sorry, you're right, this doesn't work. The javascript works if you do the following, i.e. paste it in After the dojo helper is echoed: ?php echo $this-dojo()-addStylesheetModule('dijit.themes.tundra'); ? script type=text/javascript //![CDATA[ dojo.addOnLoad(function () { dojo.connect(dijit.byId(form id), onSubmit, validateForm); } ); function validateForm() { var form = dijit.byId(form id); if (form.validate()) { alert(Invalid form); return false; } return true; } //]] /script That'll work, but when you capture it it doesn't. Bug? This is the javascript produced if you capture it via the dojo helper: script type=text/javascript //![CDATA[ dojo.require(dijit.form.ValidationTextBox); dojo.require(dijit.form.Button); dojo.require(dijit.form.Form); dojo.require(dojo.parser); dojo.addOnLoad(function () { dojo.connect(dijit.byId(form id), onSubmit, validateForm);} ); dojo.addOnLoad(function() { dojo.forEach(zendDijits, function(info) { var n = dojo.byId(info.id); if (null != n) { dojo.attr(n, dojo.mixin({ id: info.id }, info.params)); } }); dojo.parser.parse(); }); function validateForm() { var form = dijit.byId(form id); if (!form.validate()) { alert(Invalid form); return false; } return true; } var zendDijits = [{id:name,params:{invalidMessage:Required,trim:true,required:true,dojoType:dijit.form.ValidationTextBox}},{id:submit,params:{label:Save,dojoType:dijit.form.Button}},{id:clubForm,params:{dojoType:dijit.form.Form}}]; //]] /script -- View this message in context: http://www.nabble.com/Zend_Dojo-Email-validation%2C-checkbox-and-Submit-dojo-form-question--please--tp19441003p21208670.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend_Paginator Negative itemCountPerPage
Hi Bradley, Sorry about the confusion, I misread your requirement. The -1 trick is in fact not an intended feature (if it were, it would be 0, to be in line with typical PHP API), but if it works, use it for now. Whatever fix will just test for 1, so your code should be forward-compatible. I highly encourage you to file an enhancement ticket so that this can be implemented properly. If you do, please copy and paste this e-mail exchange as a comment into the ticket. Thanks, -Matt On Mon, Dec 29, 2008 at 11:56 AM, Bradley Holt bradley.h...@foundline.comwrote: Matt, Taking a closer look at the documentation, the All scrolling style returns every page. I'm not trying to show every page in the paginator control, I'm trying to have an infinite item count *per page* (which, of course, will make it so I have only one page of items). Like I said, passing a negative one (-1) to the setItemCountPerPage method does the job - I just don't know if this is an intended feature or something that just happens to work now but may not be supported in the future. Thanks, Bradley On Mon, Dec 29, 2008 at 1:00 PM, Matthew Ratzloff m...@builtfromsource.com wrote: Hi Bradley, Use the scrolling style All instead. Please see http://framework.zend.com/manual/en/zend.paginator.usage.htmlfor more information. -Matt On Sun, Dec 28, 2008 at 6:40 PM, Bradley Holt bradley.h...@foundline.com wrote: I was looking for a way to have Zend_Paginator show all of the items. For example, I have a selector that allows a user to show 25, 50, 100, or all records. I couldn't find any documentation but by experimenting I found that I could pass a negative one (-1) to setItemCountPerPage and it would show all items (actually, I think any negative number will show all items). Since I couldn't find any documentation on this I'm wondering if this is a supported feature of Zend_Paginator that just happens to work now but might break in the future. Thanks, Bradley -- Bradley Holt bradley.h...@foundline.com -- Bradley Holt bradley.h...@foundline.com
Re: [fw-general] Zend_Paginator Negative itemCountPerPage
Matt, No problem and thanks for the info! I'll keep using -1 for now since you say that will be forward-compatible. I've opened an enhancement ticket as ZF-5376: http://framework.zend.com/issues/browse/ZF-5376 Thanks, Bradley On Mon, Dec 29, 2008 at 5:18 PM, Matthew Ratzloff m...@builtfromsource.com wrote: Hi Bradley, Sorry about the confusion, I misread your requirement. The -1 trick is in fact not an intended feature (if it were, it would be 0, to be in line with typical PHP API), but if it works, use it for now. Whatever fix will just test for 1, so your code should be forward-compatible. I highly encourage you to file an enhancement ticket so that this can be implemented properly. If you do, please copy and paste this e-mail exchange as a comment into the ticket. Thanks, -Matt On Mon, Dec 29, 2008 at 11:56 AM, Bradley Holt bradley.h...@foundline.com wrote: Matt, Taking a closer look at the documentation, the All scrolling style returns every page. I'm not trying to show every page in the paginator control, I'm trying to have an infinite item count *per page* (which, of course, will make it so I have only one page of items). Like I said, passing a negative one (-1) to the setItemCountPerPage method does the job - I just don't know if this is an intended feature or something that just happens to work now but may not be supported in the future. Thanks, Bradley On Mon, Dec 29, 2008 at 1:00 PM, Matthew Ratzloff m...@builtfromsource.com wrote: Hi Bradley, Use the scrolling style All instead. Please see http://framework.zend.com/manual/en/zend.paginator.usage.html for more information. -Matt On Sun, Dec 28, 2008 at 6:40 PM, Bradley Holt bradley.h...@foundline.com wrote: I was looking for a way to have Zend_Paginator show all of the items. For example, I have a selector that allows a user to show 25, 50, 100, or all records. I couldn't find any documentation but by experimenting I found that I could pass a negative one (-1) to setItemCountPerPage and it would show all items (actually, I think any negative number will show all items). Since I couldn't find any documentation on this I'm wondering if this is a supported feature of Zend_Paginator that just happens to work now but might break in the future. Thanks, Bradley -- Bradley Holt bradley.h...@foundline.com -- Bradley Holt bradley.h...@foundline.com -- Bradley Holt bradley.h...@foundline.com