[fw-general] Re: Zend_Validate_EmailAddress and emails with dot at the end

2011-06-08 Thread Jan Pieper
Try visiting http://framework.zend.com./ Works fine for me.

A dot at the end is not invalid (for hostnames) because it indicates the
explicit end of the domain name.

If no dot is available at the end and the given host cannot be found by your
dns server you (/your client) can use "search" domains (see
http://linux.about.com/od/commands/l/blcmdl5_resolvc.htm). These domains
will be appended to your the host: "[your given host].[search domain]".

But i don't know if this is valid for email addresses as well.

with regards,
Jan Pieper

--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Zend-Validate-EmailAddress-and-emails-with-dot-at-the-end-tp3577317p3582534.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com




[fw-general] Reflection: get docblock for constants

2011-03-14 Thread Jan Pieper
Hi guys,

is it possible to get the docblock comment for a class constant with
Zend_Reflection and/or Zend_Server_Reflection?

with regards,
Jan Pieper

--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Reflection-get-docblock-for-constants-tp3353893p3353893.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com




[fw-general] Re: Comparing the difference between two timestamps using Zend_Date

2011-03-02 Thread Jan Pieper
I think it's much easier/faster to use filectime():

  if ((filectime($dir) + 300) < time()) {
  rmdir($dir);
  }

with regards,
Jan

--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Comparing-the-difference-between-two-timestamps-using-Zend-Date-tp3331529p3331621.html
Sent from the Zend Framework mailing list archive at Nabble.com.


Re: [fw-general] ZF2: Segmentation Fault - \Zend\Soap\Client\Common ("Maximum function nesting level of '100' reached, aborting!")

2010-11-03 Thread Jan Pieper
I created a pull request to fix this bug:

Request: https://github.com/zendframework/zf2/pull/67
  Issue: http://framework.zend.com/issues/browse/ZF-10338

The call_user_func() were replaced for optimisation but i don't think this is
possible at this place.

with regards,
Jan Pieper


> There's an endless loop because __doRequest() calls _doRequest() via the given
> callback and _doRequest() calls __doRequest() again.
> 
> Zend\Soap\Client\Common::__doRequest()
> Zend\Soap\Client::_doRequest()
> Zend\Soap\Client\Common::__doRequest()
> Zend\Soap\Client::_doRequest()
> Zend\Soap\Client\Common::__doRequest()
> Zend\Soap\Client::_doRequest()
> Zend\Soap\Client\Common::__doRequest()
> Zend\Soap\Client::_doRequest()
> Zend\Soap\Client\Common::__doRequest()
> Zend\Soap\Client::_doRequest()
> Zend\Soap\Client\Common::__doRequest()
> Zend\Soap\Client::_doRequest()
> Zend\Soap\Client\Common::__doRequest()
> Zend\Soap\Client::_doRequest()
> Zend\Soap\Client\Common::__doRequest()
> 
> The code within Zend\Soap\Client::_doRequest() looks a bit different to the 
> old
> Zend_Soap_Client::_doRequest() in 1.11.0 (trunk).
> 
> I have no working php environment to check this error so this is all i can do 
> at
> the moment. There is already a bug report: ZF-10338.
> 
> with regards,
> Jan Pieper
> 
> 
> On 11/03/2010 04:16 PM, Jonathan Maron wrote:
>> Hello all
>>
>> I am experiencing a segmentation fault ("Maximum function nesting
>> level of '100' reached, aborting!"), when I try to run the latest
>> version of the demos illustrating \Zend\Service\LiveDocx.
>>
>> I just now cloned the latest ZF2 repository from
>> https://github.com/jonathanmaron/zf2 .
>>
>> The same behavior in exhibited in PHP 5.3.2 and PHP 5.3.3
>>
>> See https://gist.github.com/661179 for debug trace.
>>
>> These demos worked perfectly, before I merged the latest ZF2 repos.
>> The demos and the family of classes at \Zend\Service\LiveDocx have not
>> changed.
>>
>> It would appear that there is an issue with the current
>> \Zend\Soap\Client\Common.
>>
>> The line mentioned in the dump (see above link) is:
>>
>> return call_user_func($this->_doRequestCallback, $this, $request,
>> $location, $action, $version, $one_way);
>>
>> in the method:
>>
>> function __doRequest($request, $location, $action, $version, $one_way = null)
>>
>> at
>>
>> library/Zend/Soap/Client/Common.php:74
>>
>> Could someone help me to debug and fix this?
>>
>> Thank you. :-)
>>
>> Jonathan
>>
> 



Re: [fw-general] ZF2: Segmentation Fault - \Zend\Soap\Client\Common ("Maximum function nesting level of '100' reached, aborting!")

2010-11-03 Thread Jan Pieper
There's an endless loop because __doRequest() calls _doRequest() via the given
callback and _doRequest() calls __doRequest() again.

Zend\Soap\Client\Common::__doRequest()
Zend\Soap\Client::_doRequest()
Zend\Soap\Client\Common::__doRequest()
Zend\Soap\Client::_doRequest()
Zend\Soap\Client\Common::__doRequest()
Zend\Soap\Client::_doRequest()
Zend\Soap\Client\Common::__doRequest()
Zend\Soap\Client::_doRequest()
Zend\Soap\Client\Common::__doRequest()
Zend\Soap\Client::_doRequest()
Zend\Soap\Client\Common::__doRequest()
Zend\Soap\Client::_doRequest()
Zend\Soap\Client\Common::__doRequest()
Zend\Soap\Client::_doRequest()
Zend\Soap\Client\Common::__doRequest()

The code within Zend\Soap\Client::_doRequest() looks a bit different to the old
Zend_Soap_Client::_doRequest() in 1.11.0 (trunk).

I have no working php environment to check this error so this is all i can do at
the moment. There is already a bug report: ZF-10338.

with regards,
Jan Pieper


On 11/03/2010 04:16 PM, Jonathan Maron wrote:
> Hello all
> 
> I am experiencing a segmentation fault ("Maximum function nesting
> level of '100' reached, aborting!"), when I try to run the latest
> version of the demos illustrating \Zend\Service\LiveDocx.
> 
> I just now cloned the latest ZF2 repository from
> https://github.com/jonathanmaron/zf2 .
> 
> The same behavior in exhibited in PHP 5.3.2 and PHP 5.3.3
> 
> See https://gist.github.com/661179 for debug trace.
> 
> These demos worked perfectly, before I merged the latest ZF2 repos.
> The demos and the family of classes at \Zend\Service\LiveDocx have not
> changed.
> 
> It would appear that there is an issue with the current
> \Zend\Soap\Client\Common.
> 
> The line mentioned in the dump (see above link) is:
> 
> return call_user_func($this->_doRequestCallback, $this, $request,
> $location, $action, $version, $one_way);
> 
> in the method:
> 
> function __doRequest($request, $location, $action, $version, $one_way = null)
> 
> at
> 
> library/Zend/Soap/Client/Common.php:74
> 
> Could someone help me to debug and fix this?
> 
> Thank you. :-)
> 
> Jonathan
> 


Re: [fw-general] Weird bug in ZF?

2010-08-12 Thread Jan Pieper
This isn't a bug. Please have a look at 
http://en.wikipedia.org/wiki/Prepared_statements#Parameterized_statements

with regards,
Jan Pieper

 Original-Nachricht 
> Datum: Thu, 12 Aug 2010 10:13:24 +0200
> Von: Jigal sanders 
> An: fw-general 
> Betreff: [fw-general] Weird bug in ZF?

> hello i have a very weird bug.
> I have pasted all code here: http://pastebin.com/K5riS3ng its in the zend
> framework.
> In the beginning of the function all my values are there. But when
> creating
> the sql statement all the values are gone.
> 
> Any Idea's?
> 
> 
> J. Sanders

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01


Re: [fw-general] Zend_Soap_Discover don't create WSDL return messages and everything xsd:anytime

2010-06-29 Thread Jan Pieper
Use /** instead of /* to start your multi-line comment.

-- Jan

 Original-Nachricht 
> Datum: Tue, 29 Jun 2010 17:47:12 +0200
> Von: Tamer Higazi 
> An: fw-general@lists.zend.com
> Betreff: Re: [fw-general] Zend_Soap_Discover don\'t create WSDL return 
> messages and everything xsd:anytime

> Same result:
> 
> http://toplay.higazi.net/?wsdl
> 
> I updated the files.
> 
> 
> Any ideas anymore?!
> 
> 
> Tamer
> 
> Am 29.06.2010 16:54, schrieb Jan Pieper:
> > I don't know whether Zend_Soap_AutoDiscover or rather
> Zend_Server_Reflection is able to handle single-line comments for phpdoc. Try 
> using
> multi-line comments instead:
> >
> > /**
> >  * @param  string $ein
> >  * @return string
> >  */
> > public function MeineFunk($ein) {
> > ...
> > }
> >
> > -- Jan
> >
> >  Original-Nachricht 
> >   
> >> Datum: Tue, 29 Jun 2010 13:30:35 +0200
> >> Von: Tamer Higazi 
> >> An: fw-general@lists.zend.com
> >> Betreff: Re: [fw-general] Zend_Soap_Discover don\'t create WSDL return
> messages and everything xsd:anytime
> >> 
> >   
> >> I did as you told me,
> >> but nothing happened :(
> >>
> >> Here's the URL:
> >> http://toplay.higazi.net/soaps/app/MeineKlasse.phps
> >>
> >> Can you give me more advises?!
> >>
> >>
> >> Tamer
> >>
> >>
> >> Am 29.06.2010 12:27, schrieb Jan Pieper:
> >> 
> >>> You need to add PHPDoc comments to your methods of "MeineKlasse".
> >>>   
> >> Zend_Soap_AutoDiscover will use its content to generate input and
> output messages
> >> for your WSDL file.
> >> 
> >>> -- Jan
> >>>
> >>>  Original-Nachricht 
> >>>   
> >>>   
> >>>> Datum: Tue, 29 Jun 2010 12:22:23 +0200
> >>>> Von: Tamer Higazi 
> >>>> An: fw-general@lists.zend.com
> >>>> Betreff: [fw-general] Zend_Soap_Discover don\'t create WSDL return
> >>>> 
> >> messages and everything xsd:anytime
> >> 
> >>>> 
> >>>> 
> >>>   
> >>>   
> >>>> Hi people!
> >>>> I have set up a Soap Server as well I do generate the WSDL File with
> >>>> 
> >> the
> >> 
> >>>> generator. The WSDL Generator generates me only the input messages,
> but
> >>>> I need the ouput messages created on the fly either, and I am not
> >>>> getting smart.
> >>>>
> >>>> General:
> >>>> http://toplay.higazi.net/?wsdl
> >>>>
> >>>> generates the WSDL File from the class MeineKlasse
> >>>>
> >>>> and
> >>>>
> >>>> http://toplay.higazi.net/
> >>>>
> >>>> is the SoapServer.
> >>>>
> >>>> that takes as parameter the wsdl url.
> >>>>
> >>>> Problem:
> >>>> 1. the created WSDL File () generates only input messages.
> >>>> Where are the ouptut messages that have to be returned?!
> >>>> 2. the functions message name (at the bottom redefined) defines the
> >>>> parameter as xsd:anyType. How will I have to redefine it, that the
> >>>> 
> >> input
> >> 
> >>>> type generated in WSDL is String?!
> >>>>
> >>>>
> >>>> Instead of posting the sourcecode around, I thought generating
> >>>> everything as PHPS Files to see it directly on the browserscreen.
> >>>>
> >>>> http://toplay.higazi.net/soaps/app/MeineKlasse.phps
> >>>> http://toplay.higazi.net/soaps/ClassLoader.phps
> >>>> http://toplay.higazi.net/soaps/web/index.phps
> >>>>
> >>>>
> >>>>
> >>>> Thank you for your support
> >>>>
> >>>>
> >>>>
> >>>> Tamer
> >>>> 
> >>>> 
> >>>   
> >>>   
> >   

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01


Re: [fw-general] Zend_Soap_Discover don't create WSDL return messages and everything xsd:anytime

2010-06-29 Thread Jan Pieper
I don't know whether Zend_Soap_AutoDiscover or rather Zend_Server_Reflection is 
able to handle single-line comments for phpdoc. Try using multi-line comments 
instead:

/**
 * @param  string $ein
 * @return string
 */
public function MeineFunk($ein) {
...
}

-- Jan

 Original-Nachricht 
> Datum: Tue, 29 Jun 2010 13:30:35 +0200
> Von: Tamer Higazi 
> An: fw-general@lists.zend.com
> Betreff: Re: [fw-general] Zend_Soap_Discover don\'t create WSDL return 
> messages and everything xsd:anytime

> I did as you told me,
> but nothing happened :(
> 
> Here's the URL:
> http://toplay.higazi.net/soaps/app/MeineKlasse.phps
> 
> Can you give me more advises?!
> 
> 
> Tamer
> 
> 
> Am 29.06.2010 12:27, schrieb Jan Pieper:
> > You need to add PHPDoc comments to your methods of "MeineKlasse".
> Zend_Soap_AutoDiscover will use its content to generate input and output 
> messages
> for your WSDL file.
> >
> > -- Jan
> >
> >  Original-Nachricht 
> >   
> >> Datum: Tue, 29 Jun 2010 12:22:23 +0200
> >> Von: Tamer Higazi 
> >> An: fw-general@lists.zend.com
> >> Betreff: [fw-general] Zend_Soap_Discover don\'t create WSDL return
> messages and everything xsd:anytime
> >> 
> >   
> >> Hi people!
> >> I have set up a Soap Server as well I do generate the WSDL File with
> the
> >> generator. The WSDL Generator generates me only the input messages, but
> >> I need the ouput messages created on the fly either, and I am not
> >> getting smart.
> >>
> >> General:
> >> http://toplay.higazi.net/?wsdl
> >>
> >> generates the WSDL File from the class MeineKlasse
> >>
> >> and
> >>
> >> http://toplay.higazi.net/
> >>
> >> is the SoapServer.
> >>
> >> that takes as parameter the wsdl url.
> >>
> >> Problem:
> >> 1. the created WSDL File () generates only input messages.
> >> Where are the ouptut messages that have to be returned?!
> >> 2. the functions message name (at the bottom redefined) defines the
> >> parameter as xsd:anyType. How will I have to redefine it, that the
> input
> >> type generated in WSDL is String?!
> >>
> >>
> >> Instead of posting the sourcecode around, I thought generating
> >> everything as PHPS Files to see it directly on the browserscreen.
> >>
> >> http://toplay.higazi.net/soaps/app/MeineKlasse.phps
> >> http://toplay.higazi.net/soaps/ClassLoader.phps
> >> http://toplay.higazi.net/soaps/web/index.phps
> >>
> >>
> >>
> >> Thank you for your support
> >>
> >>
> >>
> >> Tamer
> >> 
> >   

-- 
GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl.  
Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl


Re: [fw-general] Zend_Soap_Discover don't create WSDL return messages and everything xsd:anytime

2010-06-29 Thread Jan Pieper
You need to add PHPDoc comments to your methods of "MeineKlasse". 
Zend_Soap_AutoDiscover will use its content to generate input and output 
messages for your WSDL file.

-- Jan

 Original-Nachricht 
> Datum: Tue, 29 Jun 2010 12:22:23 +0200
> Von: Tamer Higazi 
> An: fw-general@lists.zend.com
> Betreff: [fw-general] Zend_Soap_Discover don\'t create WSDL return messages 
> and everything xsd:anytime

> Hi people!
> I have set up a Soap Server as well I do generate the WSDL File with the
> generator. The WSDL Generator generates me only the input messages, but
> I need the ouput messages created on the fly either, and I am not
> getting smart.
> 
> General:
> http://toplay.higazi.net/?wsdl
> 
> generates the WSDL File from the class MeineKlasse
> 
> and
> 
> http://toplay.higazi.net/
> 
> is the SoapServer.
> 
> that takes as parameter the wsdl url.
> 
> Problem:
> 1. the created WSDL File () generates only input messages.
> Where are the ouptut messages that have to be returned?!
> 2. the functions message name (at the bottom redefined) defines the
> parameter as xsd:anyType. How will I have to redefine it, that the input
> type generated in WSDL is String?!
> 
> 
> Instead of posting the sourcecode around, I thought generating
> everything as PHPS Files to see it directly on the browserscreen.
> 
> http://toplay.higazi.net/soaps/app/MeineKlasse.phps
> http://toplay.higazi.net/soaps/ClassLoader.phps
> http://toplay.higazi.net/soaps/web/index.phps
> 
> 
> 
> Thank you for your support
> 
> 
> 
> Tamer

-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01


Re: [fw-general] Zend_Service_Twitter - Notice: Undefined offset: 0 in \library\Zend\Rest\Client\Result.php on line 232

2010-06-15 Thread Jan Pieper
>> I am using the Zend Framework 1.10.

;)

with regards,
jan


> Which version are you using? Thanks.
> 
> Paddy
> 
> Sent from my iPhone
> 
> On 15 Jun 2010, at 02:50, "Jack Houghton"  > wrote:
> 
>> I am receiving the following error when trying to authenticate to
>> twitter using Zend_Service_Twitter:
>>
>>  
>>
>> *Notice*: Undefined offset: 0 in* \library\Zend\Rest\Client\Result.php
>> *on line *232***
>>
>>  
>>
>> I am using the Zend Framework 1.10.
>>
>>  
>>
>> The following is the code snippet:
>>
>>  
>>
>> try
>>
>> {
>>
>> $this->twitter = new Zend_Service_Twitter( 'notbaggage',
>> '' );
>>
>> }
>>
>> catch(Exception  $e)
>>
>> {
>>
>> echo "" . $e . "";
>>
>> }
>>
>>  
>>
>> Any help is appreciated
>>
>> Jack
>>
>>  
>>



Re: [fw-general] Good HTML to plain ASCII class

2009-12-14 Thread Jan Pieper
I am using following function to convert HTML to plain text:

function stripHTML($text)
{
// lists
$text = preg_replace("//i", "* ", $text);
$text = preg_replace("/<\/li>/i", "\r\n", $text);

// tables
$text = preg_replace("/<\/td>/i", "\t", $text);
$text = preg_replace("/<\/th>/i", "\t", $text);
$text = preg_replace("/<\/tr>/i", "\r\n", $text);

// linebreaks
$text = preg_replace("/]+>|/i", "\r\n", $text);
$text = preg_replace("/<\/p>/i", "\r\n\r\n", $text);
$text = preg_replace("/<\/div>/i", "\r\n", $text);

// strip rest
$text = strip_tags($text);

while (strpos($text, "\r\n\r\n\r\n") !== false) {
$text = str_replace("\r\n\r\n\r\n", "\r\n\r\n", $text);
}

return trim($text);
}

Don't know whether it is a good way to convert HTML to text, but it works :-)

-- Jan

 Original-Nachricht 
> Datum: Mon, 14 Dec 2009 15:42:57 +0100
> Von: "Саша Стаменковић" 
> An: takeshin 
> CC: fw-general@lists.zend.com
> Betreff: Re: [fw-general] Good HTML to plain ASCII class

> You want to have html email templates and use them to set text body?
> 
> I'm interested in this as well. And also for best practices on how to
> build
> powerful mailer with Zend_View and Zend_Layout.
> 
> Regards,
> Saša Stamenković
> 
> 
> On Mon, Dec 14, 2009 at 3:35 PM, takeshin  wrote:
> 
> >
> > Can you recommend valuable HTML to plain ASCII class,
> > for use with Zend_Mail::setBodyHtml and Zend_Mail::setBodyText ?
> >
> > --
> > regards
> > takeshin
> > --
> > View this message in context:
> > http://n4.nabble.com/Good-HTML-to-plain-ASCII-class-tp963569p963569.html
> > Sent from the Zend Framework mailing list archive at Nabble.com.
> >

-- 
Preisknaller: GMX DSL Flatrate für nur 16,99 Euro/mtl.!
http://portal.gmx.net/de/go/dsl02


Re: [fw-general] Soap server problem

2009-11-24 Thread Jan Pieper
Are you using Zend_Soap_Client::setClassmap() and/or 
Zend_Soap_Server::setClassmap()?

-- Jan

 Original-Nachricht 
> Datum: Tue, 24 Nov 2009 15:17:50 +0100
> Von: Mark Hage 
> An: Zend Framework General 
> Betreff: [fw-general] Soap server problem

> Hi,
> 
> I have a Zend_Soap_Server.
> It is created using a wsdl, which is created using the autodiscover
> functionality.
> 
> No I have a function which needs an objcet as input.
> 
> function newPost($post) where $post is a Post object.
> 
> The wsdl is created correctly.
> The Zend_Soap_client calls the function correctly and the object are
> passed
> in ok.
> 
> But in the Zend_Soap_Server the object is of type stdClass.
> 
> Where does this go wrong and how can I determine this?
> 
> Thanx,
> Mark

-- 
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser


RE: [fw-general] url($urlOptions, $name, $reset) - what is $name ?

2009-09-18 Thread Jan Pieper
> I completly don't understand.

You can use a specific route (selected by $name) do build url with.

Take a look at 
http://framework.zend.com/manual/en/zend.controller.router.html#zend.controller.router.basic

-- Jan

Re: [fw-general] Creating FEED exception problem!

2009-06-23 Thread Jan Pieper
[...] instead of $entry['link '].

> There is a misplaced whitespace on line 11.
> 
> It must be $entry['link'] instead of $entry['link'].
> 
> -- Jan
> 
>> Hi, i am creating a feed using a lot of examples over the web, but it gives
>> me an exception...
>>
>> Fatal error: Uncaught exception 'Zend_Feed_Builder_Exception' with message
>> 'link key is missing' in C:\AppServ\www\NoPe\Zend\Feed\Builder.php:353 Stack
>> trace: #0 
>> C:\AppServ\www\NoPe\Zend\Feed\Builder.php(182):
>> Zend_Feed_Builder->_createEntries(Array) #1
>>  C:\AppServ\www\NoPe\Zend\Feed.php(385):
>> Zend_Feed_Builder->__construct(Array) #2 
>> C:\AppServ\www\NoPe\search.php(124): Zend_Feed::importArray(Array, 'rss') #3
>> {main} thrown in
>>  C:\AppServ\www\NoPe\Zend\Feed\Builder.php on line 353
>>
>> THE CODE IS HERE:
>>
>> http://paste.ideaslabs.com/show/XiFkbxKUjS
>>
>> I don't know where is the problem :( $hit->link return data...so i don't
>> know
>>
>> can anyone help me please!
> 



Re: [fw-general] Creating FEED exception problem!

2009-06-23 Thread Jan Pieper
There is a misplaced whitespace on line 11.

It must be $entry['link'] instead of $entry['link'].

-- Jan

> Hi, i am creating a feed using a lot of examples over the web, but it gives
> me an exception...
> 
> Fatal error: Uncaught exception 'Zend_Feed_Builder_Exception' with message
> 'link key is missing' in C:\AppServ\www\NoPe\Zend\Feed\Builder.php:353 Stack
> trace: #0 
> C:\AppServ\www\NoPe\Zend\Feed\Builder.php(182):
> Zend_Feed_Builder->_createEntries(Array) #1
>  C:\AppServ\www\NoPe\Zend\Feed.php(385):
> Zend_Feed_Builder->__construct(Array) #2 
> C:\AppServ\www\NoPe\search.php(124): Zend_Feed::importArray(Array, 'rss') #3
> {main} thrown in
>  C:\AppServ\www\NoPe\Zend\Feed\Builder.php on line 353
> 
> THE CODE IS HERE:
> 
> http://paste.ideaslabs.com/show/XiFkbxKUjS
> 
> I don't know where is the problem :( $hit->link return data...so i don't
> know
> 
> can anyone help me please!



[fw-general] Missing component in JIRA

2009-05-04 Thread Jan Pieper
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Can please someone add "Zend_Crypt" to the component list in JIRA?

best regards,
Jan Pieper
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)

iD8DBQFJ/rqdAmDzOgJaVSERAqZvAKCMKQBfKVKgEQE2LrqARpskx0ypnQCdGLl3
JbOYvc7SscLkX4XZKGHbBPc=
=Ocsg
-END PGP SIGNATURE-


Re: [fw-general] Survey: Development environment for PHP/ZFW

2009-05-03 Thread Jan Pieper
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

> 1. What OS you are using during development? Windows? Mac? Linux?

- - Windows XP Prof & Fedora 10

> 2. Do you edit source code on localhost or remote? i.e. is your
> testing environment reside on localhost or remote?

- - local

> 3. What tool or IDE you are using? Ultraedit? Apanta? Eclipse PDT?

- - Eclipse + phpEclipse

> 4. Which versioning system your are using? svn? git?

- - SVN

> 5. Do you use PHPUnit or other testing tools?

- - PHPUnit

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkn+dCQACgkQAmDzOgJaVSG6QwCgjygP6DkR3GtT+AA2pjd+Cg4C
BUgAoJxaOE+WCMGxjkvudzwTKHgPjcRm
=i1bv
-END PGP SIGNATURE-


Re: [fw-general] Zend Framework team reorganization

2009-04-14 Thread Jan Pieper
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

> First, the team now reports to Zeev Suraski, Zend's CTO. Please welcome
> him to the lists!

Welcome Zeev :-)

> Additionally, Wil Sinclair is ending his tenure as the Zend Framework
> team leader.

Yeah, thank you Wil for your great work.

> Finally, I am pleased to announce my own promotion to the position of
> Project Lead. I have worked with Andi and Zeev in recent weeks to define
> how I will approach this role, and have emphasized during that time the
> need to address and respond to community concerns. 

I already noticed that you are very committed to this project in the last
time. So, congratulations to your advancement.

> Following the 1.8 release, the team will be focussing on items such as
> whiddling down the bug backlog, improving documentation, and writing
> tutorials. Additionally, we will be outlining and scoping upcoming
> releases in order to publish a public roadmap for the project. Part of
> this effort will include some work to make the proposal process easier
> and more transparent. The hope is that having published milestones will
> help focus user contributions, both in terms of new features and
> stabilizing the framework.

Sound good.

Best regards,
Jan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknkzO8ACgkQAmDzOgJaVSGCVACcC7gpFOcZO85Nwl7gZ0mbb7Vi
MdoAnjyICRvXbQ0remqhhaIGNN1qdo4W
=xPMv
-END PGP SIGNATURE-


Re: [fw-general] _forward(): multiple controller instanciation

2009-04-14 Thread Jan Pieper
Yeah, but than the view script won't be changed.

 Original-Nachricht 
> Datum: Tue, 14 Apr 2009 12:33:48 +0100
> Von: keith Pope 
> An: Jan Pieper 
> CC: fw-general@lists.zend.com
> Betreff: Re: [fw-general] _forward(): multiple controller instanciation

> If you are in the same control don't forward, just call the method?
> 
> 2009/4/14 Jan Pieper :
> > Why is it needed to create a new controller instance for each forwarding
> from one action to another without changing the controller and/or module?
> My init()-functionality is not able to handle multiple calls. Okay I can
> change it to avoid twice execution but why is it needed to have multiple
> instances of one and the same controller?
> >
> > Best regards,
> > Jan
> > --
> > Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit
> allen: http://www.gmx.net/de/go/multimessenger01
> >
> 
> 
> 
> -- 
> --
> [MuTe]
> --

-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger01


[fw-general] _forward(): multiple controller instanciation

2009-04-14 Thread Jan Pieper
Why is it needed to create a new controller instance for each forwarding from 
one action to another without changing the controller and/or module? My 
init()-functionality is not able to handle multiple calls. Okay I can change it 
to avoid twice execution but why is it needed to have multiple instances of one 
and the same controller?

Best regards,
Jan
-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger01


Re: [fw-general] JIRA Password reset

2009-04-10 Thread Jan Pieper
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

> Matthew will be taking care of this from now on. You should send a mail
> to him directly. He may be busy, so patience would be appreciated.

Why not using http://framework.zend.com/crowd/ to reset password?

Best regards,
Jan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkngMpwACgkQAmDzOgJaVSHlSwCfYXSddtzE8ZKEW53W7NnalFmP
6qYAnjwxS2TL3BLV+b8JhJpwxJCqfVaz
=RhGo
-END PGP SIGNATURE-


[fw-general] What happened to the list?

2009-04-09 Thread Jan Pieper
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Today I got 500+ mails (oldest were from 22nd march) from the list and most of
them were tagged as possible spam. Is it a problem of my mailserver or were
there any problems to the list?

Best regards,
Jan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknePYUACgkQAmDzOgJaVSGFPACgnXLNjjUfJ/OBwAK11CdDqGLY
ajsAnR3cJBYEAGpefUcP6hfwUY8OrkDU
=hN1j
-END PGP SIGNATURE-


[fw-general] Why I am unable to access other actions than default?

2009-03-01 Thread Jan Pieper
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Hi guys,

since saturday morning i am searching for a reason why my application is unable
to display something else than module=default, controller=index and 
action=index.

http://www.example.org/article/show/id/5
http://www.example.org/imprint
http://www.example.org/category/1/Example

All these urls will render index-action of index-controller of default-module
and I have absolutly no idea why :-(

I only can access other actions by setting these three parameters by myself
using setModuleName(), setControllerName() and setActionName() or by using
normal $_GET parameters (?module=default&controller=article&action=show). I
can't find the mistake so I hope you help me finding it.

http://www.pastie.org/403727 Directory structure
http://www.pastie.org/403726 .htaccess
http://www.pastie.org/403725 index.php
http://www.pastie.org/403724 main.xml
http://www.pastie.org/403723 Initialize.php

Best regards,
Jan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEAREDAAYFAkmqgOoACgkQAmDzOgJaVSHGyQCeIlceSONiTdij3WhsOd/wR7+t
WtkAoK4+lFLNr6ndqCP6WwKBQaYMOF0k
=yecR
-END PGP SIGNATURE-


Re: [fw-general] [ZF-5660] Zend_Config_Xml: improved inheritance

2009-02-04 Thread Jan Pieper
Yesterday I startet to try to cover all Zend_Config tests to avoid changes 
between the current state of Zend_Config_Xml and my changes. There are few 
tricky differences between them. After all tests are covered by my changes I´ll 
write a comment to my issue ZF-5660.

-- Jan

 Original-Nachricht 
> Datum: Mon, 2 Feb 2009 17:31:16 -0700
> Von: "A.J. Brown" 
> An: Jan Pieper 
> CC: Zend Framework General 
> Betreff: Re: [fw-general] [ZF-5660] Zend_Config_Xml: improved inheritance

> I like this, good work!  You should also update the tests to cover this
> and
> post a diff.
> 
> On Mon, Feb 2, 2009 at 5:14 PM, Jan Pieper  wrote:
> 
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > Hi guys, I´ve added a diff and a small example to my issue ZF-5660 [1].
> > Would be
> > great if someone can check/test my changes to Zend_Config_Xml or to
> write a
> > comment.
> >
> > I don´t think the attached code is final but it is a working example to
> > show
> > what I want :-)
> >
> > [1] http://framework.zend.com/issues/browse/ZF-5660
> >
> > - -- Jan
> > -BEGIN PGP SIGNATURE-
> > Version: GnuPG v1.4.9 (MingW32)
> > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> >
> > iEYEARECAAYFAkmHjIIACgkQAmDzOgJaVSFj1gCgrZ5Nc78GW5IAqbokqhi8DwUz
> > EeYAn3mP0V2abJYuk9BVPHMXU9dc/LLT
> > =fSzC
> > -END PGP SIGNATURE-
> >
> >
> 
> 
> -- 
> A.J. Brown
> web | http://ajbrown.org
> phone | (937) 660-3969

-- 
Jetzt 1 Monat kostenlos! GMX FreeDSL - Telefonanschluss + DSL 
für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a


[fw-general] [ZF-5660] Zend_Config_Xml: improved inheritance

2009-02-02 Thread Jan Pieper
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi guys, I´ve added a diff and a small example to my issue ZF-5660 [1]. Would be
great if someone can check/test my changes to Zend_Config_Xml or to write a 
comment.

I don´t think the attached code is final but it is a working example to show
what I want :-)

[1] http://framework.zend.com/issues/browse/ZF-5660

- -- Jan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmHjIIACgkQAmDzOgJaVSFj1gCgrZ5Nc78GW5IAqbokqhi8DwUz
EeYAn3mP0V2abJYuk9BVPHMXU9dc/LLT
=fSzC
-END PGP SIGNATURE-



smime.p7s
Description: S/MIME Cryptographic Signature


Re: [fw-general] Zend_Config: merge and extends

2009-01-30 Thread Jan Pieper
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Argh, thanks :-)

- -- Jan

> The built in merge method of Zend_Config is just what you're looking for:
> 
> $config = new Zend_Config...;
> $config2 = new Zend_Config.;
> 
> $config->merge($config2);
> // In this case, $config2 will be merged into $config.
> 
> 
> 
> 
> On 30/01/2009 2:49 AM, Jan Pieper wrote:
>> Is it possible to use "extends" in an array? I need to merge X config
>> files to one config.
>>
>> I currently convert them to an array to merge them, but then the
>> "extends" will be lost.
>>
>> - this two config files -
>>
>> 
>>
>>  5
>>
>> 
>>
>> 
>>...
>>...
>> 
>>
>> -- should be merged to --
>>
>> 
>>
>>  5
>>
>>...
>>...
>> 
>>
>> -
>>
>> Any clue how to merge X config files without losing "extends"? I see
>> only a way using DOM but it should also work with Ini configs.
>>
>> -- Jan
> 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmDOyEACgkQAmDzOgJaVSGqlACgj4iHC7dMmCW2F07VVk2NtBWb
+vcAoLhmh8lzZeeAxW3jwg9Rh0YgxlPd
=ahbQ
-END PGP SIGNATURE-


smime.p7s
Description: S/MIME Cryptographic Signature


[fw-general] Zend_Config: merge and extends

2009-01-30 Thread Jan Pieper
Is it possible to use "extends" in an array? I need to merge X config files to 
one config.

I currently convert them to an array to merge them, but then the "extends" will 
be lost.

- this two config files -


  
5
  



  ...
  ...


-- should be merged to --


  
5
  
  ...
  ...


-

Any clue how to merge X config files without losing "extends"? I see only a way 
using DOM but it should also work with Ini configs.

-- Jan
-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger01


[fw-general] Filter question

2009-01-25 Thread Jan Pieper
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi guys,

I am working on a new proposal to compress and uncompress data. I want to use 
Zend_Filter_Interface as base. Do I have to create two filter classes to 
compress and uncompress or is there a way I can use only one class? For example 
using a set-method to say whether I want to compress or uncompress the data? I 
think I have to create two classes, right?

=

Jan Pieper
Entwicklung

Tel: +49 22 33 - 612 - 3606
Fax: +49 22 33 - 612 - 53606
E-Mail: j.pie...@plusserver.de

PlusServer AG
Daimlerstraße 9-11
50354 Hürth
Germany

HRB 58428 / Amtsgericht Köln, USt-ID DE216 740 823
Vorstand: Jochen Berger, Frank Gross, Jan Osthues, Thomas Strohe
Aufsichtsratsvorsitz: Claudius Schmalschläger

=

GPG-Key: 0x025A5521
GPG-FPR: A15D 24E8 9BDB 3A62 2AE9  FD46 0260 F33A 025A 5521
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)

iD8DBQFJfWyVAmDzOgJaVSERAs2QAJ9Wx+QPJFnpOlRQkdEIB7u0EhMjtACgoUhd
B1Mw6tVINzR9Lkuu56/31Kc=
=SS6S
-END PGP SIGNATURE-


[fw-general] Zend_Mail_Storage_Mbox: missing part?

2009-01-06 Thread Jan Pieper
Hi guys,

I am using Zend_Mail_Storage_Mbox to read mails from mbox but it seems to me
that I cannot get all parts. I sent an example mail with text (text/plain), html
(text/html) and an attached (image/png) inline part. I've attached the mbox to
this email (mbox.txt).

require_once 'Zend/Mail/Storage/Mbox.php';
$mbox = new Zend_Mail_Storage_Mbox(array(
'filename' => '/home/jan/Desktop/mbox.txt'
));

require_once 'Zend/Debug.php';
Zend_Debug::dump($mbox->getMessage(1));

object(Zend_Mail_Message_File)#2 (12) {
  ["_flags:protected"] => array(0) {
  }
  ["_contentPos:protected"] => array(2) {
[0] => int(330)
[1] => int(1353)
  }
  ["_partPos:protected"] => array(2) {
[0] => array(2) {
  [0] => int(468)
  [1] => int(953)
}
[1] => array(2) {
  [0] => int(990)
  [1] => int(1314)
}
  }
  ["_fh:protected"] => resource(13) of type (stream)
  ["_headers:protected"] => array(7) {
["return-path"] => string(27) ""
["to"] => string(25) "j...@localhost.localdomain"
["subject"] => string(8) "Testmail"
["from"] => string(25) "j...@localhost.localdomain"
["date"] => string(31) "Sat, 06 Jan 2009 13:55:40 +0100"
["content-type"] => string(79) "multipart/mixed; charset="utf-8";
boundary="=_1f37c4c6837f0c1cbc45a73c7af851ba""
["mime-version"] => string(3) "1.0"
  }
  ["_content:protected"] => NULL
  ["_topLines:protected"] => string(0) ""
  ["_parts:protected"] => array(0) {
  }
  ["_countParts:protected"] => int(2)
  ["_iterationPos:protected"] => int(1)
  ["_mail:protected"] => NULL
  ["_messageNum:protected"] => int(0)
}

As you can see ($_partPos) there are only two parts.

$mbox->getMessage(1)->getPart(0); // part not found
$mbox->getMessage(1)->getPart(1); // text/html part
$mbox->getMessage(1)->getPart(2); // image/png part (base64)
$mbox->getMessage(1)->getPart(3); // part not found

Am I doing something wrong? Why is one part missing?

-- Jan
From j...@localhost.localdomain  Sat Jan  6 13:55:41 2009
Return-Path: 
To: j...@localhost.localdomain
Subject: Testmail
From: j...@localhost.localdomain
Date: Sat, 06 Jan 2009 13:55:40 +0100
Content-Type: multipart/mixed; charset="utf-8";
 boundary="=_1f37c4c6837f0c1cbc45a73c7af851ba"
MIME-Version: 1.0


This is a message in Mime Format.  If you see this, your mail reader does not 
support this format.

--=_1f37c4c6837f0c1cbc45a73c7af851ba
Content-Type: multipart/alternative;
 boundary="=_d501a90e2649c7e24f8d3078a591f610"
Content-Transfer-Encoding: 8bit


--=_d501a90e2649c7e24f8d3078a591f610
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Hello world

--=_d501a90e2649c7e24f8d3078a591f610
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Hello world

--=_d501a90e2649c7e24f8d3078a591f610--

--=_1f37c4c6837f0c1cbc45a73c7af851ba
Content-Type: application/octet-stream
Content-Transfer-Encoding: base64
Content-ID: <50de13e501e6236f15c1a4fe1d07ef96>
Content-Disposition: inline; filename="example.png"

iVBORw0KGgoNSUhEUgAAADIyAQMk8RryBlBMVEWurq4zMzOJRNl/
IklEQVQYlWNgGPzgAYRiloDQLCyoNAcTdhpdHUw/zLxBCQCxnQI1BtXliABJRU5ErkJg
gg==
--=_1f37c4c6837f0c1cbc45a73c7af851ba--


Re: [fw-general] JSON in PECL

2009-01-06 Thread Jan Pieper
I can´t see your problem. Zend_Json is using json_encode() and json_decode() if 
they are existent. If not Zend_Json is using its own encoding 
(Zend_Json_Encoder) and decoding (Zend_Json_Decoder).

-- Jan

 Original-Nachricht 
> Datum: Tue, 6 Jan 2009 12:30:19 +0200
> Von: "mohmmad jarwan" 
> An: "Martin Martinov" 
> CC: fw-general@lists.zend.com
> Betreff: Re: [fw-general] JSON in PECL

> thank you for replay i take a look to code and it's PEAR and I want to use
> PECL if  can and if cane how i use it.
> 
> 
> On Tue, Jan 6, 2009 at 12:23 PM, Martin Martinov 
> wrote:
> 
> > 2009/1/6 mohmmad jarwan :
> > > hi list
> > > i assume zend framework use JSON in PEAR extinction so,
> > > I need to use JSON in PECL extinction  not PEAR extinction how can i
> do
> > that
> > > .
> > >
> > > regard.
> > > thank you for help .
> > >
> > >
> > >
> >
> > Don't assume ;-)
> > Just take a look at the source code of the Zend_Json class and you'll
> > see what it's using and when.
> >
> > --
> > Regards,
> > Martin Martinov
> > http://mmartinov.com/
> >

-- 
Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a


[fw-general] Get MIME mail from Zend_Mail?

2008-12-30 Thread Jan Pieper
I am currently using Zend_Mail with Zend_Mail_(Transport|Protocol)_Smtp
but now I need to get the mime encoded mail as string. Any clue how to
get it?

-- Jan


[fw-general] date validation without specific format

2008-12-18 Thread Jan Pieper
Is it possible to validate a string against each date/datetime format? 
The validation should stop when a valid format is found.


-- Jan


RE: [fw-general] Why isn't this working?

2008-12-15 Thread Jan Pieper
Why do you think you have to use setBaseUrl()? There is no need to.

You have to use setBaseUrl() if your url looks like this:
http://tauren.dev/something/anything/news/show

By default Zend_Controller_Front will use "something" as your controller, 
"anything" as your action and "news=show" as request param. After setting the 
base url to "/something/anything/" your Front Controller will use "news" as 
your controller and "show" as your action.

So I think you do not need to set an base url.

-- Jan


-Original Message-
From: novastorm [mailto:jonyn...@gmail.com]
Sent: Mon 12/15/2008 6:19 PM
To: fw-general@lists.zend.com
Subject: [fw-general] Why isn't this working?
 

Hello,
I'm using the ZF to build an application. I have encountered
a problem that I just don't understand. I can't get hold of the 
host url with the setBaseUrl() method from Zend_Controller_Front.
Subsequently, all my links, that are made dynamically
with smarty, don't work, because they turn out like
http://index instead of http://project.dev/index.

But if I for instance do this:

$controller = Zend_Controller_Front::getInstance();
$controller->setBaseUrl('../');

.. all my url's look fine, but I get a 404 error when I click them.

My apache folder structure is like this (it's on windows btw):

/www (webroot for virtual host "localhost")
/www/Tauren/htdocs (webroot for virtual host "tauren.dev")

in /www/Tauren/ I have a httpd.conf file with the virtual host config:


ServerName tauren.dev
ServerAlias tauren.dev
DocumentRoot "D:\wamp\www\Tauren\htdocs"


AllowOverride All
Options All 


php_value include_path
".;d:\wamp\www\Tauren\include\Zend\library;D:\wamp\www\Tauren\include;D:\wamp\bin\php\php5.2.6\PEAR"
php_value magic_quotes_gpc off
php_value register_globals off

SetEnv APP_CONFIG_FILE "settings.ini"
SetEnv APP_CONFIG_SECTION "development"



and in /www/Tauren/htdocs I have a htaccess file with the rewrite rule:

RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1

Hopefully, some of this information might shed light on things. I'll supply
more information on demand. Any feedback and suggestions are welcome at this
point :-)
-- 
View this message in context: 
http://www.nabble.com/Why-isn%27t-this-working--tp21017887p21017887.html
Sent from the Zend Framework mailing list archive at Nabble.com.


RE: [fw-general] Re: Labs SVN access denied?

2008-12-12 Thread Jan Pieper
I corrected the url in wiki article.

-- Jan

> -Original Message-
> From: keith Pope [mailto:mute.p...@googlemail.com] 
> Sent: Friday, December 12, 2008 12:28 PM
> To: fw-general
> Subject: [fw-general] Re: Labs SVN access denied?
> 
> Sorry ignore me the wiki link is wrong, I have it working now via
> 
> http://framework.zend.com/svn/framework/laborator
> 
> 2008/12/12 keith Pope :
> > Hi,
> >
> > I am trying to checkout the laboratory using:
> >
> > http://framework.zend.com/svn/laboratory
> >
> > from 
> http://framework.zend.com/wiki/display/ZFDEV/Subversion+Standards
> >
> > It keeps asking for authentication?? Have I got the wrong 
> address from the wiki?
> >
> > Thx
> >
> > Keith
> >
> 
> 
> 
> -- 
> --
> [MuTe]
> --
> 
> 


RE: [fw-general] Labs SVN access denied?

2008-12-12 Thread Jan Pieper
The correct url is: http://framework.zend.com/svn/framework/laboratory/

> -Original Message-
> From: keith Pope [mailto:mute.p...@googlemail.com] 
> Sent: Friday, December 12, 2008 12:25 PM
> To: fw-general
> Subject: [fw-general] Labs SVN access denied?
> 
> Hi,
> 
> I am trying to checkout the laboratory using:
> 
> http://framework.zend.com/svn/laboratory
> 
> from http://framework.zend.com/wiki/display/ZFDEV/Subversion+Standards
> 
> It keeps asking for authentication?? Have I got the wrong 
> address from the wiki?
> 
> Thx
> 
> Keith
> 
> 


RE: [fw-general] Passing an object between actions.

2008-12-11 Thread Jan Pieper
http://framework.zend.com/manual/en/zend.registry.html

> -Original Message-
> From: sinkingfish [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, December 11, 2008 6:24 PM
> To: fw-general@lists.zend.com
> Subject: [fw-general] Passing an object between actions.
> 
> 
> Hi,
> 
> I am looking to pass an object (zend_form to be exact) 
> between 2 actions and
> am wondering is there a best practice or even a facility in 
> zend framework? 
> 
> I'm considering 3 ways :
> 1. make the object a class variable and access using $this
> 2. Serialize the the object and pass it as an a parameter in 
> the _forward()
> method.
> 3. make it a global variable.
> 
> Just wondering did anybody have any thoughts on this.
> 
> Brian
> -- 
> View this message in context: 
> http://www.nabble.com/Passing-an-object-between-actions.-tp209
> 60215p20960215.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
> 
> 


RE: [fw-general] Sharing a session between 2 hostnames

2008-12-10 Thread Jan Pieper
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Store session data in memcached.

http://kevin.vanzonneveld.net/techblog/article/enhance_php_session_management/ 

- -- Jan

> -Original Message-
> From: JMFontaine [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, December 10, 2008 2:11 PM
> To: fw-general@lists.zend.com
> Subject: Re: [fw-general] Sharing a session between 2 hostnames
> 
> 
> Hello Ben,
> 
> when I say "2 hostnames" I really mean it, not 2 different subdomains.
> 
> The domains are something like "french-site.com", 
> "english-site.com". I can
> not use your solution.
> 
> I have one or two solutions in my mind but they are more 
> hacks than clean
> solutions so I am wondering if someone has a better solution. :)
> -- 
> View this message in context: 
> http://www.nabble.com/Sharing-a-session-between-2-hostnames-tp
> 20932824p20935105.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
> 
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)

iD8DBQFJP8JLq2q0zEtUMTERAmnAAJ0Xc7AL+qda2GNSgXLjWdAWcNEUXQCgoCmi
KOe0a/FnjB1UxO6OOp3X6yk=
=NdqT
-END PGP SIGNATURE-


Re: [fw-general] ignore case sensitivity for urls

2008-12-10 Thread Jan Pieper
I got it working, but without extending standard dispatcher. I extended 
following classes:

- Zend_Controller_Request_Http::getModuleName(): lower result
- Zend_Controller_Front::addModuleDirectory(): lower $module
- Zend_Controller_Action_Helper_ViewRenderer::getFrontController(): use own 
front controller

...but I think your solutions is quite better. I´ll take a look to realize it 
with only the ViewRenderer and Dispatcher. Thanks for your thoughts :-)

-- Jan

 Original-Nachricht 
> Datum: Tue, 9 Dec 2008 10:49:15 -0500
> Von: Matthew Weier O\'Phinney <[EMAIL PROTECTED]>
> An: fw-general@lists.zend.com
> Betreff: Re: [fw-general] ignore case sensitivity for urls

> -- Jan Pieper <[EMAIL PROTECTED]> wrote
> (on Tuesday, 09 December 2008, 03:48 PM +0100):
> > today we thought about how to ignore case sensitivity for urls to
> > allow ~/Foo and ~/foo to load "Foo"-module. We tried to overwrite all
> > methods that returns uppercase module name to allow ignoring case
> > sensitivity but now we need to extend Zend_Controller_Front and it is
> > very complex because it is a singleton and without late static binding
> > I think we won´t get happy with overwriting it.
> > 
> > There is already a jira ticket but the reporter modified the zend
> framework code:
> > http://framework.zend.com/issues/browse/ZF-4119
> > 
> > So, is there a chance to disable case sensitive module names?
> 
> Not for the default use case.
> 
> However, a couple things to note about your approach.
> 
> First, you *can* extend Zend_Controller_Front; simply override the
> __construct() and getInstance() methods.  Then, simply make sure that
> the first call to getInstance() is done on your extending class -- all
> subsequent calls to Zend_Controller_Front::getInstance() will then get
> an instance of your extending class.
> 
> Second, you're looking at the wrong pieces of code anyways. You should
> be looking in the dispatcher and ViewRenderer, which is where resolution
> occurs (the former resolves the name to a class and path, the latter
> resolves it for view-related classes).
> 
> -- 
> Matthew Weier O'Phinney
> Software Architect   | [EMAIL PROTECTED]
> Zend Framework   | http://framework.zend.com/

-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger


Re: [fw-general] noob-question: increment integer in db

2008-12-09 Thread Jan Pieper
I don´t know Zend_Db_Table very well but try this:

[...]
++$row->pointer;
$row->save();

 Original-Nachricht 
> Datum: Tue, 9 Dec 2008 18:20:42 +0200
> Von: "Markus Hausammann" <[EMAIL PROTECTED]>
> An: fw-general@lists.zend.com
> Betreff: [fw-general] noob-question: increment integer in db

> Hi
> 
> I would like to increment an integer column in my db.
> 
> What I've tried is this:
> 
>  
> 
> $row = $this->findDependentRowset('ParamsUser')->current();
> 
> $row->pointer = 'pointer + 1';
> 
> $row->save();
> 
>  
> 
> Obviously it doesn't work, how could I do it?
> 
> Thanks!
> 
> Markus
> 
>  
> 
> PS I sent this question to fw-db but it didn't deliver.so forgive if it
> should deliver later and be duplicate.
> 

-- 
Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a


[fw-general] ignore case sensitivity for urls

2008-12-09 Thread Jan Pieper
Hi guys,

today we thought about how to ignore case sensitivity for urls to allow ~/Foo 
and ~/foo to load "Foo"-module. We tried to overwrite all methods that returns 
uppercase module name to allow ignoring case sensitivity but now we need to 
extend Zend_Controller_Front and it is very complex because it is a singleton 
and without late static binding I think we won´t get happy with overwriting it.

There is already a jira ticket but the reporter modified the zend framework 
code:
http://framework.zend.com/issues/browse/ZF-4119

So, is there a chance to disable case sensitive module names?

-- Jan
-- 
Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a


Re: [fw-general] Cannot consume SOAP Service

2008-11-26 Thread Jan Pieper
We got it working (for java) :-) We created a wsdl definition with java and 
compared it with wsdl definition created by Zend_Soap_AutoDiscover and modified 
all differences in Zend_Soap components until we got it working. Java seems to 
have a problem with following element:



We changed it to following because it was the main difference between the 
definitions:



And now... it works fine :-) I also tested the modified "name"-value with 
Zend_Soap_Client and it works fine too. Now we have to wait for a test with 
Microsoft Dynamics AX.

-- Jan

 Original-Nachricht 
> Datum: Tue, 25 Nov 2008 23:48:31 +0100
> Von: Benjamin Eberlei <[EMAIL PROTECTED]>
> An: fw-general@lists.zend.com
> Betreff: Re: [fw-general] Cannot consume SOAP Service

> this is very valueable input. thank you very much.
> 
> I have to look into that. Unfortunatly the AutoDiscover and WSDL internals
> are 
> in very bad shape to extend without easily breaking backwards compability,
> so 
> i cannot assure you that I can include it in the next mini or minor
> release.
> 
> Do i understand you correctly, that it worked for you with Java, when you 
> switched from encoded to literal?
> 
> greeetings
> Benjamin
> 
> On Tuesday 25 November 2008 21:23:30 Jan Pieper wrote:
> > Hi guys,
> >
> > I created a small soap service with Zend_Soap_Server and
> > Zend_Soap_AutoDiscover but I cannot consume its data via a java soap
> > client. I tried it all the day but it won´t work.
> >
> > - SNIP -
> >
> > class MyFooService
> > {
> > /**
> >  * @return string
> >  */
> > public function getStaticString() {
> > return 'Hello World';
> > }
> > }
> >
> > - SNAP -
> >
> > It is accessable (for me!) via http://jason/Laboratory/JMS/service.php
> > which is the service and http://jason/Laboratory/JMS/service.php?wsdl
> which
> > will show wsdl definition. The created wsdl definition looks like this:
> >
> > - SNIP -
> >
> > 
> > http://schemas.xmlsoap.org/wsdl/";
> > xmlns:tns="http://jason/Laboratory/JMS/service.php";
> > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> > xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/";
> > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
> > name="MyFooService"
> > targetNamespace="http://jason/Laboratory/JMS/service.php";>  > name="MyFooServicePort">
> > 
> > 
> > 
> > 
> > 
> > 
> >  > transport="http://schemas.xmlsoap.org/soap/http"; />
> > 
> >  >
> > soapAction="http://jason/Laboratory/JMS/service.php#getStaticString"; />
> > 
> >  > namespace="http://jason/Laboratory/JMS/service.php";
> />
> > 
> > 
> >  > namespace="http://jason/Laboratory/JMS/service.php";
> />
> > 
> > 
> > 
> > 
> > 
> >  > location="http://jason/Laboratory/JMS/service.php"; /> 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > - SNAP -
> >
> > As you can see I do not use Zend_Soap_AutoDiscover in its original
> version
> > (see attached MyAutoDiscover.diff, could not extend and use my own class
> > because I need access to private class properties). I needed to change
> >  to  use="literal"
> > namespace="..." /> because wsimport (small tool included in jdk) cannot
> > handle "encoded". So I used following command to create java classes
> from
> > wsdl definiton:
> >
> > # wsimport -keep http://jason/Laboratory/JMS/service.php?wsdl
> >
> > So I got this two java classes:
> >
> > # jason.laboratory.jms.service.MyFooServicePort.java
> > # jason.laboratory.jms.service.MyFooServiceService.java
> >
> > After that I created a soap client using these classes (jdk1.6.0_10):
> >
> > - SNIP -
> >
> > package jason.laboratory.jms.myfooclient;
> >
> > import jason.laboratory.jms.service.*;
> >
> > public class MyFooClient
> > {
> > /**
> >  * @param args
> >  */
> > public static 

Re: [fw-general] Cannot consume SOAP Service

2008-11-25 Thread Jan Pieper
No, it do not work after changing it from "encoded" to "literal". I only could
create java classes with wsimport [1] after changing it. A teammate also told me
to change it to "literal" for Microsoft Dynamics AX because he is already
consuming soap services and they all use "literal".

The problem I have is, that I wrote an application and now I need a soap service
to provide functionality to non-php-applications. We begun to test the soap
service with Microsoft Dynamics AX but it won´t work. After I could not figure
out why (useless error messages, no possibility to check what the service is
doing) we tried to consume the service with an java soap client. There I got
usefull error messages so I could change Zend_Soap_AutoDiscover like mentioned
in my first email.

Now I could create java classes with wsimport to consume the soap service but I
always get NULL as return value. No error message, no empty result... only NULL.

Found another application that can consume the soap service. WSDL explorer of
WTP project (http://www.eclipse.org/webtools/). Don´t know what it is written
in, but I think it is writtn in java like all eclipse plugins :-)

[1] https://jax-ws.dev.java.net/jax-ws-ea3/docs/wsimport.html

-- Jan

> this is very valueable input. thank you very much.
> 
> I have to look into that. Unfortunatly the AutoDiscover and WSDL internals 
> are 
> in very bad shape to extend without easily breaking backwards compability, so 
> i cannot assure you that I can include it in the next mini or minor release.
> 
> Do i understand you correctly, that it worked for you with Java, when you 
> switched from encoded to literal?
> 
> greeetings
> Benjamin
> 
> On Tuesday 25 November 2008 21:23:30 Jan Pieper wrote:
>> Hi guys,
>>
>> I created a small soap service with Zend_Soap_Server and
>> Zend_Soap_AutoDiscover but I cannot consume its data via a java soap
>> client. I tried it all the day but it won´t work.
>>
>> - SNIP -
>>
>> class MyFooService
>> {
>> /**
>>  * @return string
>>  */
>> public function getStaticString() {
>> return 'Hello World';
>> }
>> }
>>
>> - SNAP -
>>
>> It is accessable (for me!) via http://jason/Laboratory/JMS/service.php
>> which is the service and http://jason/Laboratory/JMS/service.php?wsdl which
>> will show wsdl definition. The created wsdl definition looks like this:
>>
>> - SNIP -
>>
>> 
>> http://schemas.xmlsoap.org/wsdl/";
>> xmlns:tns="http://jason/Laboratory/JMS/service.php";
>> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
>> xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/";
>> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
>> name="MyFooService"
>> targetNamespace="http://jason/Laboratory/JMS/service.php";> > name="MyFooServicePort">
>> 
>> 
>> 
>> 
>> 
>> 
>> > transport="http://schemas.xmlsoap.org/soap/http"; />
>> 
>> >
>> soapAction="http://jason/Laboratory/JMS/service.php#getStaticString"; />
>> 
>> > namespace="http://jason/Laboratory/JMS/service.php"; />
>> 
>> 
>> > namespace="http://jason/Laboratory/JMS/service.php"; />
>> 
>> 
>> 
>> 
>> 
>> > location="http://jason/Laboratory/JMS/service.php"; /> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> - SNAP -
>>
>> As you can see I do not use Zend_Soap_AutoDiscover in its original version
>> (see attached MyAutoDiscover.diff, could not extend and use my own class
>> because I need access to private class properties). I needed to change
>>  to > namespace="..." /> because wsimport (small tool included in jdk) cannot
>> handle "encoded". So I used following command to create java classes from
>> wsdl definiton:
>>
>> # wsimport -keep http://jason/Laboratory/JMS/service.php?wsdl
>>
>> So I got this two java classes:
>>
>> # jason.laboratory.jms.service.MyFooServicePort.java
>> # jason.laboratory.jms.service.MyFooServiceService.java
>>
>> After that I created a soap client using these classes (j

[fw-general] Cannot consume SOAP Service

2008-11-25 Thread Jan Pieper
Hi guys,

I created a small soap service with Zend_Soap_Server and Zend_Soap_AutoDiscover
but I cannot consume its data via a java soap client. I tried it all the day but
it won´t work.

- SNIP -

class MyFooService
{
/**
 * @return string
 */
public function getStaticString() {
return 'Hello World';
}
}

- SNAP -

It is accessable (for me!) via http://jason/Laboratory/JMS/service.php which is
the service and http://jason/Laboratory/JMS/service.php?wsdl which will show
wsdl definition. The created wsdl definition looks like this:

- SNIP -


http://schemas.xmlsoap.org/wsdl/";
xmlns:tns="http://jason/Laboratory/JMS/service.php";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
name="MyFooService" 
targetNamespace="http://jason/Laboratory/JMS/service.php";>







http://schemas.xmlsoap.org/soap/http"; />

http://jason/Laboratory/JMS/service.php#getStaticString"; />

http://jason/Laboratory/JMS/service.php"; />


http://jason/Laboratory/JMS/service.php"; />





http://jason/Laboratory/JMS/service.php"; />








- SNAP -

As you can see I do not use Zend_Soap_AutoDiscover in its original version (see
attached MyAutoDiscover.diff, could not extend and use my own class because I
need access to private class properties). I needed to change  to  because wsimport (small tool included in jdk) cannot handle "encoded". So I
used following command to create java classes from wsdl definiton:

# wsimport -keep http://jason/Laboratory/JMS/service.php?wsdl

So I got this two java classes:

# jason.laboratory.jms.service.MyFooServicePort.java
# jason.laboratory.jms.service.MyFooServiceService.java

After that I created a soap client using these classes (jdk1.6.0_10):

- SNIP -

package jason.laboratory.jms.myfooclient;

import jason.laboratory.jms.service.*;

public class MyFooClient
{
/**
 * @param args
 */
public static void main(String[] args)
{
MyFooServiceService mfss = new MyFooServiceService();
MyFooServicePortmfsp = mfss.getMyFooServicePort();
String result= mfsp.getStaticString();

if (result != null) {
System.out.println("Result: " + result);
} else {
System.out.println("Result is NULL");
}
}
}

- SNAP -

I expected "Result: Hello World" but I always get "Result is NULL".
Zend_Soap_Client has no problems consuming the service.

It looks like an java problem, but we also tested the same soap server using a
Microsoft Dynamics AX soap client and got the same result. Okay we do not get
"NULL" as return value from service, the Microsoft soap client shows "1" as 
result.

So I am searching for a solution how to get it working. I am absolutly clueless
why I do not get the correct result. Is there someone who can verify or solve my
problem? :-)

If there are any questions or if there are more information needed, please ask!
If needed I can upload my sources.

-- Jan
Index: AutoDiscover.php
===
--- AutoDiscover.php(revision 12830)
+++ AutoDiscover.php(working copy)
@@ -244,7 +244,7 @@
 }
 
 /* 's */
-$operation = $wsdl->addBindingOperation($binding, 
$method->getName(),  array('use' => 'encoded', 'encodingStyle' => 
"http://schemas.xmlsoap.org/soap/encoding/";), array('use' => 'encoded', 
'encodingStyle' => "http://schemas.xmlsoap.org/soap/encoding/";));
+$operation = $wsdl->addBindingOperation($binding, 
$method->getName(),  array('use' => 'literal', 'namespace' => $this->_uri), 
array('use' => 'literal', 'namespace' => $this->_uri));
 $wsdl->addSoapOperation($operation, $uri->getUri() . '#' 
.$method->getName());
 /* 's */
 }


Re: [fw-general] Zend_Soap_Wsdl: nested objects possible?

2008-11-24 Thread Jan Pieper
My first parameter for Zend_Soap_AutoDiscover is an instance of 
Zend_Soap_Wsdl_Strategy_ArrayOfTypeComplex. But it seems that it will only be 
used for top-level classes. Not for its properties.

 Original-Nachricht 
> Datum: Mon, 24 Nov 2008 13:32:21 +0100
> Von: Benjamin Eberlei <[EMAIL PROTECTED]>
> An: Jan Pieper <[EMAIL PROTECTED]>
> Betreff: Re: [fw-general] Zend_Soap_Wsdl: nested objects possible?

> 
> it is possible:
> 
> http://framework.zend.com/manual/en/zend.soap.wsdl.html#zend.soap.wsdl.types.add_complex
> 
> you have to use Zend_Soap_Wsdl_Strategy_ArrayOfTypeSequence strategy for
> detection.
> 
> On Mon, 24 Nov 2008 13:13:27 +0100, "Jan Pieper" <[EMAIL PROTECTED]> wrote:
> > Is it possible to create nested objects with Zend_Soap_Wsdl to use for
> WSDL
> > generation? I tried someting like this:
> > 
> > --- SNIP ---
> > 
> > class MyFooResult
> > {
> > /**
> >  * @var MyFooSubResult[]
> >  */
> > public $sub;
> > 
> > /* ... */
> > }
> > 
> > --- SNAP ---
> > 
> > ...but I am getting an Zend_Soap_Wsdl_Exception with following message:
> > 
> >> Cannot add a complex type MyFooSubResult[] that is not an object or
> > where class could not be found in 'DefaultComplexType' strategy.
> > 
> > This exception will be caused because
> > Zend_Soap_Wsdl_Strategy_DefaultComplexType is used for class properties
> and
> > it searchs for a class named "MyFooSubResult[]".
> > 
> > Am I doing something wrong or is it impossible (at the moment?) to use
> > nested objects for WSDL generation?
> > 
> > -- Jan
> > --
> > Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit
> allen:
> > http://www.gmx.net/de/go/multimessenger

-- 
Sensationsangebot nur bis 30.11: GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a


[fw-general] Zend_Soap_Wsdl: nested objects possible?

2008-11-24 Thread Jan Pieper
Is it possible to create nested objects with Zend_Soap_Wsdl to use for WSDL 
generation? I tried someting like this:

--- SNIP ---

class MyFooResult
{
/**
 * @var MyFooSubResult[]
 */
public $sub;

/* ... */
}

--- SNAP ---

...but I am getting an Zend_Soap_Wsdl_Exception with following message:

> Cannot add a complex type MyFooSubResult[] that is not an object or where 
> class could not be found in 'DefaultComplexType' strategy.

This exception will be caused because 
Zend_Soap_Wsdl_Strategy_DefaultComplexType is used for class properties and it 
searchs for a class named "MyFooSubResult[]".

Am I doing something wrong or is it impossible (at the moment?) to use nested 
objects for WSDL generation?

-- Jan
-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger


Re: [fw-general] Microsoft Dynamics AX vs. soap-enc:Array

2008-11-21 Thread Jan Pieper
I have to define my own datatype? But how to get a list without an array in php?

-- Jan

> Jan Pieper wrote:
>> Hi guys,
>>
>> I set up an soap service with Zend_Soap_Server and WSDL generation via
>> Zend_Soap_AutoDiscover and it should be used via Microsoft Dynamics AX. But 
>> it
>> seems that it cannot handle "soap-enc:Array" datatype.
>>
>> Detail: Beim Ausführen einer WSDL-Importerweiterung wurde eine Ausnahme
>> ausgelöst: 
>> System.ServiceModel.Description.XmlSerializerMessageContractImporter
>> Fehler: Der Datentyp 'http://schemas.xmlsoap.org/soap/encoding/:Array' ist 
>> nicht
>> vorhanden.
>>
>> Sorry for the german error message but it says something like "exception
>> [exceptionName] occured" and "datatype [url] is not available".
>>
>> Any clue how to get it working?
>>
>> -- Jan
>>   
> Here are the Web Services Interoparability Organization
> <http://www.ws-i.org/> recommendations for declaration of array types
> (/soapenc:Array/):
> 
> "The recommendations in WSDL 1.1 Section 2.2 for declaration of array
> types have been interpreted in various ways, leading to interoperability
> problems. Further, there are other clearer ways to declare arrays."
> 
> http://www.ws-i.org/Profiles/BasicProfile-2_0(WGD).html#soapenc_Array
> 
> Regards,
> Radu Gasler


[fw-general] Microsoft Dynamics AX vs. soap-enc:Array

2008-11-21 Thread Jan Pieper
Hi guys,

I set up an soap service with Zend_Soap_Server and WSDL generation via
Zend_Soap_AutoDiscover and it should be used via Microsoft Dynamics AX. But it
seems that it cannot handle "soap-enc:Array" datatype.

Detail: Beim Ausführen einer WSDL-Importerweiterung wurde eine Ausnahme
ausgelöst: System.ServiceModel.Description.XmlSerializerMessageContractImporter
Fehler: Der Datentyp 'http://schemas.xmlsoap.org/soap/encoding/:Array' ist nicht
vorhanden.

Sorry for the german error message but it says something like "exception
[exceptionName] occured" and "datatype [url] is not available".

Any clue how to get it working?

-- Jan


Re: [fw-general] Multiple auth adapters in Chain

2008-11-11 Thread Jan Pieper
Hm, it should be nice to set authentication credentials via Chain but 
there is no interface specification how to set them. So it is needed to 
set credentials explicit to each adapter.


A second "problem" is that a random adapter selection would be defined 
on chain, ip range selection must be defined for each adapter.


-- Jan



Hi guys,

for our application we need two different auth adapters (Ldap, DbTable). 
 One is used for a specified ip range, the other is used as default if 
connection comes from an ip address outside the range specified for the 
first adapter.


So I am thinking about to write an auth adapter chain with assertion to 
identify which adapter should be used. For example assertion could be an 
ip range (e.g. 192.168.1.0/24) or random for application based auth 
adapter load balancing.


It will extend Zend_Auth_Adapter_Interface.

Is there interest in such a auth adapter chain?

-- Jan





Re: [fw-general] Re: Multiple auth adapters in Chain

2008-11-11 Thread Jan Pieper

Yeah it would be quite useful.

It would be interesting to see how the system could help with the 
following scenario.


The "application" has a users table with an id column. Every user, 
regardless of auth method, needs to have a user_id.


Say I authenticate myself via OpenID, I still need a user_id in the 
application.


Perhaps the Zend_Auth_Chain object could have a structure for ensuring a 
local user row (and thus a user_id) is created when a user authenticates?



I'd suggest a table structure something like:

Users: id | whatever else

User_Auth: id | mech | detail


Users.id is auto-incrementing, and for every user that exists, there is 
one or more User_Auth rows (remember that it should be possible for the 
same user to authenticate via more than one system).


The "mech" could default to the class name of the actual authadapter 
used, and the "detail" would be e.g. a URI in the case of open id or 
ldap etc.


If the chain loader can automate the population of these tables then 
that would make it work very nicely IMO.


Col


I hope I understood your mail but I don't think this should be function 
of this chain adapter implementation. Your case is very specific.


-- Jan


Re: [fw-general] Multiple auth adapters in Chain

2008-11-11 Thread Jan Pieper

Like Zend_Auth_Chain?  That would be useful.  Users add adapters, then call
authenticate().


Why you want to call it Zend_Auth_Chain and not Zend_Auth_Adapter_Chain? 
It is nothing else than DbTable, Ldap etc. The only difference is that 
Chain contains a chain of multiple auth adapters.


-- Jan


[fw-general] Multiple auth adapters in Chain

2008-11-11 Thread Jan Pieper

Hi guys,

for our application we need two different auth adapters (Ldap, DbTable). 
 One is used for a specified ip range, the other is used as default if 
connection comes from an ip address outside the range specified for the 
first adapter.


So I am thinking about to write an auth adapter chain with assertion to 
identify which adapter should be used. For example assertion could be an 
ip range (e.g. 192.168.1.0/24) or random for application based auth 
adapter load balancing.


It will extend Zend_Auth_Adapter_Interface.

Is there interest in such a auth adapter chain?

-- Jan


RE: [fw-general] Why will Zend_Config be autoloaded?

2008-11-06 Thread Jan Pieper
I don´t think so. That´s my bootstrap. And without autoloading I won´t get an 
error. So it must be loaded.

> -Original Message-
> From: Matthew Weier O'Phinney [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, November 06, 2008 3:32 PM
> To: fw-general@lists.zend.com
> Subject: Re: [fw-general] Why will Zend_Config be autoloaded?
> 
> -- Jan Pieper <[EMAIL PROTECTED]> wrote
> (on Thursday, 06 November 2008, 03:20 PM +0100):
> > There is no problem, but I am confused why it will be autoloaded
> > altought it is already loaded. I thought autoload will *only* load
> > classes that are not loaded until they are required.
> 
> It's possible that another class or some other code in your app is
> referring to Zend_Config prior to you loading Zend_Config_Xml.
> 
> > 
> > > -Original Message-
> > > From: Matthew Weier O'Phinney [mailto:[EMAIL PROTECTED] 
> > > Sent: Thursday, November 06, 2008 3:15 PM
> > > To: fw-general@lists.zend.com
> > > Subject: Re: [fw-general] Why will Zend_Config be autoloaded?
> > > 
> > > -- Jan Pieper <[EMAIL PROTECTED]> wrote
> > > (on Thursday, 06 November 2008, 11:52 AM +0100):
> > > > registered autoloader (Zend_Loader::registerAutoload) in my
> > > > application to not even add require_once statement for temporary
> > > > needed classes for debugging etc. and I added HTML output to
> > > > autoload() method to know if classes will be autoloaded. 
> > > Now it seems
> > > > that Zend_Config will be autoloaded but I don´t know why.
> > > > 
> > > >  - SNIP -
> > > > 
> > > >  > > > 
> > > > require_once 'Zend/Loader.php';
> > > > Zend_Loader::registerAutoload();
> > > > 
> > > > require_once 'Zend/Config/Xml.php';
> > > > $config = new Zend_Config_Xml(realpath('../config/config.xml'));
> > > > 
> > > > [...]
> > > > 
> > > >  - SNAP -
> > > > 
> > > > I added debug_print_backtrace() to 
> Zend_Loader::autload() method to
> > > > find out why it will be autoloaded:
> > > > 
> > > > #0  Zend_Loader::autoload(Zend_Config)
> > > > #1  spl_autoload_call(Zend_Config) called at 
> > > [C:\Server\workspace\flabben\htdocs\index.php:6]
> > > > #2  require_once() called at 
> > > [C:\Server\workspace\flabben\htdocs\index.php:6]
> > > > 
> > > > So I thought Zend_Config_Xml does not include 
> > > "Zend/Config.php" but it
> > > > do. If I unregister autoloader, my application works fine 
> > > without any
> > > > problems, so Zend_Config must be available.
> > > > 
> > > > Someone can tell me why Zend_Config will be autoloaded?
> > > 
> > > Is there a problem with it being autoloaded? I'm a bit 
> confused as to
> > > what the issue is here...
> > > 
> > > -- 
> > > Matthew Weier O'Phinney
> > > Software Architect   | [EMAIL PROTECTED]
> > > Zend Framework   | http://framework.zend.com/
> > > 
> > > 
> > 
> 
> -- 
> Matthew Weier O'Phinney
> Software Architect   | [EMAIL PROTECTED]
> Zend Framework   | http://framework.zend.com/
> 
> 


RE: [fw-general] Why will Zend_Config be autoloaded?

2008-11-06 Thread Jan Pieper
There is no problem, but I am confused why it will be autoloaded altought it is 
already loaded. I thought autoload will *only* load classes that are not loaded 
until they are required.

> -Original Message-
> From: Matthew Weier O'Phinney [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, November 06, 2008 3:15 PM
> To: fw-general@lists.zend.com
> Subject: Re: [fw-general] Why will Zend_Config be autoloaded?
> 
> -- Jan Pieper <[EMAIL PROTECTED]> wrote
> (on Thursday, 06 November 2008, 11:52 AM +0100):
> > registered autoloader (Zend_Loader::registerAutoload) in my
> > application to not even add require_once statement for temporary
> > needed classes for debugging etc. and I added HTML output to
> > autoload() method to know if classes will be autoloaded. 
> Now it seems
> > that Zend_Config will be autoloaded but I don´t know why.
> > 
> >  - SNIP -
> > 
> >  > 
> > require_once 'Zend/Loader.php';
> > Zend_Loader::registerAutoload();
> > 
> > require_once 'Zend/Config/Xml.php';
> > $config = new Zend_Config_Xml(realpath('../config/config.xml'));
> > 
> > [...]
> > 
> >  - SNAP -
> > 
> > I added debug_print_backtrace() to Zend_Loader::autload() method to
> > find out why it will be autoloaded:
> > 
> > #0  Zend_Loader::autoload(Zend_Config)
> > #1  spl_autoload_call(Zend_Config) called at 
> [C:\Server\workspace\flabben\htdocs\index.php:6]
> > #2  require_once() called at 
> [C:\Server\workspace\flabben\htdocs\index.php:6]
> > 
> > So I thought Zend_Config_Xml does not include 
> "Zend/Config.php" but it
> > do. If I unregister autoloader, my application works fine 
> without any
> > problems, so Zend_Config must be available.
> > 
> > Someone can tell me why Zend_Config will be autoloaded?
> 
> Is there a problem with it being autoloaded? I'm a bit confused as to
> what the issue is here...
> 
> -- 
> Matthew Weier O'Phinney
> Software Architect   | [EMAIL PROTECTED]
> Zend Framework   | http://framework.zend.com/
> 
> 


[fw-general] Why will Zend_Config be autoloaded?

2008-11-06 Thread Jan Pieper
Hi guys,

registered autoloader (Zend_Loader::registerAutoload) in my application to not 
even add require_once statement for temporary needed classes for debugging etc. 
and I added HTML output to autoload() method to know if classes will be 
autoloaded. Now it seems that Zend_Config will be autoloaded but I don´t know 
why.

 - SNIP -



AW: [fw-general] APC and ZF tutorial

2008-11-04 Thread Jan Pieper
I think you mean "extension=php_apc.dll" and not "extension=php_apc.so" on 
Windows systems :-)
 




Von: Tobias Gies [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 4. November 2008 12:18
An: Robert Castley
Cc: fw-general@lists.zend.com
Betreff: Re: [fw-general] APC and ZF tutorial


Hi Robert,

it's really simple: APC is a PHP extension that will work out of the 
box when installed.

On Unixoid systems, simply run pecl install apc and add 
"extension=apc.so" to your php.ini.
On Windows systems, download php_apc.dll from pecl4win, drop it in your 
PHP extension directory and add "extension=php_apc.so" to your php.ini.

Best regards,
Tobias


2008/11/4 Robert Castley <[EMAIL PROTECTED]>


Hi
 
I see APC mentioned a lot on this list and I was wondering if 
anyone has a tutorial for configuring APC for use with ZF?
 
I have a default PHP and Apache install on Windows 
XP/Ubuntu/Mac and would like to what I have to do to my ZF app to get it using 
APC.
 
Cheers,
 
- Robert



This email has been scanned for all known viruses by the 
MessageLabs Email Security Service and the Macro 4 plc internal virus 
protection system.







Re: [fw-general] Tags for the memcached and APC backends for Zend_Cache - new approach

2008-11-04 Thread Jan Pieper

Oh sorry, my fault. I used Memcached as slow backend :-)


Fabien MARTY wrote:
> 
> Hi,
> 
> Jan Pieper a écrit :
>> Can you please show us an example how to realize tagged-memcache-caching
>> with
>> this new two-level backend?
>>   
> 
> something like that (not tested) :
> 
>  
> $slowBackend = 'File';
> $fastBackend = 'Memcached';
> $slowBackendOptions = array(
> 'cache_dir' => '/tmp/'
> );
> $fastBackendOptions = array|(
> 'servers' => ||array(array('host' => 'localhost','port' => 11211, 
> 'persistent' => true))|
> );
> 
> $backendOptions = array(
> 'fast_backend' => $fastBackend,
> 'slow_backend' => $slowBackend,
> 'fast_backend_options' => $fastBackendOptions,
> 'slow_backend_options' => $slowBackendOptions
> );
> 
> $frontendOptions = array(|
> 'lifetime' => 7200|
> );
> 
> $instance = Zend_Cache::factory('Core','Two Levels', $frontendOptions, 
> $backendOptions);
> 
> // [...] use $instance normaly
> 
> ?>
> 
> - tags will be supported throw the "slow" backend
> - there is a (simple) algorithm to store cache records into the fast 
> backend or into the slow backend depending on the remaining space on the 
> fast one and the cache priority (new option you can set when you save 
> the cache)
> 
> I'm very interested in feedbacks for this new special backend.
> 
> Regards
> 
> Fabien
> 
>>
>> Fabien MARTY wrote:
>>   
>>> Hi,
>>>
>>> Please have a look at the "TwoLevels" backend in 1.7 trunk (or in 1.7
>>> PR), it's want you want.
>>>
>>> It does exactly this.
>>>
>>> Feedback welcome
>>>
>>> Regards,
>>>
>>> Fabien
>>>
>>>
>>>
>>>
>>> On Wed, Oct 22, 2008 at 5:34 PM, Diabl0 <[EMAIL PROTECTED]> wrote:
>>> 
>>>> Colin Guthrie pisze:
>>>>   
>>>>> Diabl0 wrote:
>>>>> 
>>>>>> Hi
>>>>>>
>>>>>> As i seen this topic was discussed later, but i have new idea that
>>>>>> IMHO
>>>>>> can throw new light.
>>>>>>
>>>>>> What about combining memory cache backends with file cache fallback
>>>>>> for
>>>>>> tags? Ofcorse optional if someone wants this.
>>>>>>
>>>>>> This should give us benefits from fast memory cache and tagging
>>>>>> system
>>>>>> with only small drawback on performance needed to update (or
>>>>>> retreive)
>>>>>> tags
>>>>>> cache from filesystem.
>>>>>>
>>>>>> And what you think about this idea?
>>>>>>   
>>>>> It's interesting but why use the filesystem? Why not use the cache
>>>>> itself
>>>>> but use a different key structure to track this (e.g. cache an array
>>>>> of
>>>>> keys
>>>>> that match the tag "wibble" under the key name
>>>>> "Zend_Cache-keymap-wibble"?
>>>>> This approach could be implemented in a base class and those backends
>>>>> not
>>>>> supporting tags could simple extend it. I've not looked at the
>>>>> intricacies
>>>>> of this from a data integrity point of view so there could be several
>>>>> reasons why this wouldn't work :)
>>>>> 
>>>> Filesystem was my first idea, but db and any other "solid" backend is
>>>> good.
>>>> Memcached and other memory based backends aren't good because it's
>>>> content
>>>> can be deleted in any time.
>>>>
>>>>   
>>>>> Also as a related issue, would it be possible to implement a cache
>>>>> invalidation queue system backed by a database? The reason I say this
>>>>> is
>>>>> when considering multi-server environments (let's assume there is one
>>>>> database for all servers).
>>>>> 
>>>>   See my post with Mao_Cache. I didn't tested it with DB yet, but i was
>>>> also
>>>> thinking about clustered enviroments.
>>>>
>>>> --
>>>> K.
>>>>
>>>>
>>>>   
>>>
>>> -- 
>>> Fabien MARTY
>>> [EMAIL PROTECTED]
>>>
>>>
>>> 
>>
>>   
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tags-for-the-memcached-and-APC-backends-for-Zend_Cache---new-approach-tp20109068p20319029.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Linux Gaming Antispam

2008-11-03 Thread Jan Pieper
Someone can tell me why I am always getting email from "Linux Game Publishing
Antispam" service after sending mail to zf mailinglist?

-- Jan


Re: Re: [fw-general] Tags for the memcached and APC backends for Zend_Cache - new approach

2008-11-03 Thread Jan Pieper

Can you please show us an example how to realize tagged-memcache-caching with
this new two-level backend?


Fabien MARTY wrote:
> 
> Hi,
> 
> Please have a look at the "TwoLevels" backend in 1.7 trunk (or in 1.7
> PR), it's want you want.
> 
> It does exactly this.
> 
> Feedback welcome
> 
> Regards,
> 
> Fabien
> 
> 
> 
> 
> On Wed, Oct 22, 2008 at 5:34 PM, Diabl0 <[EMAIL PROTECTED]> wrote:
>> Colin Guthrie pisze:
>>>
>>> Diabl0 wrote:

 Hi

 As i seen this topic was discussed later, but i have new idea that IMHO
 can throw new light.

 What about combining memory cache backends with file cache fallback for
 tags? Ofcorse optional if someone wants this.

 This should give us benefits from fast memory cache and tagging system
 with only small drawback on performance needed to update (or retreive)
 tags
 cache from filesystem.

 And what you think about this idea?
>>>
>>> It's interesting but why use the filesystem? Why not use the cache
>>> itself
>>> but use a different key structure to track this (e.g. cache an array of
>>> keys
>>> that match the tag "wibble" under the key name
>>> "Zend_Cache-keymap-wibble"?
>>> This approach could be implemented in a base class and those backends
>>> not
>>> supporting tags could simple extend it. I've not looked at the
>>> intricacies
>>> of this from a data integrity point of view so there could be several
>>> reasons why this wouldn't work :)
>>
>> Filesystem was my first idea, but db and any other "solid" backend is
>> good.
>> Memcached and other memory based backends aren't good because it's
>> content
>> can be deleted in any time.
>>
>>> Also as a related issue, would it be possible to implement a cache
>>> invalidation queue system backed by a database? The reason I say this is
>>> when considering multi-server environments (let's assume there is one
>>> database for all servers).
>>
>>   See my post with Mao_Cache. I didn't tested it with DB yet, but i was
>> also
>> thinking about clustered enviroments.
>>
>> --
>> K.
>>
>>
> 
> 
> 
> -- 
> Fabien MARTY
> [EMAIL PROTECTED]
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tags-for-the-memcached-and-APC-backends-for-Zend_Cache---new-approach-tp20109068p20305351.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Problem getting include_path to work.

2008-11-02 Thread Jan Pieper
Do you get download dialog only for one specific php file you are trying 
to browse or for all you try? If you can't browse any php file, it seems 
that your webserver is misconfigured. If you can't browse only one 
specific file, it could be that you are sending wrong HTTP headers.



Now when I browse to that file the browser asks me to download a php file.
What could be causing that?



DASPRiD wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

a) Don't use init_set
b) Never set relative include paths

$includePaths  = dirname(__FILE__) . '/library' . PATH_SEPARATOR
   . get_include_path();

set_include_path($includePaths);

...
:  ___   _   ___ ___ ___ _ ___:
: |   \ /_\ / __| _ \ _ (_)   \   :
: | |) / _ \\__ \  _/   / | |) |  :
: |___/_/:\_\___/_| |_|_\_|___/   :
:::
: Web: http://www.dasprids.de :
: E-mail : [EMAIL PROTECTED]   :
: Jabber : [EMAIL PROTECTED] :
: ICQ: 105677955  :
:::


gfxcomplex schrieb:

I have downloaded the zip for 1.7 and have renamed the folder to
ZendFramework

I have the include_path set to
ini_set("include_path", ".:ZendFramework/library");

and a point to 
require_once 'Zend/Amf/Server.php';


and I get:

Warning: require_once(Zend/Amf/Server.php) [function.require-once]:
failed
to open stream: No such file or directory in
/var/www/vhosts/gfxcomplex.com/httpdocs/swf/amf.php on line 6

Fatal error: require_once() [function.require]: Failed opening required
'Zend/Amf/Server.php' (include_path='.:/ZendFramework/library') in
/var/www/vhosts/gfxcomplex.com/httpdocs/swf/amf.php on line 6

permissions are set to 777 and the bootstrap file the makes the error is
in
the same root folder as ZendFramework. So paths are correct as far as I
can
tell.

I host with media temple and have a DV server. I called them and they
said
all looks good and had no idea why there is a problem, thus asking me to
come to here and ask my question.

thanks
- Josh Chernoff.


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkNCSQACgkQ0HfT5Ws789C4qgCgqgyDZ+P/lvcs0dUiYmzaveAJ
/90An18yR8N+54btl9h5jUPQ/Qv2+Ow3
=jxkR
-END PGP SIGNATURE-








Re: [fw-general] Zend_Config_Writer promoted to standard/trunk

2008-10-31 Thread Jan Pieper
Hey cool, i´ll take a look on it.

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Hey,
> 
> today Zend_Config_Writer was promoted to the standard/trunk, and will be
> shipped with the ZF 1.7 release. It would be nice if some of you could
> use it in a practical test, so that in case I can fix bugs before the
> final release lefts the building.
> 
> Regards,
> Ben
> - --
> ...
> :  ___   _   ___ ___ ___ _ ___:
> : |   \ /_\ / __| _ \ _ (_)   \   :
> : | |) / _ \\__ \  _/   / | |) |  :
> : |___/_/:\_\___/_| |_|_\_|___/   :
> :::
> : Web: http://www.dasprids.de :
> : E-mail : [EMAIL PROTECTED]   :
> : Jabber : [EMAIL PROTECTED] :
> : ICQ: 105677955  :
> :::
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iEYEARECAAYFAkkKHOgACgkQ0HfT5Ws789CImQCfXXOMiDnh4aFjb5BWv7Y6W5y/
> DsAAn1abr1k/tHbhB4sgxxgJj9b8Rzu/
> =jkxt
> -END PGP SIGNATURE-
> 



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

2008-10-30 Thread Jan Pieper

I think he wants to know who (a person) created the image.



Bart McLeod wrote:
> 
> Hi Will,
> 
> What do you mean by 'the original source'
> a. The file location on your server
> b. The artist or computer who created the image
> c. Something totally different
> 
> Regards,
> 
> Bart McLeod
> 
> Wil Sinclair schreef:
>> I will send a Zend Framework t-shirt to the first person who can
>> correctly identify the original source of the foot image on this page:
>> http://framework.zend.com/wiki/display/ZFDEV/Home. Send all submissions
>> directly to me so we don't abuse the lists any more than I already have.
>> BTW, now is a great time to start clearing your schedule for Bughunt
>> Week. :)
>>
>> ,Wil
>>
>>
>>   
> 
> -- 
> Bart McLeod
> *Space Web Internet Team*
> Middenlaan 47
> 6865 VN Heveadorp
> The Netherlands
> *t* +31(0)26 3392952
> *m* 06 51 51 89 71
> [EMAIL PROTECTED] [EMAIL PROTECTED] 
> www.spaceweb.nl   zce logo zce PHP 5 logo
> 
> /Bart McLeod is a Zend Certified Engineer./
> 
> Click to verify! 
> 
>   
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Free-Zend-Framework-t-shirt.-.-.-tp20241961p20242955.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Old issues

2008-10-04 Thread Jan Pieper
I hope ZF-1838 (http://framework.zend.com/issues/browse/ZF-1838) will be 
fixed. Fix is available but no action since over 13 months.


-- Jan



-- Michał Zieliński <[EMAIL PROTECTED]> wrote
(on Friday, 03 October 2008, 02:29 PM -0700):
I`d like to ask if there are any plans to solve old issues? 
All I can see is that most fixes are about new added features. It`s cool and

I`m very thankfull for your hard work and pushing the ZF forward but I hope
some day ZF Team would finally return to old ones as well. They are all
needed, maybe even more than new ones, and should have the highest priority
set. 
Now, I see that 1.7 is coming out soon with I guess new features again.

1.7.1 will probably cover bug fixed for new features and the story goes on.
I guess examples are not needed here. They are nicely presented on issue
tracker.

Thanks for any clues if there are any plans and when ;-)


We have a plan for at least one "bug week" between now and 1.7.0, and
I'll be posting to zf-contributors with details and requests for help
in the next week. I'd like for the community to help us work through the
backlog of bugs so we can keep up with new ones easier. :)





Re: [fw-general] [Log/Firebug] Irritating result.

2008-09-04 Thread Jan Pieper

It really seems to be a "bug" in Firebug. PHP en-/decodes json strings correct.

{"data":[1]} = array("data" => array(0 => 1))
{"data":[1,2,3]} = array("data" => array(0 => 1, 1 => 2, 2 => 3))

Firebug is showing {"data":[1]} as an single dimension array with key=>value. 
Its very inconsequent to decode {"data":[1]} to an single dimension array but 
decode {"data":[1,2,3]} to an two dimensional array.


Regards,
Jan Pieper



-- Christoph Dorn <[EMAIL PROTECTED]> wrote
(on Thursday, 04 September 2008, 10:54 AM -0700):

It is an issue with Zend_Json_Encoder.

The problem is that JSON does not support associative arrays. See ticket
http://framework.zend.com/issues/browse/ZF-4159


Actually, that's not entirely true. PHP associative arrays translate
basically to JS objects. The problem occurs when PHP needs to encode an
array -- is an array with numeric indices an associative or normal
indexed array? The typical test used is something like this:

if (array_keys($array) == range(0, count($array) - 1)) {
// indexed
} else {
// associative
}

In the example the poster provided, it would be evaluated as an indexed
array.



I am working on a solution but do not have a timeline yet.

Thanks for reporting your use-case. I have added a comment to the ticket.

Christoph



Jan Pieper wrote:

Hi guys,

today I tried to use the new Zend_Log_Writer_Firebug and it works
fine, but there is something irritating. If you log something like this:

# $logger->log(array('data' => array(0 => 1)), Zend_Log::DEBUG);

Firebug will show:

# array(['data'] => 1)

It is because the given array will be encoded to {'data':[1]} and []
is no associated array but I think the result is something
"completely" different.

# array('data' => array(0 => 1)) != array('data' => 1)

Is there a chance to get it fixed or is it a Firebug issue?

Regards,
Jan Pieper



--
Christoph Dorn
<http://www.ChristophDorn.com/>   http://www.ChristophDorn.com/







[fw-general] [Log/Firebug] Irritating result.

2008-09-04 Thread Jan Pieper

Hi guys,

today I tried to use the new Zend_Log_Writer_Firebug and it works fine, but 
there is something irritating. If you log something like this:


# $logger->log(array('data' => array(0 => 1)), Zend_Log::DEBUG);

Firebug will show:

# array(['data'] => 1)

It is because the given array will be encoded to {'data':[1]} and [] is no 
associated array but I think the result is something "completely" different.


# array('data' => array(0 => 1)) != array('data' => 1)

Is there a chance to get it fixed or is it a Firebug issue?

Regards,
Jan Pieper


Re: [fw-general] ambiguos vs. ambiguous vs. ambigous

2008-07-22 Thread Jan Pieper

Hmm, it is corrected spelled in Zend_Auth_Result. I think I need glasses :-)


It's ambiguous and could you please report these issues at Jira, if it 
works


On Tue, Jul 22, 2008 at 7:27 PM, Jan Pieper <[EMAIL PROTECTED] 
<mailto:[EMAIL PROTECTED]>> wrote:


Someone knows the correct spelling? Zend_Auth_Result is using
ambig[uo]s, I only know ambig[ou]s and google also found ambig[uou]s.

-- Jan






[fw-general] ambiguos vs. ambiguous vs. ambigous

2008-07-22 Thread Jan Pieper
Someone knows the correct spelling? Zend_Auth_Result is using ambig[uo]s, I only 
know ambig[ou]s and google also found ambig[uou]s.


-- Jan


[fw-general] Blocked emails

2008-07-21 Thread Jan Pieper
Someone have the same problem like me? After sending a new email to 
[EMAIL PROTECTED] i´ll get an email which says that my email was blocked by 
mailinglist. But my emails always reach the list. Don´t know whats going wrong. 
I´ve attached email (block_information.txt) I got after sending email to 
mailinglist.


-- Jan
WHAT HAPPENED ?
===
Your message "Re: Correct spelling in german documentation" was not delivered.


WHO WAS AFFECTED ?
==


WHY DID THIS HAPPEN ?
=
550  INVALID RECIPIENT 


WHEN DID THIS HAPPEN ?
==
Mon 21 Jul 2008 17:27:00


HOW CAN I GET MY MESSAGE DELIVERED ?

You may resend the message placing the code: XXX-XXX somewhere in the subject 
to bypass the anti-spam checks.


DIAGNOSTIC INFORMATION
==
If you are a system administrator or have technical knowledge, then this 
information may help you to diagnose the problem further. Visit 
http://www.exclaimer.com/AntiSpamBounce.aspx for more information.


INTERNET HEADERS

Received-SPF:pass (Exclaimer Mail Utilities: domain of lists.zend.com 
designates XXX.XXX.XXX.XXX as permitted sender) client-ip=XXX.XXX.XXX.XXX; 
[EMAIL PROTECTED]; helo=www.zend.com;
X-SPF-Result:3
X-ExAntiSpamFlags:SMTP_FROM_NOT_EQUAL_822_FROM SPF_PASS RECIPIENT_NOT_IN_AD 
X-ExSpamID:str=0001.0A0B0202.4884B8D4.0186:SCFSTAT1477060,ss=1,fgs=0
X-OriginalArrivalTime:21 Jul 2008 16:26:59.0837 (UTC) 
FILETIME=[99AE42D0:01C8EB4E]
Return-Path:[EMAIL PROTECTED]
X-pstn-addresses:from <[EMAIL PROTECTED]> [538/26] 
X-pstn-settings:1 (0.1500:0.1500) cv gt3 gt2 gt1 p m c 
X-pstn-levels:(S:99.9/99.9 CV:99. P:95.9108 M:97.0282 C:98.6951 )
X-pstn-neptune:0/0/0.00/0
X-FuHaFi:0.55
Content-Transfer-Encoding:8bit
Content-Type:text/plain; charset=ISO-8859-1; format=flowed
In-Reply-To:<[EMAIL PROTECTED]>
References:<[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
Subject:Re: Correct spelling in german documentation
CC:Tobias Gies <[EMAIL PROTECTED]>,  Zend Framework Documentation <[EMAIL 
PROTECTED]>
To:Thomas Weidner <[EMAIL PROTECTED]>
MIME-Version:1.0
User-Agent:Thunderbird 2.0.0.14 (Windows/20080421)
From:Jan Pieper <[EMAIL PROTECTED]>
Date:Mon, 21 Jul 2008 18:29:03 +0200
PrevMsg-ID:<[EMAIL PROTECTED]>
X-Provags-ID:V01U2FsdGVkX18sOJopG6AsoCyLvSDSRpe7d9jfV8urDCX8nSIPsl 
SKcM+3wXi7Xd2o
X-Authenticated:#28177402
Received:(qmail 30645 invoked from network); 21 Jul 2008 16:26:55 -
Delivered-To:mailing list [EMAIL PROTECTED]
X-Origin-List:[EMAIL PROTECTED]
List-Subscribe:
List-Unsubscribe:
List-Help:
List-Post:
Precedence:bulk
Mailing-List:contact [EMAIL PROTECTED]; run by ezmlm
Received:(qmail 30652 invoked by uid 505); 21 Jul 2008 16:26:55 -
Received:from www.zend.com ([XXX.XXX.XXX.XXX]) by bracknellroofing.com with 
Microsoft SMTPSVC(6.0.3790.3959); Mon, 21 Jul 2008 17:26:59 +0100

==
END OF MESSAGE



[fw-general] Zend_Service_Yahoo vs. Yahoo BOSS

2008-07-14 Thread Jan Pieper
Is there a difference between Yahoos old (!?) webservice and their new BOSS API 
(http://developer.yahoo.com/search/boss/)?


-- Jan


Re: [fw-general] getting notices by using Zend_Service_Yahoo::webSearch

2008-07-13 Thread Jan Pieper

Created new jira issue:
http://framework.zend.com/issues/browse/ZF-3636


Hi Jan,
could you please open a ticket on JIRA 
http://framework.zend.com/issues/secure/Dashboard.jspa to keep track of 
this issue?


Thanks for your feedback,
-- Simone


On Sun, Jul 13, 2008 at 12:47 PM, Jan Pieper <[EMAIL PROTECTED] 
<mailto:[EMAIL PROTECTED]>> wrote:


I want to use Zend_Serive_Yahoo::webSearch() to search for websites
but I get some notices (E_NOTICE) when I search for "flabben":

Notice: Trying to get property of non-object in
C:\Server\php\includes\Zend\Service\Yahoo\WebResult.php on line 97
Notice: Trying to get property of non-object in
C:\Server\php\includes\Zend\Service\Yahoo\WebResult.php on line 98
Notice: Trying to get property of non-object in
C:\Server\php\includes\Zend\Service\Yahoo\WebResult.php on line 97
Notice: Trying to get property of non-object in
C:\Server\php\includes\Zend\Service\Yahoo\WebResult.php on line 98

Here my code:

$yahoo = new Zend_Service_Yahoo($appId);
$results = $yahoo->webSearch('flabben');

I am getting valid results and I can use them but I think no api
should cause notices.

Attached xml result (result.xml) to this email so you can try to
find out what is causing these notices.

If there is still something in my xml result that can be used by
others to use my account, please let me know so I can deactivate
actual application id and create a new one.

-- Jan






[fw-general] getting notices by using Zend_Service_Yahoo::webSearch

2008-07-13 Thread Jan Pieper
I want to use Zend_Serive_Yahoo::webSearch() to search for websites but I get 
some notices (E_NOTICE) when I search for "flabben":


Notice: Trying to get property of non-object in 
C:\Server\php\includes\Zend\Service\Yahoo\WebResult.php on line 97
Notice: Trying to get property of non-object in 
C:\Server\php\includes\Zend\Service\Yahoo\WebResult.php on line 98
Notice: Trying to get property of non-object in 
C:\Server\php\includes\Zend\Service\Yahoo\WebResult.php on line 97
Notice: Trying to get property of non-object in 
C:\Server\php\includes\Zend\Service\Yahoo\WebResult.php on line 98


Here my code:

$yahoo = new Zend_Service_Yahoo($appId);
$results = $yahoo->webSearch('flabben');

I am getting valid results and I can use them but I think no api should cause 
notices.


Attached xml result (result.xml) to this email so you can try to find out what 
is causing these notices.


If there is still something in my xml result that can be used by others to use 
my account, please let me know so I can deactivate actual application id and 
create a new one.


-- Jan

http://www.w3.org/2001/XMLSchema-instance"; xmlns="urn:yahoo:srch" xsi:schemaLocation="urn:yahoo:srch http://api.search.yahoo.com/WebSearchService/V1/WebSearchResponse.xsd"; type="web" totalResultsAvailable="3" totalResultsReturned="3" firstResultPosition="1" moreSearch="/WebSearchService/V1/webSearch?query=flabben&appid=[...]®ion=us">
IBSN - Códigos de barrasDescribe el problema con detalle, o deja tu email para que podamos contactarte. ... Blog: Flabben. URL: http://www.flabben.net. IBSN: 3-2803-0911-8 ...http://ibsn.org/barcode.php?ibsn=3-2803-0911-8http://ibsn.org/barcode.php?ibsn=3-2803-0911-8ibsn.org/barcode.php?ibsn=3-2803-0911-81215500400text/html
http://uk.wrs.yahoo.com/_ylt=A0WTec0GX3lIGjYAtAPdmMwF;_ylu=X3oDMTBwZTdwbWtkBGNvbG8DZQRwb3MDMQRzZWMDc3IEdnRpZAM-/SIG=198nlkckg/EXP=1216000134/**http%3A//74.6.239.67/search/cache%3Fei=UTF-8%26type=all%26start=1%26license=any%26results=10%26format=any%26appid=[...]%26query=flabben%26u=ibsn.org/barcode.php%253Fibsn%253D3-2803-0911-8%26w=flabben%26d=EOgv4C72RGSQ%26icp=1%26.intl=us7276


Til gotheskjalden Ridderstad - Diktsom sig paa mit Hjerte gynger: da en liden ensom Klynge. bag mig hører jeg ... (somom de med Flabben høre), stimer henad Alfarvei, endser Skjald bag Harpen ei ...http://dikt.org/Til_gotheskjalden_Ridderstadhttp://dikt.org/Til_gotheskjalden_Ridderstaddikt.org/Til_gotheskjalden_Ridderstad1196668800text/html

Bjørnen og reven - Dikt2 Reven snyter bjørnen for julekosten. 3 Slipp granrot og ta i revefot ... hadde vært, siden han var så feit om flabben, sa han: "Tror du ikke jeg ble bedt ...http://dikt.org/Bj%C3%B8rnen_og_revenhttp://dikt.org/Bj%C3%B8rnen_og_revendikt.org/Bj%C3%B8rnen_og_reven1180940400text/html



[fw-general] Confluence and Jira down

2008-07-08 Thread Jan Pieper
Confluence and Jira seem to be down.

-- Jan
-- 
Pt! Schon das coole Video vom GMX MultiMessenger gesehen?
Der Eine für Alle: http://www.gmx.net/de/go/messenger03


[fw-general] How to set value for Zend_View_Helper_FormHidden?

2008-06-22 Thread Jan Pieper
How can I set the value for a hidden field? Form is configured in an INI-File 
and in my action I want to set fields value. Can´t find a way how to set it.


-- Jan


Re: [fw-general] Howto use only one ErrorController?

2008-06-14 Thread Jan Pieper

argh, my mistake. misconfigured my application. now it works fine :-)
thanks.

-- Jan



Jan

It's a default behaviour, you don't need to do anything.
Check reference manual on error handler plugin.

Regards


Jan Pieper wrote:

Hi guys,

i am developing an application with multiple modules, so I want to use 
only one specific ErrorController that is placed in default-module. How 
can I say ZF to only use this ErrorController?


-- Jan








[fw-general] Howto use only one ErrorController?

2008-06-14 Thread Jan Pieper

Hi guys,

i am developing an application with multiple modules, so I want to use 
only one specific ErrorController that is placed in default-module. How 
can I say ZF to only use this ErrorController?


-- Jan


Re: [fw-general] leaving Zend

2008-05-21 Thread Jan Pieper
Thanks for all your hard work. Thanks for all your ideas, discussion and general 
talks. Good luck in your future endeavors.


-- Jan



Hi all,

My last day at Zend will be this Friday, May 23. It's been an 
indescribably great experience working with the Zend Framework team and 
with you, the Zend Framework community. Now it's time for me to move on 
to new opportunities and challenges, but I'll never forget the amazing 
people with whom I have worked on this project.


My personal e-mail address is this, [EMAIL PROTECTED] Please feel 
free to contact me anytime. I'd be happy to hear from you. :)


Best regards,
Darby





Re: [fw-general] Establishing naming conventions for Zend Framework 2.0

2008-05-20 Thread Jan Pieper

+1

already waiting a long time for something like that :)

-- Jan



-- Xavier Vidal Piera <[EMAIL PROTECTED]> wrote
(on Tuesday, 20 May 2008, 11:35 AM +0200):

+1

But please, when will be done, publish a list of changed names in order to do a
carefully search & replace


Any BC changes in 2.0 will (a) need to be well-justified (I think this
one falls in that category), (b) have documentation regarding the nature
of the change, and (c) hopefully also include a script or Zend_Tool
provider for aiding the migration (for instance, finding all instances
of an old class name in your code and renaming). 


On Tue, May 20, 2008 at 11:30 AM, Julian Davchev <[EMAIL PROTECTED]> wrote:

+10 from me.

I like this + thingy :)

Ben Scholzen 'DASPRiD' wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

+1 from me as well.

A break of backward compatibility in a major released is acceptable.

Jurriën Stutterheim schrieb:
 


+1 from me too.

A proposal for this would be great : )

Op Di, mei 20, 2008 10:05 schreef Mathew Byrne:
   


+1


Backwards compatibility aside coming up with a more consistent
naming
scheme would be a massive boon for Zend Framework. We've
already got rules
for how names are constructed, now for some guidelines as to
the semantics
of ZF component names.

--
Mathew Byrne
http://www.matbyrne.com/



On May 20, 2008, at 2:00 PM, Matthew Ratzloff wrote:


 


This seems like a perennial issue for me, but I'm bringing
it up
again because I think it's worthwhile.

Since the beginning of this project, there hasn't really
been much
in the way of direction given on naming standards for
classes in Zend
Framework. This lack of consistency is what has yielded two
nomenclatures for CLI components ("Zend_Console" vs.
"Zend_Controller_Response_Cli"), differing terms for
similar
concepts ("Zend_Json_Decoder" vs. "Zend_Mime_Decode"), both
nouns and
verbs in equal measure ("Zend_Loader" but not
"Zend_Translator";
alternately, "Zend_Translate" but not "Zend_Load"), and so
on.

I first brought this issue up in February 2007 and
concluded,
"Consistency means predictability, which means being able
to recall
names without having to check the manual every time. It's
why most people
can't use PHP's date or string functions without looking at
the
documentation, for example."

There was a lot of agreement from the community (and a
couple
Zenders) but no movement because the framework was
preparing for
1.0.  At the time I was told, "There is life after 0.9.0,"
and so as
we prepare for 2.0, I think it's the perfect time to
revisit this.

-Matt

   

   



- --
...
:  ___   _   ___ ___ ___ _ ___:
: |   \ /_\ / __| _ \ _ (_)   \   :
: | |) / _ \\__ \  _/   / | |) |  :
: |___/_/:\_\___/_| |_|_\_|___/   :
:::
: Web: http://www.dasprids.de :
: E-mail : [EMAIL PROTECTED]   :
: Jabber : [EMAIL PROTECTED] :
: ICQ: 105677955  :
:::
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIMpGI0HfT5Ws789ARAgiXAKCZ9ZmPhl+2uolK5yuhtgpMy6duawCgpBg0
NDNwsoTRDMyNpVOQCUrzgyE=
=vKfs
-END PGP SIGNATURE-
 







--
Xavier Vidal Piera
Enginyer Tècnic Informàtic de Gestió
Tècnic Especialista Informàtic d'equips
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://web.xaviervidal.net
610.68.41.78






fw-general@lists.zend.com

2008-04-22 Thread Jan Pieper

Cool. Added two questions :)


wllm wrote:
> 
> Page edits. Just like the questions that are already there. Just please be
> careful about attaching the right names to the right questions- we don't
> want to put any questions in to any one's mouths.
> 
> ,Wil
> 
>> -Original Message-
>> From: Jordan Moore [mailto:[EMAIL PROTECTED]
>> Sent: Monday, April 21, 2008 1:53 PM
>> To: Wil Sinclair
>> Cc: Zend Mailing List; [EMAIL PROTECTED]
>> Subject: Re: [fw-general] The Big Zend Framework Q&A
>> 
>> Should questions be added as comments or page edits?
>> 
>> On Mon, Apr 21, 2008 at 1:39 PM, Wil Sinclair <[EMAIL PROTECTED]> wrote:
>> > It has been almost a year since the 1.0 release of Zend Framework. In
>> >  that time we've seen some of the most trafficked sites in the world
>> >  deployed on ZF, many popular enterprise-oriented projects built with
>> ZF,
>> >  and some of the greatest times ever had (while coding) using ZF.
>> Since
>> >  our community has been so great in giving back to the project, we
>> >  decided it's the Zend Framework team's turn to find a new way to
>> give
>> >  back.
>> >
>> >  On April 30, 2008, Zend's very own Zend Framework team will make
>> >  themselves available for a 2-hour Q&A session. You can submit your
>> >  questions in advance on the wiki
>> >  (http://framework.zend.com/wiki/pages/viewpage.action?pageId=43922)
>> to
>> >  give us an opportunity to think them over a bit, or you can surprise
>> us
>> >  with them during the webinar. In any case, expect to find out more
>> about
>> >  ZF while getting to know everyone on the team a little better.
>> >
>> >  We've started off the wiki page by entering the kinds of questions
>> we'd
>> >  like you to ask us :), but feel free to ask any (non-profane)
>> questions
>> >  you want.
>> >
>> >  Please register here for the webinar:
>> >
>> https://zend.webex.com/mw0305l/mywebex/default.do?nomenu=true&siteurl=z
>> e
>> >
>> nd&service=6&main_url=https%3A%2F%2Fzend.webex.com%2Fec0600l%2Feventcen
>> t
>> >
>> er%2Fevent%2FeventAction.do%3FtheAction%3Ddetail%26confViewID%3D1955760
>> 8
>> >  6%26siteurl%3Dzend%26%26%26
>> >
>> >  Looking forward to seeing all of you there!
>> >  ,Wil
>> >
>> 
>> 
>> 
>> --
>> Jordan Moore - Creative Director
>> Sanctus Studios LLC
>> PO Box 2202
>> Tacoma, WA 98401
>> (253) 238-8676
> 
> 

-- 
View this message in context: 
http://www.nabble.com/The-Big-Zend-Framework-Q-A-tp16819490p16824210.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Routing: / != /index != /index/index?

2008-04-13 Thread Jan Pieper

Okay, now my regexp route is: (?:index(?:/index(?:/.*)?)?)?

This should work to forward request to ArticleController::indexAction() but now 
an exception will be thrown:


> *Zend_Controller_Router_Exception*
> Cannot assemble. Reversed route is not specified.

What I have to do now? Search for it in code but there is no documentation for 
$reverse parameter (Zend_Controller_Router_Route_Regex::__construct). Then i 
searched in manual but also found nothing helpful.


If I use an empty string for 4th parameter ($reverse) it works, but i don´t 
think that this is correct.


-- Jan

Okay, my mistake but your solution allows something like /index/123 (if 
:article is the article_id). I want that /, /index and /index/index use 
ArticleController with indexAction. If no article_id is given, the 
application will show the newest article.


The actual problem is, that I don´t see a solution how to use 
ArticleController::indexAction() at /, /index and /index/index without 
adding one entry per route (= 3 routes with the same target). I think 
this will work, but I don´t think that this is an clean solution.


-- Jan


Jan Pieper wrote:


Where is my mistake? Why is / != /index != /index/index?


It's not the problem with your router implementation but with your 
route. You have specified a static route string (index/index), so it 
matches only this particular URL. Try something like this instead:


name=index {
 module: null
 controller: article
 action: index
 route: :controller/:article
}


-- Jan


Re: [fw-general] How to store multiple tags to document?

2008-04-06 Thread Jan Pieper
Grrr already found a solution. I have to implode list of tags and put 
them into the field "tag". Then I can search for it with "tag:php" like 
all other stored fields.


-- Jan


Hi guys,

how can I store multiple tags to a Lucene document?

title: zend framework version 1.5
tags:  zend, framework, update, release, php

title: new php version released
tags:  update, php, release

Now I want to search for something like "tag:php" to get both articles. 
But how to store multiple values to one single field? Any ideas?


-- Jan




[fw-general] How to store multiple tags to document?

2008-04-06 Thread Jan Pieper

Hi guys,

how can I store multiple tags to a Lucene document?

title: zend framework version 1.5
tags:  zend, framework, update, release, php

title: new php version released
tags:  update, php, release

Now I want to search for something like "tag:php" to get both articles. 
But how to store multiple values to one single field? Any ideas?


-- Jan


[fw-general] New site: permission denied

2008-03-18 Thread Jan Pieper

Tried to search new zend framework website for 
http://framework.zend.com/search?query=zend_auth&type=all&x=0&y=0
"zend_auth"  and thought i´ll get a result for documentation, but got an
error:

ERROR: An error occurred with this request: chmod() [function.chmod]:
Operation not permitted.

-- Jan
-- 
View this message in context: 
http://www.nabble.com/New-site%3A-permission-denied-tp16117535s16154p16117535.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Routing: / != /index != /index/index?

2008-03-11 Thread Jan Pieper
Okay, my mistake but your solution allows something like /index/123 (if :article 
is the article_id). I want that /, /index and /index/index use ArticleController 
with indexAction. If no article_id is given, the application will show the 
newest article.


The actual problem is, that I don´t see a solution how to use 
ArticleController::indexAction() at /, /index and /index/index without adding 
one entry per route (= 3 routes with the same target). I think this will work, 
but I don´t think that this is an clean solution.


-- Jan


Jan Pieper wrote:


Where is my mistake? Why is / != /index != /index/index?


It's not the problem with your router implementation but with your 
route. You have specified a static route string (index/index), so it 
matches only this particular URL. Try something like this instead:


name=index {
 module: null
 controller: article
 action: index
 route: :controller/:article
}


-- Jan




[fw-general] Routing: / != /index != /index/index?

2008-03-10 Thread Jan Pieper

Hi guys,

I want to redirect to / if a given article is not existent in database. I added 
a route for "index/index" and thought if I redirect to / it is the same as 
/index/index, but it isn´t. I have to add routes for /, /index and /index/index.


I don´t think this is correct. I am using my own router 
(Flabben_Controller_Router_Database extends Zend_Controller_Router_Rewrite) 
which fetchs the routes stored in database and add them to the router via 
addRoute().


Here (http://www.paste2.org/p/15565, it isn´t final yet!) you can see my actual 
database based router and here (http://www.paste2.org/p/15566) how I am using 
it. var_dump'd router http://www.paste2.org/p/15567.


I have two routes in my database:

name=index {
module: null
controller: article
action: index
route: index/index
}

name=showArticle {
module: null
controller: article
action: index
route: article/:id/:title
}

My ArticleController::indexAction() selects the requested article from database 
(Zend_Db_Table) and if current() returns NULL I redirect to / 
($this->_redirect('/')) but then my page is without content. The same if I 
redirect to /index. Only if I redirect to /index/index I get the latest article.


Where is my mistake? Why is / != /index != /index/index?

-- Jan


Re: [fw-general] Library for writing config (INI) files to disk?

2008-03-10 Thread Jan Pieper

Today i´ve created a new issue with exact the same target:
http://framework.zend.com/issues/browse/ZF-2838





On 3/10/08, *Julien Pauli* <[EMAIL PROTECTED] 
> wrote:


I'am :-)


Then you'll be happy to note that I've progressed quite far :)
Currently, the only things left on the TODO list are allowing for 
unsetting of values (i.e. deleting them) and to write specifications 
(unit tests). I'll post a final message once it's complete :)


Julien.P


--
Vincent




Re: [fw-general] Zend_Db_Table: Problem with Relatationships

2008-03-06 Thread Jan Pieper

Yeah, this works fine :-)

-- Jan



Jan Pieper wrote:

$article->findDependentRowset('Author');

But the result is an Exception :(

Zend_Db_Table_Exception: No reference from table Author to table Article



In you example, a foreign key in Article references a primary key in Author.

So Author is the "parent", Article is the "dependent".  You are querying the
reverse relationship, which does not exist in this example.

Use this:

  $article->findParentRow('Author');

Regards,
Bill Karwin




[fw-general] Zend_Db_Table: Problem with Relatationships

2008-03-06 Thread Jan Pieper

Hi guys,

i am trying to create references between my model classes based on
Zend_Db_Table_Abstract but it does not function. I don´t know why and so 
I hope

someone of you guys can help me :-)

_I have 2 simple tables:_
flabben.article (id, [...], author_id)
flabben.author (id, [...])

*File:* _~/application/models/Article.php

_* *array*(
'columns' => 'author_id',
'refTableClass' => 'Author',
'refColumns' => 'id'
)
);
}


*?>*

*File:* _~/application/models/Author.php_
*

*Now I am trying to get the depending author for the actual selected article
(in my application, this code is inside IndexController::indexAction).

*find(1);
$article = $articles->current();

$article->findDependentRowset('Author');

*?>

*But the result is an Exception :(

*Zend_Db_Table_Exception*

[0] No reference from table Author to table Article

#0 
C:\Server\httpd\htdocs\Flabben\library\Zend\Db\Table\Row\Abstract.php(680): 
Zend_Db_Table_Abstract->getReference('Article', NULL)
#1 
C:\Server\httpd\htdocs\Flabben\library\Zend\Db\Table\Row\Abstract.php(723): 
Zend_Db_Table_Row_Abstract->_prepareReference(Object(Author), 
Object(Article), NULL)
#2 C:\Server\httpd\htdocs\Flabben\library\Flabben\Db\Table\Row.php(48): 
Zend_Db_Table_Row_Abstract->findDependentRowset(Object(Author), NULL)
#3 
C:\Server\httpd\htdocs\Flabben\application\views\scripts\index\index.phtml(23): 
Flabben_Db_Table_Row->findDependentRowset('Author')
#4 C:\Server\httpd\htdocs\Flabben\library\Zend\View.php(46): 
include('C:\Server\httpd...')
#5 C:\Server\httpd\htdocs\Flabben\library\Zend\View\Abstract.php(765): 
Zend_View->_run('C:\Server\httpd...')
#6 
C:\Server\httpd\htdocs\Flabben\library\Zend\Controller\Action\Helper\ViewRenderer.php(860): 
Zend_View_Abstract->render('index/index.pht...')
#7 
C:\Server\httpd\htdocs\Flabben\library\Zend\Controller\Action\Helper\ViewRenderer.php(881): 
Zend_Controller_Action_Helper_ViewRenderer->renderScript('index/index.pht...', 
NULL)
#8 
C:\Server\httpd\htdocs\Flabben\library\Zend\Controller\Action\Helper\ViewRenderer.php(929): 
Zend_Controller_Action_Helper_ViewRenderer->render()
#9 
C:\Server\httpd\htdocs\Flabben\library\Zend\Controller\Action\HelperBroker.php(161): 
Zend_Controller_Action_Helper_ViewRenderer->postDispatch()
#10 
C:\Server\httpd\htdocs\Flabben\library\Zend\Controller\Action.php(506): 
Zend_Controller_Action_HelperBroker->notifyPostDispatch()
#11 
C:\Server\httpd\htdocs\Flabben\library\Zend\Controller\Dispatcher\Standard.php(242): 
Zend_Controller_Action->dispatch('indexAction')
#12 
C:\Server\httpd\htdocs\Flabben\library\Zend\Controller\Front.php(927): 
Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), 
Object(Zend_Controller_Response_Http))
#13 C:\Server\httpd\htdocs\Flabben\www\index.php(22): 
Zend_Controller_Front->dispatch()

#14 {main}

-- Jan


Re: [fw-general] Case studies

2008-01-27 Thread Jan Pieper

There is a dead link in case studies:
http://www.rightmedia.com/content/right-media-exchange/1

Located in Right Media's case study.

-- Jan


Hi,

 


Judging by the emails it looks like quite a few people on this list have
some high-volume public Web sites built on ZF.

We are always interested in hearing your stories and when possible
exposing them by writing a case study
(http://framework.zend.com/whyzf/casestudies/) or in some other form.
This will of course help us spread the word re: ZF. The more of these we
have for ZF 1.5 the better! 

 


So if you have any good stories to tell please get in touch with me and
I'll make sure to connect you to the write people at Zend.

 


Thanks!

Andi





Re: [fw-general] [PDO_PGSQL] lastInsertId() returns bool(false)

2007-12-30 Thread Jan Pieper
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Ah thanks. I think I`ll change all sequences to default sequence name,
to avoid mistakes.

- -- Jan

> If you define the sequence name yourself, try using the "lastSequenceId()"
> method, and pass the name of the sequence as the argument to that method.
> 
> Regards,
> Bill Karwin.
> 
> 
> Jan Pieper wrote:
> I tried to use Zend_Db with PDO_PGSQL. After inserting a new row to
> database i try to get last insert id by lastInsertId() method but I even
> get bool(false). My tables create statement:
> 
> CREATE SEQUENCE seq_article_id;
> CREATE TABLE article (
> article_id integer NOT NULL DEFAULT nextval('seq_article_id')
> PRIMARY KEY
> ...
> );
> 
> PostgreSQL's manual says, that SERIAL is an autoincrementing integer,
> but i read that is the same as above (~helper).
> 
> So, what i have todo to get a valid last insert id from lastInsertId()?
> Could it be that the sequence name must have a specific name? In
> Example: __seq? I actually define the sequence
> name by myself.
> 
> -- Jan
>>
>>

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (GNU/Linux)

iEYEAREDAAYFAkd3dlMACgkQd3s9o1H9MZ57VACgjid8OqAH7RbwpGv1R3YiiuMT
tTYAnjVGH+dpxnuFeZ2Vn5yC/qBed3Lz
=aryS
-END PGP SIGNATURE-


[fw-general] [PDO_PGSQL] lastInsertId() returns bool(false)

2007-12-28 Thread Jan Pieper
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

I tried to use Zend_Db with PDO_PGSQL. After inserting a new row to
database i try to get last insert id by lastInsertId() method but I even
get bool(false). My tables create statement:

CREATE SEQUENCE seq_article_id;
CREATE TABLE article (
article_id integer NOT NULL DEFAULT nextval('seq_article_id')
PRIMARY KEY
...
);

PostgreSQL's manual says, that SERIAL is an autoincrementing integer,
but i read that is the same as above (~helper).

So, what i have todo to get a valid last insert id from lastInsertId()?
Could it be that the sequence name must have a specific name? In
Example: __seq? I actually define the sequence
name by myself.

- -- Jan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFHdPCdd3s9o1H9MZ4RA42tAJ9DGYzn0HD3ec4udDLiOql9dU6erACgjK26
cVk+M0YVmAruY7Zbm1EDk1c=
=PJQn
-END PGP SIGNATURE-


Re: [fw-general] Zend_Mail subject UTF-8. cyrillic works in one case and not another

2007-11-26 Thread Jan Pieper

Problem is related to:
http://framework.zend.com/issues/browse/ZF-1688

It seems that Nico knows the problem what is causing such subjects but why
it won´t fixed? Such mails will be moved to junk because of its wrong
encoded subject.

-- Jan


Julian Davchev wrote:
> 
> http://jd.ijkm.net/paste.php
> 
> I added few lines of code...
> Yes they are in different files..but I don't see how this could affect it.
> Both files written by me...by Zend Framework...in both cases using same
> from-> email addresses.
> 
> 
> Jan Pieper wrote:
>> Hi Julian,
>>
>> can you please show us your code, to reflect what is causing this
>> result? Both subjects contains cyrillic characters but why shouldn't the
>> first work, but the second!?
>>
>> -- Jan
>>
>>
>> > Hi
>> > I am having little problem with Zend_Mail subject cyrillic...and
>> problem
>> > is actually it works in one case
>> > and not another..weird thing.
>> > Any pointers are more than welcome.
>> > FYI I use same IDE for writing the php source files..it's UTF-8
>> encoding.
>>
>> > http://jd.ijkm.net/paste.php
>>
>>
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Zend_Mail-subject-UTF-8.-cyrillic-works-in-one-case-and-not-another-tf4863723s16154.html#a13946674
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend_Mail subject UTF-8. cyrillic works in one case and not another

2007-11-24 Thread Jan Pieper
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Hi Julian,

can you please show us your code, to reflect what is causing this
result? Both subjects contains cyrillic characters but why shouldn't the
first work, but the second!?

- -- Jan


> Hi
> I am having little problem with Zend_Mail subject cyrillic...and problem
> is actually it works in one case
> and not another..weird thing.
> Any pointers are more than welcome.
> FYI I use same IDE for writing the php source files..it's UTF-8 encoding.
> 
> http://jd.ijkm.net/paste.php
> 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFHSE/Ad3s9o1H9MZ4RA0ggAJ9floHqUHXYHF6059lzkmxhu3OPWgCfWbWU
v3cDSK6l274b58fgXKXJHa8=
=08x8
-END PGP SIGNATURE-


Re: [fw-general] howto decode mime encoded mail?

2007-10-17 Thread Jan Pieper


Jack Sleight wrote:
> 
> [...] Once you get the raw 
> content from the message use PHP's quoted_printable_decode function, 
> that should work I think (although I've never actually used it).
> [...]
> -- 
> Jack

Yeah thanks :-) quoted_printable_decode() works fine.

-- Jan
-- 
View this message in context: 
http://www.nabble.com/howto-decode-mime-encoded-mail--tf4639104s16154.html#a13250811
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] howto decode mime encoded mail?

2007-10-17 Thread Jan Pieper


Jack Sleight wrote:
> I had the same question a while back, yes you can:
> http://www.nabble.com/Re:--fw-general--Zend_Mime_Decode,-decode-entire-message-t3427208s16154.html
> [...]
> -- 
> Jack

Hmm, but howto replace "=3D" and "=C3" with human readable characters?

-- Jan
-- 
View this message in context: 
http://www.nabble.com/howto-decode-mime-encoded-mail--tf4639104s16154.html#a13250354
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] howto decode mime encoded mail?

2007-10-17 Thread Jan Pieper

Hi guys,

is it possible to decode a mime encoded mail with zend framework? 
http://nopaste.php-quake.net/7231 Here  you can see what I want do decode.
Is it possible to decode this message with Zend_Mail(_*) or Zend_Mime(_*)?

-- Jan
-- 
View this message in context: 
http://www.nabble.com/howto-decode-mime-encoded-mail--tf4639104s16154.html#a13249852
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: AW: [fw-general] The validation of StringLength can't be used with Chinese

2007-09-16 Thread Jan Pieper
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

>> -Original Message-
>> From: Matthew Weier O'Phinney [mailto:[EMAIL PROTECTED] 
>> (iconv is used already in a number of components -- XmlRpc, 
>> Lucene, Mime, and likely some others.)
> 
> Also I found iconv used in Zend_Pdf, and a few of the web services.  So
> yes, it is certainly fair to use it.
> 
> We now have an appendix in the manual that lists ZF components that use
> each respective PHP extension (the the best of my ability to discover
> this information).  Also thanks to Thomas for creating the reverse
> table, PHP extensions used by each respective ZF component.
> 
> Bill Karwin
> 

Hmm JIRA is still down, so I could not look into the open issue regards
to this discussion.

You are talking about using getting string length by iconv or mb_string
instead of using strlen() because it can't handle chinese (multibyte)
characters. Both extensions are optional so why we can't check for
loaded extension and decide what to use?

Default: strlen
iconv loaded:iconv_strlen
mb_string loaded:mb_strlen
Both ext loaded: Don't know if there are any advantages or
 disadvantages on any extension (iconv/mb_string)

- -- Jan
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFG7O1fd3s9o1H9MZ4RA48KAJ0csidhYmfVEKjBWkvDT6NGuvXYlgCbBpUU
+pkuBK6Xin4GVMaHK/4wO5Q=
=gOIZ
-END PGP SIGNATURE-


Re: [fw-general] ZF Book

2007-09-11 Thread Jan Pieper

I´ve found a german book about using Zend Framework on amazon.de:
http://www.amazon.de/gp/product/3836210681/ref=reg_hu-wl_item-added/302-7979992-9668011

-- Jan



Shekar C Reddy wrote:
> 
> My Gmail was going Yo-Yo. Pardon me if it made into the list multiple
> times.
> 
> 
> 
> On 7/31/07, Shekar C Reddy <[EMAIL PROTECTED]> wrote:
>>
>> Hi All,
>>
>> This has reference to:
>>
>> http://devzone.zend.com/article/1795-The-Definitive-Guide-to-symfony
>> http://devzone.zend.com/article/1795-The-Definitive-Guide-to-symfony---Sample-Chapter#comments-1820
>>
>>
>> ZF has matured into 1.0 but no books or discussions about bringing one
>> out
>> yet other than some *tidbits *found on the internet (no offense intended;
>> most of those tidbits are indeed great pieces of code!) and the
>> *alphabetical
>> *API reference guide. Joining pieces together and cross-referring to the
>> reference guide is no easy task - most times it results in half-baked
>> knowledge, not to mention - code with bottle-necks! What we need is a
>> complete tutorial book that does a project and utilizes all the
>> components
>> in *concert *and shows how they *integrate *with each other. I interacted
>> with Cal earlier on this matter (email chain pasted below) about
>> collaborating with an experienced author - Cristain Darie.
>>
>> I understand writing books takes a considerable amount of time. Any
>> takers
>> with some time to spare on producing a book on ZF? Cristain would be glad
>> to
>> help/guide you with getting started...
>>
>> Here is another to consider:
>>
>> http://devzone.zend.com/article/1118-Symfony-used-in-Yahoo-Bookmarks-Beta
>> (QUOTE: The documentation was the first reason for Yahoo to choose
>> Symfony. It reaches a unique quality and coverage in the open-source
>> world)
>>
>>
>> Regards,
>>
>>
>>
>>
>>
>> On 4/26/07, Shekar C Reddy <[EMAIL PROTECTED]> wrote:
>> >
>> > Hi Cal,
>> >
>> > Would you like me to post this idea to the gw-general list to see if
>> > there are any folks with writing skills that would collaborate with
>> another
>> > author?
>> >
>> >
>> >
>> > On 4/6/07, Cal Evans <[EMAIL PROTECTED]> wrote:
>> > >
>> > >  Hi Shekar,
>> > >
>> > > I'll have to check my notes as I don't recall Christian contacting
>> me.
>> > > I know rumors of a couple of projects in the works right now but I'm
>> not
>> > > currently involved with any of them.
>> > >
>> > > =C=
>> > >
>> > > Cal Evans
>> > > Editor-in-Chief, http://devzone.zend.com
>> > > AIM:CalZend  Skype: CalAtZend
>> > >
>> > >
>> > >  --
>> > > *From:* Shekar C Reddy [mailto:[EMAIL PROTECTED]
>> > > *Sent:* Friday, April 06, 2007 3:11 PM
>> > > *To:* Cal Evans
>> > > *Subject:* Re: ZF Book?
>> > >
>> > >
>> > >  Cal,
>> > >
>> > > Well! I was wondering about the current fate of the ZF book as the
>> > > framework is reaching 1.0 soon. I introduced you Cristian Darie who
>> > > would help you with anything you folks might need from project
>> planning,
>> > > writing, editing, publishing Was Cristian able to answer your
>> > > questions and guide you in any way?
>> > >
>> > > Regards,
>> > >
>> > >
>> > >
>> > >
>> > > On 3/16/07, Shekar C Reddy <[EMAIL PROTECTED]> wrote:
>> > > >
>> > > > Cal,
>> > > >
>> > > > Here is the response from Cristian (my Yahoo ID is PowerObject):
>> > > >
>> > > > QUOTE
>> > > >
>> > > > *Cristian Darie *(3/16/2007 11:44:57 AM): Hey, thanks for this!
>> > > > Please put them in touch with me -- I'm not sure if I'll have the
>> time to
>> > > > start writing a new book, but at least I can give them some advice.
>> The idea
>> > > > of a book on the Zend Framework sounds very exciting though!
>> > > >
>> > > > *PowerObject: *I sent your email IDs to Cal Evans ( [EMAIL PROTECTED])
>> > > > and he might contact you. If this idea jells, there may be a couple
>> of
>> > > > writers/developers who might collaborate with you. **
>> > > > *PowerObject*: Hi, Would you be willing to collaborate with another
>> > > > writer at Zend.com  on producing a book on *Zend
>> > > > Framework *that is reaching v1.0 ? Do let me know so I can inform
>> > > > them and introduce you to each other so you can take it from
>> there...
>> > > >
>> > > > UNQUOTE
>> > > >
>> > > > Its your call now... ? :)
>> > > >
>> > > >
>> > > >
>> > > >
>> > > >
>> > > > On 3/16/07, Shekar C Reddy <[EMAIL PROTECTED]> wrote:
>> > > > >
>> > > > > Cal,
>> > > > >
>> > > > > No, not postulating :) I know you are a great writer with *
>> > > > > excellent* authoring skills! And I guess you (as an active user
>> of
>> > > > > ZF) are a good fit to come up with a book on ZF around the
>> release of
>> > > > > 1.0 (or even later). If you think it is too huge a task to
>> handle,
>> > > > > you (along with some developers of ZF) could *colloborate with
>> > > > > other authors*. I know Cristian Darie ( www.cristiandarie.ro) -
>> an
>> > > > > author who collaborates with other authors and has dished out
>> some great
>> > > 

Re: [fw-general] version dependencies

2007-07-21 Thread Jan Pieper
-BEGIN PGP SIGNED MESSAGE-
Hash: RIPEMD160

Ah I thought there are components that requires a higher version. So
thats great because we only have php5.1.4 installed on our servers.
Thanks for your answer :)

- -- Jan

> All components should require a version of PHP no higher than 5.1.4 in Zend 
> Framework 1.0. 
> If there is any other case, it should be changed.
> 
> We may make future versions of ZF require PHP 5.2, but that should not be the 
> case at this time.
> 
> Regards,
> Bill Karwin
> 
>> -----Original Message-
>> From: Jan Pieper [mailto:[EMAIL PROTECTED] 
>> Sent: Thursday, July 19, 2007 11:45 PM
>> To: 'Zend Framework General'
>> Subject: [fw-general] version dependencies
>>
>> Hi guys,
>>
>> we want to use Zend Framework in our environment and we actually have
>> php5.1.4 installed on our servers. The framework requires 
>> php5.1.4 as minimum so it won´t be a problme, but afaik there 
>> are some components/methods that requires a higher php 
>> version. Is there a list or something else where I can see 
>> which component/method requires which php version?
>>
>> -- Jan
>>
> 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFGobsSd3s9o1H9MZ4RA/TCAJ4i6FXCkK4E91qKuTj1Xj//ttc2rgCfWf9/
7TGvWOFbM6v34tcZrXApzzc=
=CyrJ
-END PGP SIGNATURE-


[fw-general] version dependencies

2007-07-19 Thread Jan Pieper

Hi guys,

we want to use Zend Framework in our environment and we actually have 
php5.1.4 installed on our servers. The framework requires php5.1.4 as 
minimum so it won´t be a problme, but afaik there are some 
components/methods that requires a higher php version. Is there a list 
or something else where I can see which component/method requires which 
php version?


-- Jan


[fw-general] Small mistake on framework.zend.com

2007-07-04 Thread Jan Pieper
I don´t know who is the webmaster for framework.zend.com, but there is a 
small mistake. If I click on "Downloads" 
(http://framework.zend.com/download) the "Downloads" tab is highlighted. 
If I now click on "Web Services" 
(http://framework.zend.com/download/webservices/), ... or "Snapshots" 
(http://framework.zend.com/download/snapshot/) the "Downloads" tab isn´t 
highlighted anymore. ;)


-- Jan


Re: [fw-general] Congratulations!

2007-07-01 Thread Jan Pieper

Yeah we made it ;)
Congratulation to Zend and all developers helped to create this great 
framework.


I wrote an article on an german blog site.
http://development.germanblogs.de/archive/2007/07/01/zend-framework-10.htm#fulltext

-- Jan

I've submitted this to Digg: 
http://digg.com/programming/Zend_Framework_1_0_0_Production_Released


Digg it! You know... 'cause Zend Framework is awesome :)

Best Regards,
Nick Howell




  1   2   >