Re: [fw-general] Status of Zend_Build / scaffolding

2008-08-15 Thread Ralf Eggert
Hi Keith, thanks for the links. I was looking at Zend_Tool the other day and got lost somehow while reading it. So I will need to take a much closer look soon. I will also keep an eye on the development list. Thanks and best regards, Ralf

[fw-general] ZF-2900

2008-08-15 Thread Marco
Hi All We have just come up against the issue as found in http://framework.zend.com/issues/browse/ZF-2900 whilst using 1.6.0 RC2 and the Zend_Rest_Client What is the recommended way to approach this? I can see 2 possible solutions currently 1. Create a validator for all TLD's (.com / .net /

Re: [fw-general] Zend_Form_Element_File

2008-08-15 Thread Tobias Gies
2008/8/13 Matthew Lurz [EMAIL PROTECTED] Thanks Thomas. I, quite wrongly, assumed that getValue would call Zend_File_Transfer_Adapter_Http:: receive() transparently. It's working now. Thanks again. This actually sounds like a valid (and sensible) feature request. Thomas, what's your

Re: [fw-general] Critical Error with Zend_Session

2008-08-15 Thread rolfneumann2
Hello! I run into exactly the same problem with my webserver. I am using Zend Framework v1.0.2. Did you find a solution/workaround already? Greets, Stefan -- View this message in context: http://www.nabble.com/Critical-Error-with-Zend_Session-tp15850221p18996215.html Sent from the Zend

Re: [fw-general] Zend_Form_Element_File

2008-08-15 Thread Thomas Weidner
Why should getValue() do a file transfer ??? That's unlogical. A Value is not an action... and transferring a file is an action. That's why we wrote a documentation and examples. So others know how to use the component. When you think that what I said is unlogical you should ask Matthew or add

Re: [fw-general] Zend_Form_Element_File

2008-08-15 Thread Jaka Jančar
It's not really illogical. You create Zend_Form_Element_Text, you get text as value, not the name of the variable it's stored in :) If you have a Zend_Db_Table_Row, which has fields corresponding to the form element, you can just to: $row-setFromArray($form-getValues()); I would expect

Re: [fw-general] Zend_Form_Element_File

2008-08-15 Thread Thomas Weidner
As I said... It's Matthews component, not mine. :-) I would expect a getFile Method to return the file, but not the getValue method. And how will you then get the name and location of the stored file ? That's what getValue() returns now. Also beware: Allowing getValue to return the file does

Re: [fw-general] Zend_Form_Element_File

2008-08-15 Thread Matthew Weier O'Phinney
-- Tobias Gies [EMAIL PROTECTED] wrote (on Friday, 15 August 2008, 10:05 AM +0200): 2008/8/13 Matthew Lurz [EMAIL PROTECTED] Thanks Thomas. I, quite wrongly, assumed that getValue would call Zend_File_Transfer_Adapter_Http:: receive() transparently. It's working now. Thanks

[fw-general] Zend_Feed from string

2008-08-15 Thread Dimitri van Hees
Hi list, I am sorry for bothering you again with this question, but I can't seem to find a solution to my problem. I use Zend_Http to fetch a feed so that I can handle a timeout in case the providing server is down. For another feed I need to login so I use CURL to fetch that feed. Anyway,

Re: [fw-general] Zend_Feed from string

2008-08-15 Thread Simone Carletti
Zend_Feed::importString($feed) should be the right solution. Which error did you receive? -- Simone On Fri, Aug 15, 2008 at 3:36 PM, Dimitri van Hees [EMAIL PROTECTED]wrote: Hi list, I am sorry for bothering you again with this question, but I can't seem to find a solution to my problem. I

Re: [fw-general] Zend_Feed from string

2008-08-15 Thread Dimitri van Hees
h I'm not sure whether it had something to do with my local configuration or with ZF 1.6 RC1, but appearantly after installing RC2 it indeed works with importString(). great stuff! thanks for your answer by the way! Simone Carletti wrote: Zend_Feed::importString($feed) should be the

[fw-general] Zend_Validate regex way to soluce ?

2008-08-15 Thread Bruno Friedmann
Hi All, I need to allow many special thing to be allowed in a username login field. (Historical database, so it would nearly impossible to change all this username) I need all Alpha numeric word present in french,english,german language so there a lot's of à é ö ü etc ... Plus username could

Re: [fw-general] Zend_Validate regex way to soluce ?

2008-08-15 Thread Matthias Coy
Hi there, I don't know about Zend_Validate, but preg_match works with unicode-characters. So please read http://www.regular-expressions.info/unicode.html for more info, especially the part Unicode Character Properties. S.th. like [\p{L}\.\-_ ]+ could work (untested). Regards Matthias Coy

Re: [fw-general] Critical Error with Zend_Session

2008-08-15 Thread WooKasZ
rolfneumann2 wrote: Hello! I run into exactly the same problem with my webserver. I am using Zend Framework v1.0.2. Did you find a solution/workaround already? Greets, Stefan sorry;/ no idea how to fix it;/ -- View this message in context:

[fw-general] Zend_Json::decode in Controller causing Blank Screen of Death

2008-08-15 Thread Jake McGraw
I've spent the last two days struggling with this error: We've been utilizing REST-ful JSON server for a couple of months now to host our data api (it's written using Zend Framework). Our client apps access this API, and decode the JSON. Yesterday, one of our client apps stopped working,

Re: [fw-general] Zend_Validate regex way to soluce ?

2008-08-15 Thread Bruno Friedmann
Matthias Coy wrote: Hi there, I don't know about Zend_Validate, but preg_match works with unicode-characters. So please read http://www.regular-expressions.info/unicode.html for more info, especially the part Unicode Character Properties. S.th. like [\p{L}\.\-_ ]+ could work

Re: [fw-general] Zend_Json::decode in Controller causing Blank Screen of Death

2008-08-15 Thread Christopher Östlund
Are there no errors written to logs? Usually when I get a blank screen display_errors = Off, but log_errors = On. On Fri, Aug 15, 2008 at 5:20 PM, Jake McGraw [EMAIL PROTECTED] wrote: I've spent the last two days struggling with this error: We've been utilizing REST-ful JSON server for a

Re: [fw-general] Zend_Json::decode in Controller causing Blank Screen of Death

2008-08-15 Thread Matthew Ratzloff
Do you have ext/json installed? This is (I hope) unlikely, but if you somehow have Xdebug installed on this production server, Zend_Json can trigger xdebug.max_nesting_level in certain situations. You would probably see an error in this case, but I'm including this just to be on the safe side.

Re: [fw-general] Zend_Json::decode in Controller causing Blank Screen of Death

2008-08-15 Thread Jake McGraw
Are there no errors written to logs? Usually when I get a blank screen display_errors = Off, but log_errors = On. I wish, looking at the error log now, some debugging I did earlier shows up there, but nothing for my current set of problems. This is on one of our development servers, so

Re: [fw-general] Zend_Json::decode in Controller causing Blank Screen of Death

2008-08-15 Thread Jake McGraw
Do you have ext/json installed? According to phpinfo(): json json support enabled json version 1.2.1 and grepping our ini file: ;extension=json.so So, I assume we're using the built-in version of json_(encode|decode) This is (I hope) unlikely, but if you somehow have Xdebug installed on

Re: [fw-general] Zend_Json::decode in Controller causing Blank Screen of Death

2008-08-15 Thread Matthew Weier O'Phinney
-- Jake McGraw [EMAIL PROTECTED] wrote (on Friday, 15 August 2008, 11:42 AM -0400): Do you have ext/json installed? According to phpinfo(): json json support enabled json version 1.2.1 and grepping our ini file: ;extension=json.so So, I assume we're using the built-in version of

Re: [fw-general] Zend_Json::decode in Controller causing Blank Screen of Death

2008-08-15 Thread Jake McGraw
Comment out the above line and see what happens -- this is what the previous comment was getting at. Still not working, commented out line, restarted apache, same issue... I'm not sure that this is related to json/xdebug, as Zend_Json::decode/json_decode both operate correctly with the same

Re: [fw-general] Zend_Validate regex way to soluce ?

2008-08-15 Thread Matthias Coy
Hi, ok, I missed the ^ and $. So here is a working example: ?php header('Content-Type: text/html; charset=UTF-8',true); $input = array (Clément, Marius_Glad, Micky.128, Some!thing, Real[Name], Zut^Truc); foreach($input as $entry) { echo $entry; echo br /; if

RE: [fw-general] Zend_Json::decode in Controller causing Blank Screen of Death

2008-08-15 Thread Terre Porter
I've been following this a little. If I understand this right... The json decode works if you dump the var but not if you allow the page to run through the view. What happens in the view? You mention these : -- sets HTML head -- spits out contents Does the view do anything to the data? i.e.

Re: [fw-general] Zend_Json::decode in Controller causing Blank Screen of Death

2008-08-15 Thread Jake McGraw
On Fri, Aug 15, 2008 at 12:31 PM, Terre Porter [EMAIL PROTECTED] wrote: I've been following this a little. If I understand this right... The json decode works if you dump the var but not if you allow the page to run through the view. What happens in the view? You mention these : --

[fw-general] Re: Building a MVC-based Soap server

2008-08-15 Thread Luiz Vitor
Sorry for bumping this, but I´m still trying to make this work. Didn´t anyone built a soap sever using MVC architeture? On Thu, Aug 14, 2008 at 9:28 AM, Luiz Vitor [EMAIL PROTECTED] wrote: Hi there I´m trying to build a soap server using the ZF MVC architeture, but I can´t get it to work.

[fw-general] Re: Parameter values with slashes

2008-08-15 Thread Jaka Jančar
I should add that ? (%3f), for example, works as expected: - mod_rewrite works (no 404, gets passed to index.php) - path segments get split properly into key/value pairs - it gets properly unencoded: [_params:protected] = Array ( [controller] = controller

Re: [fw-general] Dojo Form example not working (ex 12.29)

2008-08-15 Thread Nosy
I'm also have these bugs,in ie it's wrong but in ff it's right! why? Christian Sanchez wrote: The example works on Mozilla, but on IE shows some kind of warning... line: 21 Error: 'undefined' is null or not an object Looking at the source line 21 is the following:

[fw-general] Re: Parameter values with slashes (SOLUTION)

2008-08-15 Thread Jaka Jančar
To answer my own question: it's a problem with Apache's super-stupid feature to silently refuse all URLs with %2f in the path URI part with a fake and misleading 404 message. In 2.x you can disable it using the following directive: AllowEncodedSlashes On This however needs to be done on

Re: [fw-general] Zend_Validate regex way to soluce ?

2008-08-15 Thread Bruno Friedmann
Thank you Matthias, I've try this and I just surprise about in the script it work as expected ... (no doubt about :-) But when use with Zend_Form (My description of Form are in .ini file ) like this user.elements.userlogin.options.validators.regex.validator = regex

RE: [fw-general] Zend_Json::decode in Controller causing Blank Screen of Death

2008-08-15 Thread Terre Porter
I put together a basic test project. Used the layout and the view tpl you provided. I've got this as my controller function. public function indexAction() { $jsonData = '--string from text file--'; $result = json_decode($jsonData); var_dump($result); } I get a hello

Re: [fw-general] Zend_Validate regex way to soluce ?

2008-08-15 Thread Matthias Coy
ok, I don't have a running Zend-Framework here, but I've downloaded the code and the Zend_Validate_Regex is using preg_match, so that SHOULD work ... why it doesn't in your case, that's out of my knowledge. I will try to set up a running minimal ZF to create a use case, but I have also some

Re: [fw-general] Zend_Validate regex way to soluce ?

2008-08-15 Thread Matthias Coy
ok, worked faster than I expected. But I only have a windows machine and with this code, preg_match gives back a internal error. I think this is related to my machine, so could you please test that on your side? Should work out of the box, if 'Zend/Loader.php' is in your path: ?php

Re: [fw-general] Zend_Validate regex way to soluce ?

2008-08-15 Thread Matthias Coy
Again me :) Final solution: ?php require_once Zend/Loader.php; Zend_Loader::registerAutoload(); $pattern = /^[\p{L}\.\-_ 0-9]+$/; $form = new Zend_Form; $form-setMethod(post); $regex = new Zend_Form_Element_Text('regex'); $regex-setLabel(Try here:); $regex-addValidator(new

Re: [fw-general] Zend_Json::decode in Controller causing Blank Screen of Death

2008-08-15 Thread Jake McGraw
Terre: Thanks for the effort, but I have also been able to set up a basic Controller / Layout / View and get my code to work. There still appears to be some kind of intractable issue going on here that has to do with json_decode and Zend MVC will my existing code base. I'm going to try to

Re: [fw-general] Zend_Validate regex way to soluce ? Bug inside ....

2008-08-15 Thread Bruno Friedmann
Ok so there's a bug somewhere in Zend_Form. Your function work perfectly here against the pattern. But if you try it by the .ini form contruction it doesn't complain. (like I've describe at the begining) But now we are sure where the trouble is :-)) ( Perharps a stupid htmlEntities somewhere or

Re: [fw-general] Zend_Json::decode in Controller causing Blank Screen of Death

2008-08-15 Thread Jake McGraw
Everyone, sorry to bother you with this, turns out I've been doing too much programming in true functional languages, which PHP is not, and I had some code which I thought was ok, but some how combined with a call to json_decode caused PHP to crash. I was basically doing something like: function

Re: [fw-general] Dojo Form example not working (ex 12.29)

2008-08-15 Thread Christian Sanchez
Well I found out that removing the Tab that has the text objects gets rid of the problem... I think it has to do with the currency textbox or the date textbox I can't remember which one was it... 2008/8/15 Nosy [EMAIL PROTECTED] I'm also have these bugs,in ie it's wrong but in ff it's right!

[fw-general] PHP version or extension requirements for Zend_Filter?

2008-08-15 Thread David Rogers
Does anyone know if there are specific requirements for the PHP version, compile options, or extensions in order for Zend_Filter to work as expected? We have a situation on two servers where Zend_Filter is not performing the correct transformation on a fairly simple string. Here's some sample

RE: [fw-general] Dojo Form example not working (ex 12.29)

2008-08-15 Thread Wil Sinclair
Hmmm. We're going to have to be pretty vigilant around taking threads that are clearly about dojo issues to their list. It's best if all dojo users have this information, and I've heard there might be some people on this list who don't care about dojo. ;) ,Wil From: Christian Sanchez

Re: [fw-general] Zend_Json::decode in Controller causing Blank Screen of Death

2008-08-15 Thread Matthew Ratzloff
This doesn't help you solve this problem, but just wanted to tell you that in PHP 5 all objects are passed by reference, so the ampersand in the round_datetime function is redundant. -Matt On Fri, Aug 15, 2008 at 1:13 PM, Jake McGraw [EMAIL PROTECTED] wrote: Everyone, sorry to bother you with

[fw-general] Downloading a file from server

2008-08-15 Thread rollockg
I've been able to successfully upload a pdf file to my server, now I want to reverse the process. I just have no idea how to go about it using Zend Framework? Can I please have some assistance? Gina-Marie Rollock -- View this message in context:

[fw-general] API Docs

2008-08-15 Thread Marco
Hi All I've been working on getting the phpdoc working with my local copy of ZF 1.6 and I notice there are quite a lot of warnings and a few errors in the current docs. Is it worth fixing these? Some of the more common ones are * DocBlock has multiple @return tags, illegal. ignoring additional