Re: [fw-general] Zend_Filter_Input custom messages walked on...

2007-08-27 Thread Drew Bertola
Mmm.  I figured out the problem was just confusion between the meaning
of missingMessage and notEmptyMessage.

--
Drew

Drew Bertola wrote:
 Hi,
 
 I'm trying to figure out why I can't set custom messages in
 Zend_Filter_Input.  Is this a known bug?  I've searched around by
 haven't found anything.
 
 Then again, it could be me.  It's happened once or twice before ;^)
 
 If I do something like this:
 
 ?php
 
 ...
 
 $filters= array(name = array(StringTrim, StripTags));
 $validators = array(name = array(presence = required));
 $options = array(missingMessage = %field% is required.);
 
 $input = new Zend_Filter_Input($filters,
$validators,
$data,
$options);
 
 if ( $input-hasInvalid() )
 {
   $messages = $input-getMessages();
 }
 
 Zend_Debug::dump($messages);
 
 ...
 
 When I have an empty name in $data, I see the default missingMessage,
 rather than my custom message passed in $options.  I think the problem
 is actually in Zend_Validate, but I haven't tracked it down that far.
 Any ideas?
 

-- 
Drew Bertola

-
*   PHP/LAMP Consultant, ZCE-1000   *
*   *
*   Tel: 408-966-6671   *
*   *
*   current resume: *
*   http://drewb.com/resume.pdf *
-


[fw-general] Date difference

2007-08-27 Thread Rohit83

Hi All
 Will anybody guide me about how i can add or substract time in
hh:mm:ss form
-- 
View this message in context: 
http://www.nabble.com/Date-difference-tf4335027s16154.html#a12346190
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Date difference

2007-08-27 Thread Thomas Weidner

See Zend_Date-addTime / subTime or addIso / subIso

Greetings
Thomas Weidner
I18N Team Leader

- Original Message - 
From: Rohit83 [EMAIL PROTECTED]

To: fw-general@lists.zend.com
Sent: Monday, August 27, 2007 2:40 PM
Subject: [fw-general] Date difference




Hi All
Will anybody guide me about how i can add or substract time in
hh:mm:ss form
--
View this message in context: 
http://www.nabble.com/Date-difference-tf4335027s16154.html#a12346190
Sent from the Zend Framework mailing list archive at Nabble.com. 




RE: [fw-general] Extracting data out of PDF with Zend_Pdf?

2007-08-27 Thread Alexander Veremyev
Hi  Markus,

PDF properties processing is planned
(http://framework.zend.com/issues/browse/ZF-294), but not done yet.

It's not the first request for the feature and implementation is
relatively simple. I think it should be done in the near future.


With best regards,
   Alexander Veremyev.

 -Original Message-
 From: Markus Fischer [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, August 26, 2007 10:37 PM
 To: Zend Framework General
 Subject: [fw-general] Extracting data out of PDF with Zend_Pdf?
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hi,
 
 is it supported to extra metadata information from a PDF? The 
 information I'm seeking is
 * title
 * number of pages
 * author
 
 (of course as long as the information is contained in the PDF).
 
 I've gone through quite some PDFs where Adobes Reader shows 
 me title and author information but from Zend_Pdf I get nothing back.
 
 Following the documentation I thought I can get this 
 information from the properties() method, e.g.
 
 $oPdf = Zend_Pdf::load($sFile);
 var_dump( $oPdf-properties() );
 
 But the returned array was empty in all cases.
 
 I know I can get the number of pages by counting the pages 
 property, but what about the other information?
 
 If it's not possible with Zend_Pdf, although off-topic, what 
 other possibilities are out there? fpdf? Or some unix 
 commands (I'm on Linux)?
 
 thanks,
 - - Markus
 
 ps: I was using 1.0.1
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
 iD8DBQFG0chf1nS0RcInK9ARAiDlAJ4+aAH7QO1b7zKFS1H6UucYZ8aKPwCeO90x
 VYXJNZ9ZR+3Jv1IYoArZlNY=
 =qqMV
 -END PGP SIGNATURE-
 


[fw-general] htaccess problem - routing requests

2007-08-27 Thread kwylez

I have the following directory structure for my Hello World ZendFramework
MVC app.

/(www directory)
  zf-tutorial/
application/
controllers/
  FooController.php
  IndexController.php
models/
views/
  scripts/
foo/
  bar.phtml
index/
  index.phtml
  add.phtml
index.php
.htaccess (Contents - RewriteEngine on RewriteRule
!\.(js|ico|gif|jpg|png|css)$ index.php)

If I navigate to: http://my-site.com/zf-tutorial then I see the results from
the index controller and action

However if I navigate to: http://my-site.com/zf-tutorial/foo/bar then I get
a 404 error.  It seems that the .htaccess file is not rerouting like it
should.  Is there something that I am missing?

Thanks,
Cory


-- 
View this message in context: 
http://www.nabble.com/htaccess-problem---routing-requests-tf4336762s16154.html#a12352645
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] is there an example application for Zend_Auth Zend_Acl Zend_Session ??

2007-08-27 Thread Truppe Steven

i'm searching for a full example that shows how all these core
components (Zend_Auth, Zend_Acl and Zend_Session) work together in an
working example.

most tutorials seems out dated.

I want to save the acl and the username/password in a mysql table with
digest authentication, because this seems to be the most secure way, so
there is no password send in cleartext.

i hope there is a demo application for this.

best regards,
Truppe Steven


Re: [fw-general] Extracting data out of PDF with Zend_Pdf?

2007-08-27 Thread Markus Fischer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Alexander,

thank you for answering so quickly. I'll search JIRA next time.

I'm not new to PHP but the PDF spec is quite complex so is the PDF
implementation ... unfortunately I've not enough time to dig into, I'ld
love to help and come up with a patch.

So I hope it will get implemented soon, this would really be great.

thanks,
- - Markus

Alexander Veremyev wrote:
 Hi  Markus,
 
 PDF properties processing is planned
 (http://framework.zend.com/issues/browse/ZF-294), but not done yet.
 
 It's not the first request for the feature and implementation is
 relatively simple. I think it should be done in the near future.
 
 
 With best regards,
Alexander Veremyev.
 
 -Original Message-
 From: Markus Fischer [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, August 26, 2007 10:37 PM
 To: Zend Framework General
 Subject: [fw-general] Extracting data out of PDF with Zend_Pdf?

 Hi,
 
 is it supported to extra metadata information from a PDF? The 
 information I'm seeking is
 * title
 * number of pages
 * author
 
 (of course as long as the information is contained in the PDF).
 
 I've gone through quite some PDFs where Adobes Reader shows 
 me title and author information but from Zend_Pdf I get nothing back.
 
 Following the documentation I thought I can get this 
 information from the properties() method, e.g.
 
 $oPdf = Zend_Pdf::load($sFile);
 var_dump( $oPdf-properties() );
 
 But the returned array was empty in all cases.
 
 I know I can get the number of pages by counting the pages 
 property, but what about the other information?
 
 If it's not possible with Zend_Pdf, although off-topic, what 
 other possibilities are out there? fpdf? Or some unix 
 commands (I'm on Linux)?
 
 thanks,
 - Markus
 
 ps: I was using 1.0.1


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

iD8DBQFG0yvh1nS0RcInK9ARAlyBAJoCy4/XUr4+33KO/K0f2hUVBfP0hACdF0QD
kryvg+Wo3H/17rLTpwk43eE=
=duRE
-END PGP SIGNATURE-


RE: [fw-general] Extracting data out of PDF with Zend_Pdf?

2007-08-27 Thread Alexander Veremyev
Hi Markus,

Thanks for the offered help!

I mentioned JIRA issue only to indicate that feature already was
requested. So it increases its chances to be done in a short time :)
Actually I am going to take a look into it and determine plans for it
tomorrow.

With best regards,
   Alexander Veremyev.

 -Original Message-
 From: Markus Fischer [mailto:[EMAIL PROTECTED] 
 Sent: Monday, August 27, 2007 11:54 PM
 To: Alexander Veremyev
 Cc: Zend Framework General
 Subject: Re: [fw-general] Extracting data out of PDF with Zend_Pdf?
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hi Alexander,
 
 thank you for answering so quickly. I'll search JIRA next time.
 
 I'm not new to PHP but the PDF spec is quite complex so is 
 the PDF implementation ... unfortunately I've not enough time 
 to dig into, I'ld love to help and come up with a patch.
 
 So I hope it will get implemented soon, this would really be great.
 
 thanks,
 - - Markus
 
 Alexander Veremyev wrote:
  Hi  Markus,
  
  PDF properties processing is planned
  (http://framework.zend.com/issues/browse/ZF-294), but not done yet.
  
  It's not the first request for the feature and implementation is 
  relatively simple. I think it should be done in the near future.
  
  
  With best regards,
 Alexander Veremyev.
  
  -Original Message-
  From: Markus Fischer [mailto:[EMAIL PROTECTED]
  Sent: Sunday, August 26, 2007 10:37 PM
  To: Zend Framework General
  Subject: [fw-general] Extracting data out of PDF with Zend_Pdf?
 
  Hi,
  
  is it supported to extra metadata information from a PDF? The 
  information I'm seeking is
  * title
  * number of pages
  * author
  
  (of course as long as the information is contained in the PDF).
  
  I've gone through quite some PDFs where Adobes Reader shows 
 me title 
  and author information but from Zend_Pdf I get nothing back.
  
  Following the documentation I thought I can get this 
 information from 
  the properties() method, e.g.
  
  $oPdf = Zend_Pdf::load($sFile);
  var_dump( $oPdf-properties() );
  
  But the returned array was empty in all cases.
  
  I know I can get the number of pages by counting the pages 
  property, but what about the other information?
  
  If it's not possible with Zend_Pdf, although off-topic, what other 
  possibilities are out there? fpdf? Or some unix commands (I'm on 
  Linux)?
  
  thanks,
  - Markus
  
  ps: I was using 1.0.1
 
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.6 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
 iD8DBQFG0yvh1nS0RcInK9ARAlyBAJoCy4/XUr4+33KO/K0f2hUVBfP0hACdF0QD
 kryvg+Wo3H/17rLTpwk43eE=
 =duRE
 -END PGP SIGNATURE-