[fw-general] problem for zend_feed

2007-03-22 Thread Jacky Chen
Hi,there i met a problem when i produce a rss feed.How can i encode the entry title?If the entry title contain the & char,a warning would occure. *Warning*: DOMDocument::createElement() [function.DOMDocument-createElement]: unterminated e

Re: [fw-general] Zend_Filter_Input...

2007-03-22 Thread Pádraic Brady
>Not trying to pick on you, Simon and Pádraic. :-) But I would actually >PREFER that developers always be aware that their data can come from >anywhere, just so they stay paranoid. np ;), but isn't that the same or a related point I reiterated? Yes, developers should be aware data can come from

Re: [fw-general] Zend_Filter_Input...

2007-03-22 Thread Matthew Ratzloff
Well, my point was that because any of those can be manipulated (POST, GET, COOKIE, etc.), selecting from a specific source can lead to a false sense of added security. Better to make your application capable of reliably accepting data from any source and acting on it appropriately. In other word

[fw-general] JIRA Issue Tracker Linking - "is related to"

2007-03-22 Thread Gavin Vess
Greetings, I added a new issue linking relationship to our issue tracker called "is related to". Previously, only "duplicate" and "depends on" were supported. However, sometimes issues are related, similar, or variants worthy of their own issue. Rather than create numerous additional relat

Re: [fw-general] getting-started-with-the-zend-framework_124.pdf

2007-03-22 Thread Alexander Netkachev
Hi, 1. Probably it is better to address this issue to the author of the tutorial... 2. It would be nice to narrow down the problem and create example that shows a problem and this example should be as small as possible. Sincerely, Alex On 3/22/07, José de Menezes Soares Neto <[EMAIL PROTECTED]

Re: [fw-general] Tutorial Zend Framework and Smarty

2007-03-22 Thread Alexander Netkachev
Consider the following: * Primitus application: http://framework.zend.com/wiki/x/hw0, now available in SVN. * http://akrabat.com/zend-framework-tutorial/ * External Resources - Tutorials, Articles, and Examples: http://framework.zend.com/wiki/x/q Sincerely, On 3/22/07, José de Menezes Soares Net

Re: [fw-general] How to create my own exception handler method ?

2007-03-22 Thread Alexander Netkachev
Here is code from CMS of my site: function errorHandler($errno, $errstr, $errfile, $errline) { throw new Exception($errstr, $errno); } set_error_handler('errorHandler'); ... skip initialization code try { $front->dispatch(); } catch (Exception $e) { if

[fw-general] How to create my own exception handler method ?

2007-03-22 Thread Juan Felipe Alvarez Saldarriaga
Hey :) Im traying to make my own exception handler, I set a global exception handler function, "set_exception_handler( 'exceptionHandler' )", to deal with the "throw Exception()" command, so when the Exception "jumps" to this function I want to show all the Exception information into a view,

[fw-general] Tutorial Zend Framework and Smarty

2007-03-22 Thread José de Menezes Soares Neto
Friends, I am looking for two tutorials that helps me to: - Use Zend Framework - Integrate ZF and Smarty Best regards, José de Menezes

RE: [fw-general] Bug in Table/Abstract and more

2007-03-22 Thread Bill Karwin
There are more changes that need to be made in the Table::insert() method to support other cases. Sequences and tables with natural keys need to be supported. I have posted a couple of times to the fw-db list about some thoughts regarding this, but so far I have been too busy to post an actual

Re: [fw-general] Bug in Table/Abstract and more

2007-03-22 Thread Kevin McArthur
Ya I noticed the sequence issues, but running 8.1 the defaults (now 0.9.0) work right. I wonder, is there a way to set the sequence name and if not maybe there should be... K - Original Message - From: "Teemu Välimäki" <[EMAIL PROTECTED]> To: Sent: Thursday, March 22, 2007 1:29 PM

[fw-general] Bug in Table/Abstract and more

2007-03-22 Thread Teemu Välimäki
Hi, with 22 day snapshot Db/Table/Abstract.php on line 399 "return $this->_db->lastInsertId();" should apparently give $this->_name as a parameter, otherwise the call will always fail. lastInsertId has a $tableName = null and the first thing is if (!$tableName) throw. After I fixed line 399 wit

[fw-general] ZF 0.9.1 code freeze tonight

2007-03-22 Thread Bill Karwin
Hi, We will have a code-freeze for the Zend Framework 0.9.1 beta refresh tonight at 9:00pm Pacific time. There have been 26 bugs fixed in the past week, and it will be worthwhile to do a beta refresh. We are planning another beta refresh (0.9.2) before we get to 1.0.0 RC1. Probably in two weeks

Re: [fw-general] Zend_Filter_Input...

2007-03-22 Thread Matthew Ratzloff
"[I]f we have too many sources for input variables, some of which check varying sources in priority it's just another $_REQUEST situation where these values could conceivably come from anywhere." The data DOES come from anywhere. Data is not somehow more secure if it is POST. POST variables can

Re: [fw-general] Zend_Filter_Input...

2007-03-22 Thread Ed Finkler
On 3/22/07, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: Once I realized people were using the request object in order to pull GET and POST data -- instead of accessing those superglobals themselves, or using a proxy such as Zend_Filter_Input, I realized that this would be a security vecto

[fw-general] headers already sent

2007-03-22 Thread José de Menezes Soares Neto
how do I solve this kind of problem in ZF??

Re: [fw-general] Zend_Filter_Input...

2007-03-22 Thread Kevin McArthur
getParam should, imho, return params only, if theres need for routing for cacaded stuff then maybe a getInput or similar. You shouldn't be able to override post data with a param, or, at least thats not how the fw should be recommending apps be built using getParam like $_REQUEST. If you get r

Re: [fw-general] Zend_Filter_Input...

2007-03-22 Thread Matthew Weier O'Phinney
-- Kevin McArthur <[EMAIL PROTECTED]> wrote (on Thursday, 22 March 2007, 11:36 AM -0700): > Hopefully getParam will be unified with the rest of the get* methods in > Zend_Request, and this all wont be a problem. I fail to see how this is even related to the discussion. The request you had earlier

[fw-general] getting-started-with-the-zend-framework_124.pdf

2007-03-22 Thread José de Menezes Soares Neto
Hi, I am following this tutorial. And I am getting this error for redirecting: Fatal error: Uncaught exception 'Zend_Controller_Response_Exception' with message 'Cannot send headers; headers already sent' in D:\www\projeto\lib\Zend\Controller\Response\Abstract.php:240 Stack trace: #0 D:\www\pr

Re: [fw-general] Zend_Filter_Input...

2007-03-22 Thread Matthew Weier O'Phinney
-- Ed Finkler <[EMAIL PROTECTED]> wrote (on Thursday, 22 March 2007, 01:27 PM -0400): > On 3/22/07, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: > > Please remember that Zend_Controller_Request_* was built to help with > > routing and dispatching -- which is why getParam() pulls from a variet

Re: [fw-general] A common pattern for instantiation of alternative classes by an object.

2007-03-22 Thread Matthew Ratzloff
In that case, you might as well make it a true factory and just have: return Zend_Delegate::factory('Zend_Controller_Request_Http', $parameters); which queries Zend_Delegate for any user-specified delegates and instantiates them. Defining delegates would be specified like this: Zend_Delegate::s

Re: [fw-general] Zend_Filter_Input...

2007-03-22 Thread Kevin McArthur
Hopefully getParam will be unified with the rest of the get* methods in Zend_Request, and this all wont be a problem. - Original Message - From: "Simon R Jones" <[EMAIL PROTECTED]> To: Sent: Thursday, March 22, 2007 10:34 AM Subject: RE: [fw-general] Zend_Filter_Input... It was nev

RE: [fw-general] Zend_Filter_Input...

2007-03-22 Thread Simon R Jones
> It was never intended as a general-purpose object for > input filtering -- that's a goal for a later iteration, which will still > need to account for the variety of sources when dealing with routing. That's fine, just as long as new users always use $_POST or getPost() to retrieve POST variable

Re: [fw-general] Zend_Filter_Input...

2007-03-22 Thread Ed Finkler
On 3/22/07, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: Please remember that Zend_Controller_Request_* was built to help with routing and dispatching -- which is why getParam() pulls from a variety of sources (when determining how to route a request, the salient input could come from a va

Re: [fw-general] [Zend][Controller][Action] unsetParam() and some suggestions

2007-03-22 Thread Shekar C Reddy
The point of accessors is to normalize access to properties. Using the properties directly within methods such as render(), _forward(), etc. could cause issues later for those who *do* override the getRequest()/getResponse() accessors -- basically, we'd be breaking *other* people's apps. Ok. I di

[fw-general] How to configure this route

2007-03-22 Thread Php (Absolom)
Hi, I don't see how to implements this structure : /application /controllers /models /views /my_module /controllers IndexController.php /admin IndexController.php

Re: [fw-general] CLA procesing time?

2007-03-22 Thread Thomas Weidner
Be happy that they rarely take the 3 weeks as Thomas reported anymore. :-) That's true... Nowadays things go much smoother and faster than in "je old days" ;-) Greetings Thomas I18N Team Leader

Re: [fw-general] CLA procesing time?

2007-03-22 Thread Matthew Weier O'Phinney
-- Jack Sleight <[EMAIL PROTECTED]> wrote (on Thursday, 22 March 2007, 07:46 AM -0700): > I was just wondering how long it takes to process the CLAs? I submitted mine > a couple of days ago and not heard anything yet. Bill processes them fairly quickly -- I usually see most requests take no more t

Re: [fw-general] CLA procesing time?

2007-03-22 Thread Jack Sleight
Oh, OK, guess I'll have to wait. Cheers, Jack Thomas Weidner-2 wrote: > >> I was just wondering how long it takes to process the CLAs? I submitted >> mine >> a couple of days ago and not heard anything yet. > > No hurry... > mine took about 3 weeks ;-) > > Greetings > Thomas > > > --

Re: [fw-general] CLA procesing time?

2007-03-22 Thread Thomas Weidner
I was just wondering how long it takes to process the CLAs? I submitted mine a couple of days ago and not heard anything yet. No hurry... mine took about 3 weeks ;-) Greetings Thomas

Re: [fw-general] CLA procesing time?

2007-03-22 Thread Shaun Rowe
Jack Sleight wrote: Hi, I was just wondering how long it takes to process the CLAs? I submitted mine a couple of days ago and not heard anything yet. Cheers, Jack I'd also like to ask the same question. Although I'm not trying to rush anyone along. Many Thanks Shaun Rowe

[fw-general] CLA procesing time?

2007-03-22 Thread Jack Sleight
Hi, I was just wondering how long it takes to process the CLAs? I submitted mine a couple of days ago and not heard anything yet. Cheers, Jack -- View this message in context: http://www.nabble.com/CLA-procesing-time--tf3448016s16154.html#a9616288 Sent from the Zend Framework mailing list arc

Re: [fw-general] ZF 0.8.0

2007-03-22 Thread Alexander Netkachev
http://framework.zend.com/releases/ZendFramework-0.8.0.zip On 3/22/07, José de Menezes Soares Neto <[EMAIL PROTECTED]> wrote: Could someone send me the ZF 0.8.0? I will start with it, cause there is no tutorial for ZF 0.9.0... Best Regards, José -- Alexander http://www.alexatnet.com/ -

[fw-general] ZF 0.8.0

2007-03-22 Thread José de Menezes Soares Neto
Could someone send me the ZF 0.8.0? I will start with it, cause there is no tutorial for ZF 0.9.0... Best Regards, José

Re: [fw-general] Multiple ControllerDirectory paths

2007-03-22 Thread Werner
Thanks Matthew Extending the front controller will do the trick nicely. Ditching the multiple directory support in favor of performance is also not something I will complain about :-) The nice thing about ZF is that it can easily be extended, so I'll take that route for this specific project. T

Re: [fw-general] Feature-Request for Zend_Translate

2007-03-22 Thread Thomas Weidner
I´m not sure if this really makes a big difference ;) There is a difference when you are using views: Now you have to do it so: translate('mystring', $locale); ?> With the change you can do: print('mystring', $locale); ?> I dont know how much views you have, but I think there is a simpli

Re: [fw-general] Zend_Filter_Input...

2007-03-22 Thread Matthew Weier O'Phinney
-- Pádraic Brady <[EMAIL PROTECTED]> wrote (on Thursday, 22 March 2007, 03:36 AM -0700): > In agree with you Simon - if we have too many sources for input > variables, some of which check varying sources in priority it's just > another $_REQUEST situation where these values could conceivably come >

Re: [fw-general] Multiple ControllerDirectory paths

2007-03-22 Thread Matthew Weier O'Phinney
-- Werner <[EMAIL PROTECTED]> wrote (on Thursday, 22 March 2007, 01:44 PM +0200): > I want to specify multiple controller directories that should all be > searched for controllers. I want to do this without deploying any > predefined modular directory structures - just multiple paths for > contr

[fw-general] Re: [fw-mvc] Render-method question

2007-03-22 Thread Pádraic Brady
Hi Jörg, You could likely add such behaviour if you wanted by subclassing the Zend_Controller_Action class - actually you do quite a lot of setup tasks using subclassing. Since render() is a public method, you can subclass Action and add your own version to meet any requirements you wish. I wo

[fw-general] Re: [fw-db] A common pattern for instantiation of alternative classes by an object.

2007-03-22 Thread Mark Gibson
Matthew Ratzloff wrote: This would be a nice idea for a generalized component that would apply to all classes, but unfortunately you can't do it. For example, this doesn't work: $object = new Zend_Delegate::getClassName('Zend_Example'); It has to be in two steps: $class = Zend_Delegate::getC

Re: [fw-general] Question about Zend_Filter_Input

2007-03-22 Thread Pádraic Brady
Hi Thomas, Zend_Filter_Input has been deprecated and is no longer available - as you've noticed the current methodology is to set up filter or validator chains and pass in an element from $_POST, which of course means you need to run your isset() check to avoid the index error. Other possible o

Re: [fw-general] Zend_Filter_Input...

2007-03-22 Thread Pádraic Brady
In agree with you Simon - if we have too many sources for input variables, some of which check varying sources in priority it's just another $_REQUEST situation where these values could conceivably come from anywhere. It's better practice to use a method which selects values from a known source on

[fw-general] Feature-Request for Zend_Translate

2007-03-22 Thread Thomas Weidner
Hy fellows, a user in the general list had an idea for simplification for Zend_Translate. Background is to increase readability and simplification of Zend_Translate by making it possible to autoecho the translation. Please see related issue ZF-1096. http://framework.zend.com/issues/browse/ZF-

Re: [fw-general] Wildcards routes and reset parameter

2007-03-22 Thread Martel Valgoerad
Olivier Sirven wrote: (...) I have tried to add the "reset" parameter to true but then I don't have any parameter at all, just "/": echo $this->url(array('key1' => 'newvalue'), 'root', true); Is it a bug or a feature? It's more a bug than a feature. Fixed with commit 4715. Good catch, than

Re: [fw-general] How to search multiple phrases using Zend_Search

2007-03-22 Thread Alexander Veremyev
Hi David, You have to retrieve text from MS-Word documents by yourself now. It would be good to have possibility for Word documents indexing, but Zend_Search_Lucene can only parse HTML documents - http://framework.zend.com/manual/en/zend.search.html#zend.search.index-creation.html-documents

[fw-general] Multiple ControllerDirectory paths

2007-03-22 Thread Werner
Hi! I want to specify multiple controller directories that should all be searched for controllers. I want to do this without deploying any predefined modular directory structures - just multiple paths for controllers (whether modules will be used or not). However, when specifying any additio

Re: [fw-general] Trouble with setControllerDirectory() in 0.9.0Beta

2007-03-22 Thread Werner
Thanks, Alexander When switching to modules everything is on track again - your suggestions worked, and I could get it running again. However, I still miss the functionality that 0.8.0 had, which enabled me to add multiple directories that will be searched for controllers. I'm going to star

Re: [fw-general] [Zend][Controller][Action] unsetParam() and some suggestions

2007-03-22 Thread Matthew Weier O'Phinney
-- Shekar C Reddy <[EMAIL PROTECTED]> wrote (on Wednesday, 21 March 2007, 09:34 PM -0400): > 1. Perhaps, the setParam() method could be enhanced to unset/blow-off the key > if the value passed is null... We don't want any keys with null values > lingering around - that would increase complexity as

Re: [fw-general] How to create a new issue?

2007-03-22 Thread Andries Seutens
Niko Sams schreef: Hello, This may sound stupid, but I can't create a new issue in the Zend Framework Issue Tracker. someone else had this problem too: http://framework.zend.com/wiki/display/ZFDEV/Issue+Tracker+Etiquette?focusedCommentId=19252#comment-19252 I have registered and logged in suc

Re: [fw-general] How to create a new issue?

2007-03-22 Thread Tom Staals
You have to request posting permissions by email use the following link to mail for permission http://www.nabble.com/user/SendEmail.jtp?type=post&post=9600436&i=0 Be sure to mention your account name cheers Tom Niko Sams wrote: > > Hello, > > This may sound stupid, but I can't create a new

[fw-general] How to create a new issue?

2007-03-22 Thread Niko Sams
Hello, This may sound stupid, but I can't create a new issue in the Zend Framework Issue Tracker. someone else had this problem too: http://framework.zend.com/wiki/display/ZFDEV/Issue+Tracker+Etiquette?focusedCommentId=19252#comment-19252 I have registered and logged in successfully, but I can't

RE: [fw-general] Zend_Filter_Input...

2007-03-22 Thread Simon R Jones
> You can use $this->_getParam('key', 'default'); in a Controller, because > _getParam() use the Request->getParam() method, which tries first to > load the param from the url, then from $_GET and after this from $_POST. If $this->_getParam() looks at the URL, GET and POST isn't it a potential se