[fw-general] Autoload and lambda functions

2009-07-03 Thread Markus Wolff
Hi there, I've been toying around with the new bootstapping mechanism and autoload capabilities in ZF 1.8. To add the icing on the cake, I'm also using PHP 5.3's new lambda functions. This combination does not yet work for me, though. Here's an example from my Bootstrap class: $loader = Zend_Lo

[fw-general] Autoload and lambda functions

2009-07-03 Thread Markus Wolff
Hi there, I've been toying around with the new bootstapping mechanism and autoload capabilities in ZF 1.8. To add the icing on the cake, I'm also using PHP 5.3's new lambda functions. This combination does not yet work for me, though. Here's an example from my Bootstrap class: $loader = Zend_Lo

Re: [fw-general] Zend_Form and Zend_Filter_Input

2008-03-03 Thread Markus Wolff
Matthew Weier O'Phinney schrieb: As I mentioned, if you'd like to see support for Zend_Filter_Input in Zend_Form, put an issue in the tracker. But my goal is to (a) have Zend_Form implement Zend_Validate_Interface so it can be used as a general purpose validator for sets of data (this will be don

Re: [fw-general] Zend_Form and Zend_Filter_Input

2008-03-03 Thread Markus Wolff
Matthew Weier O'Phinney schrieb: Something along the lines of: $validatorChain = $dataObject->getValidators(); /* @var $validatorChain Zend_Filter_Input */ $form = new Zend_Form(); $form->setValidators($validatorChain); Or will I have to recreate all filter rules whenever I want to use Zend_Fo

[fw-general] Zend_Form and Zend_Filter_Input

2008-03-03 Thread Markus Wolff
Hey there, I'm currently taking my first steps with Zend_Form. Previously, I've used Zend_Filter_Input for all my validation needs. I have a nice validator chain generator for ActiveRecord-like objects, so that I don't need to write all validation rules by hand. The resulting objects are not

Re: [fw-general] Zend_Lucene_Search for PDFs

2007-11-01 Thread Markus Wolff
Jack Sleight schrieb: With regard to other converting tools, I've yet to find any that are purely class based (like Zend_Pdf), they all require some sort of additional software or extension installed on the server, which isn't possible for many, am I wrong? Markus Wolff wrote:

Re: [fw-general] Zend_Lucene_Search for PDFs

2007-11-01 Thread Markus Wolff
Alexander Veremyev schrieb: Text extraction feature is planned since first versions of Zend_Pdf and was estimated as “easy to implement”. But it’s not done up to now. The problem is in some special cases which increase implementation complexity. I mean compressed or encrypted text streams and s

Re: [fw-general] Zend_Search_Lucene: Problem finding documents by URL

2007-10-31 Thread Markus Wolff
Alexander Veremyev schrieb: Hi Markus, I think the problem is caused by colon symbol, so "http" is interpreted as a field name. You can check this by printing parsed query: $parsedQuery = Zend_Search_Lucene_Search_QueryParser::parse('url:'.$path); echo $parsedQuery->__toString(

[fw-general] Zend_Search_Lucene: Problem finding documents by URL

2007-10-30 Thread Markus Wolff
Hey there, I've started working on a service-oriented search application using Zend_Search_Lucene (http://marjory.wolff-hamburg.de/trac/), and since this is the first time I'm really trying to use Lucene in production, I'm bound to run into problems :-) To update an existing document, I firs

Re: [fw-general] .Net or Zend Framework?

2007-10-07 Thread Markus Wolff
Hi there, sorry, can't resist commenting on this one (having worked with .NET in the past)... I promise this will be my only post regarding this topic though :-) Alex Netkachov schrieb: 1. I consider compilation and strong typization are very important in development because they help to avo

Re: [fw-general] Lucene and highlighting

2007-09-24 Thread Markus Wolff
Am Samstag, den 22.09.2007, 09:09 +0200 schrieb Markus Fischer: > I've a question about highlighting: I know that Zend_Lucene provides > it's own highlighting. However the individual results are using a custom > made HTML which is not suitable for our case. For my case I would prefer > the raw stri

Re: [fw-general] Graphs Library

2007-08-29 Thread Markus Wolff
Am Mittwoch, den 29.08.2007, 18:31 +0200 schrieb Xavier Vidal Piera: > Is there any thought to implement (in a near future) a Zend Graph > Component? > > I know there are good libraries (jpgraph, postgraph, php/swf > charts, ...) but maybe could be a good idea to implement a new one > (without rei

Re: [fw-general] Beginner demo - feed reader

2007-08-20 Thread Markus Wolff
Am Montag, den 20.08.2007, 07:44 -0700 schrieb kabel: > Similar problem here with $item->link(). For podcasts, the iTunes > namespace seems to either overwrite or cause the same array issue as > previously stated. > > I find myself using the firstChild->data of the DOM Element, which I'm > fairly

Re: [fw-general] Beginner demo - feed reader

2007-08-20 Thread Markus Wolff
Am Montag, den 20.08.2007, 13:46 +0200 schrieb Markus Wolff: > Here's an example feed that doesn't work too well with Zend_Feed: > http://toyflish.de/service/feed.php > > When you iterate through the feed items and try to access $item->title() > or $item->descriptio

Re: [fw-general] Beginner demo - feed reader

2007-08-20 Thread Markus Wolff
Am Montag, den 20.08.2007, 14:07 +0200 schrieb till: > > When you iterate through the feed items and try to access $item->title() > > or $item->description(), what you'll get instead of the expected string > > is an array with two DOMElement objects. The reason being, that there > > are two of thes

Re: [fw-general] Beginner demo - feed reader

2007-08-20 Thread Markus Wolff
Am Samstag, den 14.07.2007, 12:38 +0200 schrieb Andries Seutens: > Hi all, > > I have written a small demo app for those of you looking for a quick > start with Zend Framework. > > You can view, and download the demo at: > http://andries.systray.be/zf-demos/feed-reader/ Hi Andries, just like y

RE: [fw-general] Password validation

2007-07-23 Thread Markus Wolff
Am Sonntag, den 22.07.2007, 21:32 -0700 schrieb Bill Karwin: > > -Original Message- > > From: buster [mailto:[EMAIL PROTECTED] > > If you look in the docs here: > > http://framework.zend.com/manual/en/zend.filter.input.html > > under 13.5.4.1. > > they actually give this exact situation.

Re: [fw-general] Password validation

2007-07-22 Thread Markus Wolff
this is not possible. CU Markus Karol Grecki schrieb: Markus I think this problem is so trivial that it doesn't require a dedicated validator. You usually need it once during signup and it's solved by simple == operator. Regards Karol Markus Wolff wrote: Hey Jason, that's wh

Re: [fw-general] Password validation

2007-07-22 Thread Markus Wolff
;) ); $input = new Zend_Filter_Input($f, $v, $_POST); if ($input->hasInvalid()) { echo "Uh-oh, the password fields do not contain the same value!"; } Solution b) would do fine for my purposes alone, but it feels kinda ugly. What would you others think/recommend

Re: [fw-general] Password validation

2007-07-22 Thread Markus Wolff
the package maintainer? CU Markus Jason Qi schrieb: Hi Markus, Do you think the Standard Validation Classes is useful for you? http://framework.zend.com/manual/en/zend.validate.set.html Or you might write Validators yourself to fit your needs. see here: http://framework.zend.com/manual/en/zend.

[fw-general] Password validation

2007-07-22 Thread Markus Wolff
Hi there, quite often one has to make a form where a user can create a user account. It's customary to add two password fields, and add a validation rule so that when the entries in both fields do not match, an error message is presented to the user. I was searching for such a validation rul

Re: [fw-general] Partial bundling and dependencies

2007-07-16 Thread Markus Wolff
Bill Karwin schrieb: -Original Message- From: Markus Wolff [mailto:[EMAIL PROTECTED] Still, having dependency info in the manual would be nice for the future (hint, hint :-)). That's not good information to put into a manual, because it is so likely to become outdated and inacc

Re: [fw-general] Partial bundling and dependencies

2007-07-16 Thread Markus Wolff
Am Montag, den 16.07.2007, 18:08 +0100 schrieb Jack Sleight: > Ah OK, fair enough. Well I don't know if it helps you at all but this is > a modified version of a function I wrote to scan through the ZF library > classes for something else. It will return an array of all the classes, > and the fi

Re: [fw-general] Partial bundling and dependencies

2007-07-16 Thread Markus Wolff
Am Montag, den 16.07.2007, 23:39 +0800 schrieb Jude Aakjaer: > Hi Markus, > > I'm in a similar situation inasmuch as I'm running many sites off the same > codebase. Have you not thought of having all your clients connect into the > same library directory? Then you don't need to upload massive am

Re: [fw-general] Partial bundling and dependencies

2007-07-16 Thread Markus Wolff
Am Montag, den 16.07.2007, 16:39 +0100 schrieb Jack Sleight: > Are all of your sites on the same server? If they are you could do what > I have and just place one copy of the whole framework on the server in a > central location that all sites can access. All you need to be careful > of is that

[fw-general] Partial bundling and dependencies

2007-07-16 Thread Markus Wolff
Hi all, I'm currently assembling a stripped-down version of the Zend Framework, including only the few components that our application needs, with the purpose of bundling these components with our application. This is a slow and tedious process, as I really don't want to include any files that ar

Re: [fw-general] Getting a grip on Zend_Service_Delicious

2007-07-12 Thread Markus Wolff
r-intuitive to me, I would have expected it to return *all* posts if I specify null or 0 as the second parameter. Oh, well... thanks anyway :-) CU Markus Am Freitag, den 06.07.2007, 15:49 +0200 schrieb Markus Wolff: > Hey Darby, > > unfortunately, it's zero.

Re: [fw-general] Getting a grip on Zend_Service_Delicious

2007-07-06 Thread Markus Wolff
/del.icio.us/feeds/json/mwolff/, which is not only correct, but also contains a number of posts. Bug? CU Markus Am Freitag, den 06.07.2007, 09:21 -0400 schrieb Darby Felton: > Hi Markus, > > It appears that your usage is correct... what is the result of > count($posts)? >

[fw-general] Getting a grip on Zend_Service_Delicious

2007-07-06 Thread Markus Wolff
Hey guys, I'm currently trying to figure out Zend_Service_Delicious. I really don't want to do anything complicated, just fetch a user's public posts. According to the manual, this should work nicely: $feed = new Zend_Service_Delicious(); $posts = $feed->getUserPosts('mwolff'); foreach($posts as

Re: [fw-general] Alternative Data Storage? (CSV, Tabbed, XML)

2007-07-02 Thread Markus Wolff
Am Montag, den 02.07.2007, 09:24 -0700 schrieb Jack Sleight: > Other than Zend_Db, there's currently no support for reading and > manipulating locally stored data built into ZF. The only alternatives are > Zend_Feed and Zend_Service, for pulling in external data. > > What I was thinking was a new

Re: [fw-general] Form validation and error/success messages

2007-05-03 Thread Markus Wolff
José de Menezes Soares Neto schrieb: Hi friends, 1) I would like to make form validations using Zend Framework (not Javascript), how to do this in the best way? 2) Other thing is, how to display errors and success messagens? Hi, also have a look at this proposal: http://framework.zend.com

Re: [fw-general] OT: Duplicate mails?

2007-04-13 Thread Markus Wolff
David Brännlund schrieb: > Markus Wolff wrote: Hey there, am I the only one getting almost every mail multiple times? It's been going on for the past two weeks or so I think... I didn't mind a lot as long as I got each mail "only" three or four times but today, I go

[fw-general] OT: Duplicate mails?

2007-04-13 Thread Markus Wolff
Hey there, am I the only one getting almost every mail multiple times? It's been going on for the past two weeks or so I think... I didn't mind a lot as long as I got each mail "only" three or four times but today, I got some mails more than fifteen times... that's definitely way above my pain

Re: [fw-general] Zend_Data Proposal

2007-02-14 Thread Markus Wolff
nerVo schrieb: Hmmm, if i understand, you want to change already existing (or not :) )ZF elements, in order them to serve methods of Zend_Data Interface ? Am i right ? Basically, yes - but a reasonable approach would of course be to first identify common patterns in existing classes and try t

Re: [fw-general] Zend_Data Proposal

2007-02-14 Thread Markus Wolff
nerVo schrieb: Yes, just an interface is perhaps better than a class. But how do you "connect" your implemented object to data sources ? You still need some kind of adapters and an abstraction layer, no ? I keep in mind the datagrid example, which - i think - might just take an object as a da

Re: [fw-general] Zend_Data Proposal

2007-02-13 Thread Markus Wolff
nerVo schrieb: But in a more advanced way of using ZF for developping web application, soon or later, some components like automatic datagrids or automatic forms will emerge. And that's not the only reason. If you think about it, in most cases, a web application consists in manipulating datas

Re: [fw-general] Zend_Validator "runner" class

2007-02-06 Thread Markus Wolff
Bill Karwin schrieb: Because the use cases are so diverse, there may be no single "runner" solution that solves all of these, and we should not try to make a single solution. Agreed. I suggest that we try to write proposals for solving different use cases, and treat them as separate componen

[fw-general] Zend_Validator "runner" class (was: Re: [fw-general] Where did the proposal for Zend_Validator go?)

2007-02-05 Thread Markus Wolff
Darby Felton schrieb: Hi Dale, You can find the most recent proposal that addresses the filter and validation functionality of Zend_Filter (now Zend_Filter and Zend_Validate in the incubator) here: Zend_Filter Design Proposal - Darby Felton http://framework.zend.com/wiki/x/Wi8 Hi Darby, is t

Re: [fw-general] Comment on Zend_Validate

2007-02-02 Thread Markus Wolff
Darby Felton schrieb: We do not yet have a component that provides full functionality for working with forms; this is a large undertaking, and there are a couple of proposals for such: Zend_Form - Simon Mundy & Ralf Eggert http://framework.zend.com/wiki/x/DA4 Zend_Form_Controller Proposal - Sim

Re: [fw-general] Comment on Zend_Validate

2007-02-02 Thread Markus Wolff
Troy L. Marker schrieb: My suggestion is to change how the validation receives it values. For instance, you have an array as follows: $aData = ('username' => 'someone', 'password' => 'somepass'); You could pass this array to Zend_Validata as follows: $valid = new Zend_Validate($aData); Now ea

Re: [fw-general] Object Relational Mapping

2006-12-23 Thread Markus Wolff
Allard Buijze schrieb: Does such ORM component deserve a place in the Zend Framework and are there any people that would like to create it with me? Please let me know. Hi Allard, see: http://framework.zend.com/wiki/display/ZFDEV/Zend_Db_Table+-+OO+Interface+Enhancements PS. Some ideas of the

Re: [fw-general] Converting html2pdf with Zend_PDF?

2006-11-17 Thread Markus Wolff
Christian Wittwer schrieb: Hi Alexander, Thank for your quick answer. I found dompdf (http://www.digitaljunkies.ca/dompdf/), which exactly does what I want. You might also be interested in htmldoc: http://www.easysw.com/htmldoc/ CU Markus

Re: [fw-general] Anyone using/planning to use Zend_Db_Table?

2006-10-25 Thread Markus Wolff
Simon R Jones schrieb: This is suboptimal for production because you insert yet another layer (parsing) impacting on performance. You'd better have a generator divided in two parts. One to read database schema and one to output it, so the second can be made to output php code or xml plus ph

Re: [fw-general] Anyone using/planning to use Zend_Db_Table?

2006-10-25 Thread Markus Wolff
Abu Hurayrah schrieb: We got around this by actually caching the result of the SHOW COLUMNS call per each request, and then simply checking for the presence of this key (the table name) within the cache. If it existed, we used the cached result. This boosted performance significantly, such th

Re: [fw-general] Coming to the pear command line near you!

2006-10-08 Thread Markus Wolff
Richard Thomas schrieb: This will be setup with various releases of the full package. The idea is to setup a pear channel where you can install all of the Zend Framework with a simple "pear install" This will provide quick and easy access to all the releases and current snapshots through pea

Re: [fw-general] I wish this (or something like it) was part of ZF

2006-10-06 Thread Markus Wolff
Gavin Vess schrieb: Yes, work is actively underway, but we would like more people to join the effort: http://framework.zend.com/wiki/display/ZFDEV/Auth+Team We are trying to make Zend_Authenticate flexible enough to support many different authentication schemes. One thing that many authenti

Re: [fw-general] Coding Standards & ZF 0.2

2006-09-29 Thread Markus Wolff
Peter Pistorius schrieb: Andries Seutens wrote: No braces ... oh oh oh ... please don't make that switch. I agree! Same here. Why not just stick to what's become common in PHP-land and use the well-known and proven PEAR coding standards? Ok, I don't really care if it's spaces or tabs for

Re: [fw-general] Zend_Db_Table is not a base for a model in MVC

2006-09-27 Thread Markus Wolff
Victor Bolshov schrieb: One cannot simply port Rails-ActiveRecord to PHP (there are certain features used that are not yet implemented in PHP, possibly will be in PHP6). Hi Victor, Just out of curiosity: What features do you think these are? CU Markus

Re: [fw-general] Re: German docs: how to address the reader

2006-09-20 Thread Markus Wolff
Thomas Munz schrieb: Well, "des Systemes" is correct :) "des Systems" is the dialect :). ( also it should be written "System's" ) Das System Die SystemE Des SystemES <-- Right one :) Actually, IMHO "des Systems" and "des Systemes" are both legal, while "System's" just looks and feels plain w