Fwd: [fw-general] Re: Zend_Feed findFeeds don't find all feeds on a page

2010-05-26 Thread Stefan Sturm
Hello,

 OK, the first 2 are being found because of the 'ouml' entity in the title
 attribute.

this is the html entity code for a german umlaut(
http://en.wikipedia.org/wiki/Umlaut_(diacritic)#HTML ).

 This throws the following error: Entity 'ouml' not defined in 

does this mean, that I can't find feeds containing a german umlaut?

Greetings,
Stefan Sturm


 Dan.

 On 25 May 2010 15:48, Stefan Sturm stefan.s.st...@googlemail.com wrote:

 Hallo Daniel,

 thanks for your answer. I allready did this, but I can't find anything.
 Here is the code from the page( www.torfabrik.de ):

 !-- BEGIN: RSS-Feeds von TORfabrik.de //--
 link rel=alternate type=application/rss+xml title=RSS-Feed:
 Profiabteilung von Borussia Mouml;nchengladbach
 href=http://torfabrik.de/profis/rss.xml; /
 link rel=alternate type=application/rss+xml title=RSS-Feed:
 Nachwuchsabteilung von Borussia Mouml;nchengladbach
 href=http://torfabrik.de/nachwuchs/rss.xml; /
 link rel=alternate type=application/rss+xml title=RSS-Feed:
 Einwurf | Kommentare von TORfabrik.de
 href=http://torfabrik.de/einwurf/rss.xml; /
 link rel=alternate type=application/rss+xml title=RSS-Feed:
 Querpass | Abseits der Borussia
 href=http://torfabrik.de/querpass/rss.xml; /
 link rel=alternate type=application/rss+xml title=RSS-Feed:
 Kurzpass | direkt amp; kompakt
 href=http://torfabrik.de/kurzpass/rss.xml; /
 !-- END: RSS-Feeds von TORfabrik.de //--
 He finds only the last 3 feeds, not the first 2...

 And here from another page( www.mactechnews.de ):
 link href=../rss/news.request rel=alternate
 type=application/rss+xml title=News /
 link href=../rss/journals.request rel=alternate
 type=application/rss+xml title=Journals /
 link href=../rss/forumthreads.request rel=alternate
 type=application/rss+xml title=Forum /
 Here he only finds the first feed and not the last two...

 Perhaps somebody can find a difference...

 Thanks and greetings,
 Stefan Sturm

 2010/5/25 Daniel Latter dan.lat...@gmail.com:
 
 
  -- Forwarded message --
  From: Daniel Latter dan.lat...@gmail.com
  Date: 25 May 2010 15:25
  Subject: Re: [fw-general] Re: Zend_Feed findFeeds don't find all feeds
  on a
  page
  To: Stefan Sturm stefan.s.st...@googlemail.com
 
 
  Look at the 2 feeds it doesnt find and see if you can spot a pattern.
 
  What the difference between the feeds it finds and the feeds it doesnt.
 
  Maybe these will give you more answers.
 
 
  On 25 May 2010 15:08, Stefan Sturm stefan.s.st...@googlemail.com
  wrote:
 
  Hallo,
 
  no one with an Idea on this?
 
  Greetings,
  Stefan Sturm
 
  2010/5/20 Stefan Sturm stefan.s.st...@googlemail.com:
   Hello,
  
   I try to find all feeds of a page using Zend_Feed::findFeeds().
   But it does not find all feeds from a page. Take this example:
   http://www.torfabrik.de
  
   findFeed shows me 3 feeds, but there are 5 feeds on ths site...
  
   What can be the problem here?
  
   Thanks and greetings,
   Stefan Sturm
  
 
 
 




[fw-general] Re: Zend_Feed findFeeds don't find all feeds on a page

2010-05-25 Thread Stefan Sturm
Hallo,

no one with an Idea on this?

Greetings,
Stefan Sturm

2010/5/20 Stefan Sturm stefan.s.st...@googlemail.com:
 Hello,

 I try to find all feeds of a page using Zend_Feed::findFeeds().
 But it does not find all feeds from a page. Take this example:
 http://www.torfabrik.de

 findFeed shows me 3 feeds, but there are 5 feeds on ths site...

 What can be the problem here?

 Thanks and greetings,
 Stefan Sturm



Fwd: [fw-general] Re: Zend_Feed findFeeds don't find all feeds on a page

2010-05-25 Thread Stefan Sturm
Hallo Daniel,

thanks for your answer. I allready did this, but I can't find anything.
Here is the code from the page( www.torfabrik.de ):

!-- BEGIN: RSS-Feeds von TORfabrik.de //--
link rel=alternate type=application/rss+xml title=RSS-Feed:
Profiabteilung von Borussia Mouml;nchengladbach
href=http://torfabrik.de/profis/rss.xml; /
link rel=alternate type=application/rss+xml title=RSS-Feed:
Nachwuchsabteilung von Borussia Mouml;nchengladbach
href=http://torfabrik.de/nachwuchs/rss.xml; /
link rel=alternate type=application/rss+xml title=RSS-Feed:
Einwurf | Kommentare von TORfabrik.de
href=http://torfabrik.de/einwurf/rss.xml; /
link rel=alternate type=application/rss+xml title=RSS-Feed:
Querpass | Abseits der Borussia
href=http://torfabrik.de/querpass/rss.xml; /
link rel=alternate type=application/rss+xml title=RSS-Feed:
Kurzpass | direkt amp; kompakt
href=http://torfabrik.de/kurzpass/rss.xml; /
!-- END: RSS-Feeds von TORfabrik.de //--
He finds only the last 3 feeds, not the first 2...

And here from another page( www.mactechnews.de ):
link href=../rss/news.request rel=alternate
type=application/rss+xml title=News /
link href=../rss/journals.request rel=alternate
type=application/rss+xml title=Journals /
link href=../rss/forumthreads.request rel=alternate
type=application/rss+xml title=Forum /
Here he only finds the first feed and not the last two...

Perhaps somebody can find a difference...

Thanks and greetings,
Stefan Sturm

2010/5/25 Daniel Latter dan.lat...@gmail.com:


 -- Forwarded message --
 From: Daniel Latter dan.lat...@gmail.com
 Date: 25 May 2010 15:25
 Subject: Re: [fw-general] Re: Zend_Feed findFeeds don't find all feeds on a
 page
 To: Stefan Sturm stefan.s.st...@googlemail.com


 Look at the 2 feeds it doesnt find and see if you can spot a pattern.

 What the difference between the feeds it finds and the feeds it doesnt.

 Maybe these will give you more answers.


 On 25 May 2010 15:08, Stefan Sturm stefan.s.st...@googlemail.com wrote:

 Hallo,

 no one with an Idea on this?

 Greetings,
 Stefan Sturm

 2010/5/20 Stefan Sturm stefan.s.st...@googlemail.com:
  Hello,
 
  I try to find all feeds of a page using Zend_Feed::findFeeds().
  But it does not find all feeds from a page. Take this example:
  http://www.torfabrik.de
 
  findFeed shows me 3 feeds, but there are 5 feeds on ths site...
 
  What can be the problem here?
 
  Thanks and greetings,
  Stefan Sturm
 





[fw-general] Zend_Feed findFeeds don't find all feeds on a page

2010-05-20 Thread Stefan Sturm
Hello,

I try to find all feeds of a page using Zend_Feed::findFeeds().
But it does not find all feeds from a page. Take this example:
http://www.torfabrik.de

findFeed shows me 3 feeds, but there are 5 feeds on ths site...

What can be the problem here?

Thanks and greetings,
Stefan Sturm


[fw-general] Zend_Validate_NotEmpty and Object

2010-03-04 Thread Stefan Sturm
Hello,

when I test a variable containing an Object with
Zend_Validate_NotEmpty. I get this error:
Invalid type given, value should be float, string, array, boolean or integer

But, why an object is invalid for NotEmpty?

Thanks for your help,
Stefan Sturm


Re: [fw-general] Zend_Validate_NotEmpty and Object

2010-03-04 Thread Stefan Sturm
Hello,

I don't use the validator to validate a form, I use it to validate my models.
So I wrote my own little Required validator to handel this...

Greetings,
Stefan Sturm


[fw-general] Problem with Zend_Form and a regex validator

2009-11-09 Thread Stefan Sturm
Hello,

I have a field in a Zend_Form with a regex validator like this::

'Regex' = array(
'validator' = 'Regex',
'breakChainOnFailure' = true,
'options' = array(
'pattern' = '/^.{1,10}$/',
'messages' = array(
'regexNotMatch' = 'Error for address2: regexNotMatch',
)
)
)

With this field a have some unicode problems:
1234567890 - is OK
123456789º - is not OK ( last char: Unicode: U+00BA )

Here are the mbstring settings of my maschine:
mbstring.detect_order   no value
mbstring.encoding_translation   On
mbstring.func_overload  7
mbstring.http_input UTF-8
mbstring.http_outputUTF-8
mbstring.internal_encoding  UTF-8
mbstring.language   neutral
mbstring.strict_detection   On
mbstring.substitute_character   no value

Hope somebody can help me on this.

Thanks and greetings,
Stefan Sturm


Re: [fw-general] Problem with Zend_Form and a regex validator

2009-11-09 Thread Stefan Sturm
Hello,

 perhaps the modifier /u will solve your problem:

 http://de3.php.net/manual/en/reference.pcre.pattern.modifiers.php

yes, this seems to work :-)

Thanks,
Stefan Sturm


[fw-general] Problem with Zend_Config and php 5.3 and a Colon

2009-11-04 Thread Stefan Sturm
Hello,

I updated my server to php 5.3 and now my application( using 1.8.4 )
stop working.

I have this line in one of my ini files( acl.ini ):
resources.admin:error.resource  = admin:error

On this Line I get this error:

Uncaught exception 'Zend_Config_Exception' with message 'syntax error,
unexpected ':' in ../config/acl.ini on line 36 ' in
path\to\Zend\Config\Ini.php:184 Stack trace: #0
path\to\Zend\Config\Ini.php(125):
Zend_Config_Ini-_loadIniFile('\path\to\..')

Perhaps somebody can help me on this...

Thanks and greetings,
Stefan Sturm


Re: Re: [fw-general] Best to use CLI in my ZF 1.9 Application

2009-08-25 Thread Stefan Sturm
Hello,


 I'm actually working on a proposal to do exactly this at the moment.

 What features would people like to see on this?

 Currently, the proposed Zend_Schedule component will:
 1)  be run via CLI scripts from the cron

 2)    uses Zend_Application to load the bootstrap of an existing application
 to load config, include paths, etc.

 3)    load user-written classes which define tasks - e.g. mailTasks,
 databaseTasks, etc.

 4)    run functions from those classes based on a prefix - e.g. you might
 have a script running every day which runs all functions prefixed 'daily',
 which would run mailTasks::daily_Emails(),
 databaseTasks::daily_DoArchiving(), etc. and another script running every
 hour which would run all functions prefixes 'hourly'

 It's actually very simple to implement as outlined, and I'd be interested to
 see what other features people would want from this.


this sounds great. Where can I read more about it?

Greetings,
Stefan Sturm


[fw-general] Best to use CLI in my ZF 1.9 Application

2009-08-19 Thread Stefan Sturm
Hallo,

in my Application I have some tasks( like clean up cache files or
build some PDF files ), that I would like to run using CLI.
At this point I simply run this tasks using a browser.

But I want to change this :-)

So what is the best way to run this actions using the CLI Interface?
Is here somebody how did this before and can give my some tipps?

Thanks for your Help,
Stefan Sturm


[fw-general] Re: Best to use CLI in my ZF 1.9 Application

2009-08-19 Thread Stefan Sturm
Hello,

I found this tutorial to setup a cli enviroment:
http://webfractor.wordpress.com/2008/08/14/using-zend-framework-from-the-command-line/

But I would like to use Zend_Application to handle this...

Perhaps somebody can help me on this.

Thanks and greetings,
Stefan Sturm


[fw-general] Correct use of Autoload

2009-08-05 Thread Stefan Sturm
Hello,

I'm trying to setup a correct autoload, but I have a small problem with that.
I have this folder structure;

/Application/Models --- Here are my Models stored. At this point in a
folder called AR
/llibrary/My  --- Here are my Classes stored
/llibrary/ActiveRecord  --- Here is my ActiveRecord implementation stored

With this function I setup the autoloader:

protected function _initAutoload()
{
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader-registerNamespace( 'My_' );
$autoloader-registerNamespace( 'ActiveRecord_' );
$autoloader-registerNamespace( 'AR_' );

return $autoloader;
}

Now to my problem. I would like to use my Model Classes without a Prefix.
At this Time I use for example:
AR_User::find();

But I want to use it like this:
User::find();

How do I need to setup the Autoloader to meet my needs?

Thanks for your help,
Stefan Sturm


[fw-general] What ZendFramework Version for php 5.1.6?

2009-08-04 Thread Stefan Sturm
Hello,

what ZendFramework Version can I use with php 5.1.6?
Is it possible to use the latest version and avoid some modules or do
I need to use an older version?

Thanks for your help,
Stefan Sturm


[fw-general] Problem with 1.8.2 and ZendServer(5.3RC)

2009-06-08 Thread Stefan Sturm
Hello,

I'm testing Zenderver 5.3RC at this point. My existing application
runs just fine, exept when I try to write data to a db.
I'm using ZendDB and on an update or insert call I get this error:

Mysqli statement execute
 error : No data supplied for parameters in prepared statement

Somebody with an idea on this?

Thanks and greetings,
Stefan Sturm


[fw-general] ZendFramework and cli

2009-05-06 Thread Stefan Sturm
Hello,

I used this Tutorial to setup my enviroment, so I can use my
controller action from cli:
http://webfractor.wordpress.com/2008/08/14/using-zend-framework-from-the-command-line/

This works fine.

But I have one small issue:
When i make an echo in my script, the output gets displayed after the
end of the script.

What can I do, to see the output directly after it occurs?

Thanks for your help,
Stefan Sturm


[fw-general] Sort Controllers in Folders

2009-04-20 Thread Stefan Sturm
Hello,

we have a large Application with a lot Controllers. Now we want to
sort the Controllers in Folders.
Is there a simple way to do this?

Thanks for your help,
Stefan Sturm


[fw-general] Calc difference of 2 dates

2009-02-18 Thread Stefan Sturm
Hello,

I need to calc the difference of two dates? Is this possible using Zend_Date?
I can't find anything about this...

Thanks,
Stefan Sturm


Re: [fw-general] Zend PDT 2.0 all-in-one available (BETA)

2008-11-07 Thread Stefan Sturm
Hello,

I didn't tried it, but I have a Question:
How is the JavaScript Editor working? Is it possible to get jQuery or
Prototype CodeCompletion?

Thanks and Greetings,
Stefan Sturm


Re: [fw-general] Re: [zf-contributors] Free Zend Framework t-shirt. . .

2008-10-30 Thread Stefan Sturm
 Here it is: http://commons.wikimedia.org/wiki/Image:Monty_python_foot.png

Here is the correct solution:
http://en.wikipedia.org/wiki/Venus,_Cupid,_Folly,_and_Time

But I was 3 Minutes late, so no T-Shirt :-(

Stefan Sturm


[fw-general] Zend_Form and Ajax Reload

2008-09-05 Thread Stefan Sturm
Hello,

I have a Form with two Dropdown boxes. When the first Box is changed,
there should be an Ajax Request getting the Value for the second box.
Is this possible using Zend_Form?

If so, perhaps somebody can give me a hint or two?

Greetings,

Stefan Sturm


[fw-general] Zend Form Grouping Elements

2008-08-08 Thread Stefan Sturm
Hello,

I have an element decorator for my elements and it is working corrent.

It looks like this:
public $elementDecorators = array(
'ViewHelper',
'MyErrors',
array(array('data' = 'HtmlTag'), array('tag' = 'div', 'class' 
=
'element')),
array('Label', array('class' = 'left')),
array(array('row' = 'HtmlTag'), array('tag' = 'div', 'class' 
= 'row')),
);

This renders code like this:
div class=row
label for=txtUserName class=required left 
optionalName/label
div class=element
input type=text name=txtUserName id=txtUserName 
value=
size=30 maxlength=20 class=required /
/div
/div

This is what I need :-)

But now my problem. Sometime I want to have two or more elements in
one row. Like perhaps zipcode and city.
This should be rendered like this:
div class=row
label for=txtZipcode class=required left 
optionalZipcode/City/label
div class=element
input type=text name=txtZipcode id=txtZipcode 
value=
size=10 maxlength=10 class=required /
input type=text name=txtCity id=txtCity value= 
size=30
maxlength=20 class=required /
/div
/div


I think, that I need to use DisplayGroups to achieve this. But I don't
get it to work :-(
I think this is a common problem. So hopefully some can give me a hint
how my decorator needs to look like...

Thanks for your Help,
Stefan Sturm


[fw-general] Zend_Form: Appending br / to am element

2008-07-11 Thread Stefan Sturm
Hello,

another Question related to Zend_Form and Decorators :-)

I want to simply add an br / after an Element.
I use this Decorator:

public $elementDecorators = array(
'ViewHelper',
'Errors',
array( 'Label', array('class' = 'left' ) ),
array( 'HtmlTag', array( 'tag' = 'br', 'placement' = 'append' ) ),
);

But this appends br/br to my Element :-(

Where is my Error?

Thanks for your Help,
Stefan Sturm


Re: [fw-general] Zend_Form: Appending br / to am element

2008-07-11 Thread Stefan Sturm
Hello,

i used the openOnly option to get just the br Tag.

Greetings,
Stefan Sturm


2008/7/11 Matthew Weier O'Phinney [EMAIL PROTECTED]:
 -- Stefan Sturm [EMAIL PROTECTED] wrote
 (on Friday, 11 July 2008, 08:51 AM +0200):
 another Question related to Zend_Form and Decorators :-)

 I want to simply add an br / after an Element.
 I use this Decorator:

 public $elementDecorators = array(
   'ViewHelper',
   'Errors',
   array( 'Label', array('class' = 'left' ) ),
   array( 'HtmlTag', array( 'tag' = 'br', 'placement' = 'append' ) ),
 );

 But this appends br/br to my Element :-(

 Where is my Error?

 No error, just a limitation of the HtmlTag helper; it does not
 distinguish between tags requiring a closing tag and those that do not.

 If you want such support, please file an issue in the tracker.

 --
 Matthew Weier O'Phinney
 Software Architect   | [EMAIL PROTECTED]
 Zend Framework   | http://framework.zend.com/



[fw-general] Wrapping div's around a Zend_Form

2008-07-10 Thread Stefan Sturm
Hello,

I try to wrap the following div structure around a Zend_Form:

div class=outerform
div class=topdivdiv/div/div
div class=content
!-- Here comes the Form --
/div
div class=bottomdivdiv/div/div
/div

I tried it with this decorators:

$this-setDecorators(
array(
'FormElements',
'Form',
array(array('content' = 'HtmlTag'), array('tag' = 'div', 
'class'
= 'content')),
array(array('top' = 'HtmlTag'), array('tag' = 'div', 'class' 
=
'topdiv', 'placement' = 'prepend') ),
array(array('bottom' = 'HtmlTag'), array('tag' = 'div', 
'class' =
'bottomdiv', 'placement' = 'append')),
array(array('outer' = 'HtmlTag'), array('tag' = 'div', 
'class' =
'outerform')),
)   
);

But this is not exactly what I need. How can I get the empty
div/div inside topdiv and bottom div?

Hope somebody can Help :-)

Greetings,
Stefan Sturm


[fw-general] Re: Wrapping div's around a Zend_Form

2008-07-10 Thread Stefan Sturm
Hello,

no one with an idea on this? Or is it simply not possible?

Thanks and Greetings,
Stefan Sturm

2008/7/10 Stefan Sturm [EMAIL PROTECTED]:
 Hello,

 I try to wrap the following div structure around a Zend_Form:

 div class=outerform
div class=topdivdiv/div/div
div class=content
!-- Here comes the Form --
/div
div class=bottomdivdiv/div/div
 /div

 I tried it with this decorators:

 $this-setDecorators(
array(
'FormElements',
'Form',
array(array('content' = 'HtmlTag'), array('tag' = 'div', 
 'class'
 = 'content')),
array(array('top' = 'HtmlTag'), array('tag' = 'div', 'class' 
 =
 'topdiv', 'placement' = 'prepend') ),
array(array('bottom' = 'HtmlTag'), array('tag' = 'div', 
 'class' =
 'bottomdiv', 'placement' = 'append')),
array(array('outer' = 'HtmlTag'), array('tag' = 'div', 
 'class' =
 'outerform')),
)
 );

 But this is not exactly what I need. How can I get the empty
 div/div inside topdiv and bottom div?

 Hope somebody can Help :-)

 Greetings,
 Stefan Sturm



[fw-general] Using just Zend_Form

2008-07-09 Thread Stefan Sturm
Hello,

I want to use some of the ZendFramework Components in a new project.
This is no problem with Zend_Cache or Zend_Db, but with Zend_Form...
I there a way to use Zend_Form withot using Zend_View?

Thanks for your Help,
Stefan Sturm


Re: [fw-general] dojo.data component

2008-07-04 Thread Stefan Sturm
Hello,

 Greets, all --

 I've committed the complete Zend_Dojo_Data implementation to the
 incubator this morning; documentation will follow within the next day.
 In the meantime, if any of you want to play with it, check out the unit
 tests, and give me feedback on the lists.

 Enjoy!


I would like to test the Dojo Stuff.
Where can I checkout the correct version and where can I find the dokumentation?

Thanks for your Help,
Stefan Sturm


Re: [fw-general] Optimize Zend_Cache clearing

2008-05-06 Thread Stefan Sturm

Hello Ralf,



Fabien MARTY schrieb am 21.04.2008 19:19:

In your specific case, the sqlite backend sounds better (because it
will use an index for the clean method).


after playing around with some settings of Zend_Cache_Backend_File I
finally switched to Zend_Cache_Backend_Sqlite. Now I am using about 20
separated Sqlite databases for caching different methods rather than  
one

big one for all methods. Seems to work much better up till now.


I'm in a similar situation. Just with much more Cache Files.
Perhaps you can explain in more detail, what exactly you did :-)

Thanks for your Help,
Stefan Sturm


[fw-general] Problem with Sessions

2008-03-13 Thread Stefan Sturm
Hello,

I want to use the Zend_Session Functions without cookies.
So, when I use Zend_Session::start() to start a session, I get a new
session_id with every click,
When I use session_start() to start a session, everything works fine.

I just start the Session, so no more other session related Code...

My Session Settings:
session.auto_start is off
session.use_cookies is off
session.use_only_cookies is off
session.use_trans_sid is on

Where is my Problem?

Greetings,
Stefan Sturm


[fw-general] Desgin a Zend_Form using CSS

2008-02-27 Thread Stefan Sturm
Hello,

is there somewhere i tutorial or a quick start which explains howto design a
Zend_Form using CSS?
I'm not a CSS pro, so I would like  to get some tipps :-)

Thanks and greetings,
Stefan Sturm