Re: [fw-general] Zend_Filter_Input and EscapeFilter
Justin Verweel wrote: > > There is an other way of 'disabling' the default escape behavior. > You could create a custom class My_Filter_DoNothing, which implements > the Zend_Filter_Interface and set that filter as the default escape > filter (see the setDefaultEscapeFilter() method ). > The filter( $value ) method of this class returns the $value directly, > without modifications. > The data will still be 'filtered' when you call $input->{key} or > $input->getEscaped( $key ), but the used filter does nothing > I think it's crutch, but isn't good way. Thank you. -- View this message in context: http://www.nabble.com/Zend_Filter_Input-and-EscapeFilter-tp25291137p25293241.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend_Filter_Input and EscapeFilter
It's not important for me, escaped or unescaped values I will use. I think I can don't use escaper, becouse it's not need for me. I wanna disable escaper. thomasW wrote: > > I don't understand... > You don't want to have escaped values, but you also don't want to have > unescaped values ? > > Do you want to have any value ??? > What do you precisly want ? > > Maybe it would be more clear when you give an example. > > Greetings > Thomas Weidner, I18N Team Leader, Zend Framework > http://www.thomasweidner.com > > - Original Message - > From: "Serkys" > To: > Sent: Friday, September 04, 2009 11:40 AM > Subject: Re: [fw-general] Zend_Filter_Input and EscapeFilter > > >> >> I know this method, but I can't use it. I don't want use escaper. Can I >> it? >> >> >> thomasW wrote: >>> >>> Try getUnescapedValue() to get the unescaped value. >>> >>> Greetings >>> Thomas Weidner, I18N Team Leader, Zend Framework >>> http://www.thomasweidner.com >>> >>> - Original Message - >>> From: "Serkys" >>> To: >>> Sent: Friday, September 04, 2009 11:27 AM >>> Subject: [fw-general] Zend_Filter_Input and EscapeFilter >>> >>> >>>> >>>> Hello. >>>> >>>> I use Zend_Filter_Input and don't want to use escapeFilter. But >>>> Zend_Filter_Input requires it. How can I make it optional? >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/Zend_Filter_Input-and-EscapeFilter-tp25291137p25291137.html >>>> Sent from the Zend Framework mailing list archive at Nabble.com. >>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Zend_Filter_Input-and-EscapeFilter-tp25291137p25291333.html >> Sent from the Zend Framework mailing list archive at Nabble.com. > > > -- View this message in context: http://www.nabble.com/Zend_Filter_Input-and-EscapeFilter-tp25291137p25291644.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend_Filter_Input and EscapeFilter
I know this method, but I can't use it. I don't want use escaper. Can I it? thomasW wrote: > > Try getUnescapedValue() to get the unescaped value. > > Greetings > Thomas Weidner, I18N Team Leader, Zend Framework > http://www.thomasweidner.com > > - Original Message - > From: "Serkys" > To: > Sent: Friday, September 04, 2009 11:27 AM > Subject: [fw-general] Zend_Filter_Input and EscapeFilter > > >> >> Hello. >> >> I use Zend_Filter_Input and don't want to use escapeFilter. But >> Zend_Filter_Input requires it. How can I make it optional? >> -- >> View this message in context: >> http://www.nabble.com/Zend_Filter_Input-and-EscapeFilter-tp25291137p25291137.html >> Sent from the Zend Framework mailing list archive at Nabble.com. > > > -- View this message in context: http://www.nabble.com/Zend_Filter_Input-and-EscapeFilter-tp25291137p25291333.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] Zend_Filter_Input and EscapeFilter
Hello. I use Zend_Filter_Input and don't want to use escapeFilter. But Zend_Filter_Input requires it. How can I make it optional? -- View this message in context: http://www.nabble.com/Zend_Filter_Input-and-EscapeFilter-tp25291137p25291137.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend_Search_Lucene field not found
Show me full code of creating index, please Jean L wrote: > > Thanks for the reply. > > I change it to "UnIndexed" field, however, the same error message is still > there.... > > Jean > > > > Serkys wrote: >> >> I think, URL better stored in "UnIndexed" fields. >> >> >> Jean L wrote: >>> >>> Hi all, >>> >>> I'm currently having problem with indexing html files using >>> Zend_Search_Lucene. Any help is appreciated. >>> >>> So far I can create my index properly. I add text field "url" to store >>> my file name and add that to my doc. >>> >>> Here's the problem: when I want to show the file name, an error message >>> occurs and it reads : >>> PHP Fatal error:Uncaught exception 'Zend_Search_Lucene'with message >>> 'Field name "url" not found in document.' in >>> local/zend/1.7.3/app/library/Zend/Search/Lucene/Document.php:102\nStack >>> trace:\n#0 >>> /local/zend/1.7.3/app/library/Zend/Search/Lucene/Document(116): >>> Zend_Search_Lucene_Document->getField('url')#1(continued) >>> >>> The code is following: >>> - >>> $filename="aFile"; >>> $doc = Zend_Search_Lucene_Document_Html::loadHTMLFile($filename); >>> $doc->addField(Zend_Search_Lucene_Field::Text('url', $filename)); >>> $index->addDocument($doc); >>> .. >>> >>> - >>> $query=Zend_Search_Lucene_Search_QueryParser::parse($queryStr); >>> $hits = $index->find($query); >>> foreach ($hits as $hit) { >>> echo $hit->url.""; >>> echo $hit->title.""; >>> . >>> >>> Any help is appreciated. >>> >>> Jean >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/Zend_Search_Lucene-field-not-found-tp22153855p22167546.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend_Search_Lucene field not found
I think, URL better stored in "UnIndexed" fields. Jean L wrote: > > Hi all, > > I'm currently having problem with indexing html files using > Zend_Search_Lucene. Any help is appreciated. > > So far I can create my index properly. I add text field "url" to store my > file name and add that to my doc. > > Here's the problem: when I want to show the file name, an error message > occurs and it reads : > PHP Fatal error:Uncaught exception 'Zend_Search_Lucene'with message 'Field > name "url" not found in document.' in > local/zend/1.7.3/app/library/Zend/Search/Lucene/Document.php:102\nStack > trace:\n#0 /local/zend/1.7.3/app/library/Zend/Search/Lucene/Document(116): > Zend_Search_Lucene_Document->getField('url')#1(continued) > > The code is following: > - > $filename="aFile"; > $doc = Zend_Search_Lucene_Document_Html::loadHTMLFile($filename); > $doc->addField(Zend_Search_Lucene_Field::Text('url', $filename)); > $index->addDocument($doc); > .. > > - > $query=Zend_Search_Lucene_Search_QueryParser::parse($queryStr); > $hits = $index->find($query); > foreach ($hits as $hit) { > echo $hit->url.""; > echo $hit->title.""; > . > > Any help is appreciated. > > Jean > > -- View this message in context: http://www.nabble.com/Zend_Search_Lucene-field-not-found-tp22153855p22156942.html Sent from the Zend Framework mailing list archive at Nabble.com.