[fw-general] Providing date for Zend_Feed issue

2009-06-03 Thread Michał Zieliński
I try to add pubDate with Zend_Date to get proper +0200 (Poland) Here is my code: $date = new Zend_Date($news-date, Zend_Date::ISO_8601, 'pl'); $date-get(Zend_Date::RFC_822); But trying to add this one I receive warning: gmdate() expects parameter 2 to be long, string given in...

[fw-general] New filter?

2009-02-04 Thread Michał Zieliński
Sometimes you`d like to present the file size in a more friendlier way than 1B. Is not that it is hard to write such view helper or filter to do so but I see that Zend_Validator_Size already do something like this. protected function _toByteString($size) { $sizes =

Re: [fw-general] Problem by creating a custom router with fall back to a CMS database module

2008-12-21 Thread Michał Zieliński
Is this preferred way to solve such problem? -- View this message in context: http://www.nabble.com/Problem-by-creating-a-custom-router-with-%22fall-back%22-to-a-%22CMS-database-module%22-tp19646242p21116555.html Sent from the Zend Framework mailing list archive at Nabble.com.

Re: [fw-general] Friendly URLs

2008-12-03 Thread Michał Zieliński
Thanks Matt. I create route like this: routes.x.type = Zend_Controller_Router_Route_Regex routes.x.route = (.*) routes.x.defaults.module = default routes.x.defaults.controller = section routes.x.defaults.action = load routes.x.map.1 = path For uri like /about/history/1999/ I get output like:

Re: [fw-general] Friendly URLs

2008-12-03 Thread Michał Zieliński
Sorry for the emails. My mistake, won`t happen again :[ Thanks for reply. -- View this message in context: http://www.nabble.com/Friendly-URLs-tp6055801p20817780.html Sent from the Zend Framework mailing list archive at Nabble.com.

Re: [fw-general] Friendly URLs

2008-12-01 Thread Michał Zieliński
Sorry for refreshing so old thread but I have question to the example. What if I don`t have the max depth of menu/submenu? I mean in the above example there can be two submenu: submenu and subsubmenu. What if there could be more? Is there a way to define it less static? THanks for any clue. --

[fw-general] tree structure and routes

2008-12-01 Thread Michał Zieliński
I`ve website sections stored in db. Each section has zero or more children which then can also have children... so these sections are stored as a tree structure. Here is a sample sections hierarchy with url addresses: -Home (http://domain.com/) -About (http://domain.com/about/) -Structure

[fw-general] Zend_Form - a bit more complex forms

2008-11-19 Thread Michał Zieliński
Hi. Let me show an example: http://zielinski.civ.pl/test/form/form.html I must create some kind of inquiry form, which is and probably will be more complex than typical web forms. Of course I know that decorators exists. However this time I failed. I`ve no idea how to use h2 nor checkbox with

Re: [fw-general] Zend_Form - a bit more complex forms

2008-11-19 Thread Michał Zieliński
Thanks for reply Bart. Bart McLeod wrote: Personally, I like to delegate building my form to a formbuilder that knows how to add the decorators. Interesting idea. Can you write a bit more about it? Bart McLeod wrote: However, If you want to do it the basic way, you are probably

[fw-general] Zend_Search_Lucene for enterprise

2008-11-11 Thread Michał Zieliński
Today I read a post on one blog about Zend_Search_Lucene: http://www.builtfromsource.com/2008/11/07/zend_search_lucene-not-enterprise-ready/ Wondering if it is just a matter of bad usage of the component or it`s a fact that for large projects Z_S_L (where large indexes are needed) just isn`t the

Re: [fw-general] Zend_Search_Lucene for enterprise

2008-11-11 Thread Michał Zieliński
Ugh... sorry, I definitely missed that. Thanks for link. Ralf Eggert wrote: Hi Michal, Today I read a post on one blog about Zend_Search_Lucene: http://www.builtfromsource.com/2008/11/07/zend_search_lucene-not-enterprise-ready/ A couple of days ago I started the kind of same

Re: [fw-general] About Zend_Pdf tables

2008-10-19 Thread Michał Zieliński
pcdinh wrote: Is there any progress in this case? I find it nowhere in Zend_Pdf documentation A few months ago I heard on irc that there is no developer who could carry and focus on this component. So I guess there is no progress. -- View this message in context:

[fw-general] Old issues

2008-10-03 Thread Michał Zieliński
Hi. I`d like to ask if there are any plans to solve old issues? All I can see is that most fixes are about new added features. It`s cool and I`m very thankfull for your hard work and pushing the ZF forward but I hope some day ZF Team would finally return to old ones as well. They are all

Re: [fw-general] Zend_Pdf - Text in Box

2008-09-11 Thread Michał Zieliński
There is no free class which supports everything, afaik. If one gives you line wrapping than doesn`t support UTF-8. Dimitri van Hees wrote: this is exactly the reason why i don't use Zend_PDF ;-) Karol Grecki wrote: Matthias There's no ready solution for it, but it can be done. You

[fw-general] Caching backend adapters

2008-09-04 Thread Michał Zieliński
At the moment I`m storing cached data in files. It works fine. However I`d like to try out others adapters for APC or Memcache to speed some part of my app even more. In manual I read: Be careful : with this backend, tags are not supported for the moment as the doNotTestCacheValidity=true

Re: [fw-general] Zend_Pdf and printing in general questions

2008-08-25 Thread Michał Zieliński
Thanks Bryce Lohr-2 I`m trying to find the quickes option. When you have to create so many (3000) documents for print, all you have to provide to your client is reasonable time generation takes. I see it difficult with PHP than. -- View this message in context:

Re: [fw-general] Zend_Pdf and printing in general questions

2008-08-23 Thread Michał Zieliński
Thanks Bram for feedback. Although i would suggest making 3000 single page documents instead of 2 massive files. Because there is almost no hit in the creation of the files but all the processing time is spent in the layout preparation phase. In my application we prepare a pdf of the

[fw-general] using Zend_Pdf

2008-08-21 Thread Michał Zieliński
Hi, I`d like to create a big pdf document so I`ve made a simple test [code] $s = microtime(true); $pdf = new Zend_Pdf(); $font = Zend_Pdf_Font::fontWithPath('arial.ttf'); for ($i=0;$i2000;$i++) { $page = $pdf-newPage(709,496);

Re: [fw-general] How are you using Zend_Pdf?

2008-08-20 Thread Michał Zieliński
I`m also interested in Zend_Pdf. I`d would also ask if there are any notes/todo lists describing what is planned to do in future releases in Zend_Pdf component? There is much to read about needs but no official info from either Alexander nor other ZF Team member. Thanks in advance for any hints

Re: [fw-general] Zend_Pdf requirements

2008-08-13 Thread Michał Zieliński
http://framework.zend.com/wiki/display/ZFDEV/Zend_Pdf+requirements Could you please update the list with what was already done and what is planned to be done for future releases. Thanks in advance. Regards, Mike Alexander Veremyev wrote: Hi all, I've tried to collect Zend_Pdf

Re: [fw-general] Overriding Zend_Loader::loadClass()

2008-08-12 Thread Michał Zieliński
Shame, but I understand. Thanks for clarification. Matthew Weier O'Phinney-3 wrote: -- Michał Zieliński [EMAIL PROTECTED] wrote (on Monday, 11 August 2008, 10:27 PM -0700): Although in http://www.nabble.com/Zend_Form-and-generating-fields-td18826312.html#a18830980 one thread Matthew

Re: [fw-general] Overriding Zend_Loader::loadClass()

2008-08-11 Thread Michał Zieliński
Jack, could you please paste the formatted code on the http://paste2.org/ or elsewhere. It would be easier to look at. Summarizing... To get better performance (at the time) of ZF you need to remove all require_once from lib classes and write your own autoloader based on SPL? Right? (of course

[fw-general] Zend_Pdf and printing in general questions

2008-08-08 Thread Michał Zieliński
Hi. I`m wondering if there is some kind of option to redirect output to the printer :) I`d like to create a functionality for preparing quite a lot of invoices and envelopes and after that print it automatically. At first, I thought about Zend_Pdf, although I don`t know how it will handle the

[fw-general] Zend_Form and generating fields

2008-08-05 Thread Michał Zieliński
I`d like to generate a form which lists products and provides one field for each product. Seems to be easy, so I do sth like: http://paste2.org/p/55571 Unfortunately it is slow! For 10 products it takes 0.6 sec. to generate. Is there a better (more efficient) method to build such forms via

Re: [fw-general] Zend_Form and generating fields

2008-08-05 Thread Michał Zieliński
Yes but caching doesn`t answer the question why this operation is so slow. Matthew Weier O'Phinney-3 wrote: -- Michał Zieliński [EMAIL PROTECTED] wrote (on Tuesday, 05 August 2008, 01:00 AM -0700): I`d like to generate a form which lists products and provides one field for each product

Re: [fw-general] Zend_Form and generating fields

2008-08-05 Thread Michał Zieliński
It`s great to hear that performance audit is planning. I`ll definitely share everything I`ve noticed and benchmarked. Thanks for info Matthew. Matthew Weier O'Phinney-3 wrote: -- Michał Zieliński [EMAIL PROTECTED] wrote (on Tuesday, 05 August 2008, 06:20 AM -0700): Yes but caching

[fw-general] confirmation with zend_form?

2008-07-03 Thread Michał Zieliński
After submiting form with data and before it`s saved sometimes it is usefull to offer user a chance to confirm sending data. How it should be done? Should I use subform for this or just another param checking if it is not only sent but also confirmed. I`m not sure if this case is right for use

Re: [fw-general] JQuery + AjaxContext = awesome

2008-05-15 Thread Michał Zieliński
right tutorials... Matthew is ZF dev team considering creating more tutorials, samples to manual, real-life examples with comments, etc.? I know that you are the person who's been writting great tuts and offering a valuable help here/irc/elsewhere, but you`re seem to be the very alone in your