Re: [fw-general] Zend_Validate_CreditCard and Authorize.Net's Sandbox API

2010-04-28 Thread Rob Riggen
DISCLAIMER: my advice is not necessarily relevant to
Zend_Validate_CrediCard.

There's a universal test CC num of  - not sure if that is
going to work in your case but technically that should validate...

I think it is a visa, though...

Rob

On Wed, Apr 28, 2010 at 5:29 PM, Bradley Holt bradley.h...@foundline.comwrote:

 Has anyone else tried to use Zend_Validate_CreditCard with Authorize.Net's
 sandbox API? I've run into a problem that is making it difficult for me to
 test my application. The test credit card number that Authorize.Net provides
 for their sandbox API (4) is not a valid credit card number--at
 least according to Zend_Validate_CreditCard. It appears that
 Zend_Validate_CreditCard thinks this is a Visa credit card (since it starts
 with a '4') and that Visa credit cards should have a length of 16 characters
 but Authorize.Net's test credit card has a length of 13 characters, causing
 it to fail validation. Has anyone either found other, valid, test credit
 numbers that work in Authorize.Net's sandbox API or found a simple way to
 get Zend_Validate_CreditCard to accept this as a valid credit card (at least
 in testing)?

 --
 Bradley Holt
 bradley.h...@foundline.com




[fw-general] Need Zend_Form code for overseas addresses

2009-12-18 Thread Rob Riggen
Hi all,

Does anyone have Zend_Form code ready-to-eat for non-US addresses?  If so,
would you be willing to share it?

I would like to analyze how non-US addresses are handled (I don't have much
experience with this).

Thanks in advance.

Rob


Re: [fw-general] ZF - Where to begin?

2009-11-25 Thread Rob Riggen
I've been very frustrated with ZF - specifically in regard to the lack of
helpful how to and tutorial information.  There is very little out there
that is even close to up-to-date.  If the official documentation wants
developer to connect the dots on their own, it seems to leave a little too
much room between the dots for me.

I've developed many applications using ZF.  I started using it well before
many of the new components became available.  It takes so much time and
experimentation to figure out how to implement the new components that it
almost seems impractical if you want to actually get something done (vs
study and learn).

I've also created applications using CI and Symfony and found those
frameworks much better to use from the standpoint of being able to actually
accomplish some work.  The documentation and tutorial help is much more
readily available and suited to an experience developer jumping in and
getting work done.

ZF seem more suited to academia than someone trying to run a business
developing applications, IMHO.

Rob

Rob Riggen (802) 662-1069 r...@riggen.org



On Wed, Nov 25, 2009 at 1:20 PM, swilhelm st...@studio831.com wrote:


 I want to second this post. I have used ZF for some projects earlier this
 year and I am right on the cusp of making a major decision: explore ZF 1.9
 more deeply or abandon ZF and PHP altogether for Ruby on Rails.

 ZF Documentation seems almost passive aggressive, providing examples to get
 started, but lacking enough information to build, test, and deploy
 production quality, maintainable websites.

 Maybe it's a case of the grass is always greener on the other side of the
 fence but Ruby and RoR seem to be better suited to quickly and easily
 develop production quality websites.

 I don't want to start a ZF vs RoR discussion, though that might be
 interesting. I would like to hear how others have become proficient in
 building production websites using ZF.

 - Steve W.


 Fozzyuw wrote:
 
  Hi all,
 
  I've been watching and playing with ZF for some time now.  Never very
  deeply at any given time and often putting it down for extended periods
 of
  time (version releases).
 
  One thing that keeps happening is that ZF is growing quickly.  Which is
  good, but it's also hard to keep up.
 
  
 

 --
 View this message in context:
 http://n4.nabble.com/ZF-Where-to-begin-tp787666p787731.html
 Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Best Approach for complex site code structure

2008-12-04 Thread Rob Riggen
I'm doing these things on some sites (except maybe the command line calls).
The standard Zend Recommended structure works just fine for all of it.

I created an MVC controller for the Rest service, as well as one for
XML-RPC.  I also have a controller specifically for cron jobs that cron
tasks can call using curl or lynx or something like that.

I hope this helps,

Rob

On Thu, Dec 4, 2008 at 2:32 AM, SteveWilhelm [EMAIL PROTECTED]wrote:


 I am looking for suggestions on how to structure my Zend code for
 implementing a site that contains the following features:

 1. MVC-based code for the public website
 2. A REST-based server to provide programmatic access to application data
 3. Admin utility functions that are run by cron jobs and on demand on a
 command line
 4. Utility classes that are shared by all three of the above.

 Is there a good example or tutorial that demonstrates how to structure code
 for this type of site?

 Thanks in advance for your help.

 - Steve W.
 --
 View this message in context:
 http://www.nabble.com/Best-Approach-for-complex-site-code-structure-tp20828590p20828590.html
 Sent from the Zend Framework mailing list archive at Nabble.com.



Rob Riggen [EMAIL PROTECTED]


Re: [fw-general] Zend_Db specify character set

2008-10-01 Thread Rob Riggen
Thank you for the responses!

Rob

On Wed, Oct 1, 2008 at 2:29 AM, Stefan Gehrig [EMAIL PROTECTED] wrote:

  Hi Rob,



 there is another possibility if you're using the Zend_DB-PDO-Adapters:

 $db=Zend_Db::factory('Pdo_Mysql', array(

   'host'   = 'localhost',

   'username'   = 'user',

   'password'   = 'pa$$w0rd',

   'dbname' = 'database',

   'driver_options' = array(

 PDO::MYSQL_ATTR_INIT_COMMAND = 'SET NAMES utf8'

   )

 ));



 This ensures that the SET-NAMES-Command is issued with every reconnect of

 the underlying adapter.



 Best regards



 Stefan



 *Von:* Bradley Holt [mailto:[EMAIL PROTECTED]
 *Gesendet:* Dienstag, 30. September 2008 23:04
 *An:* Rob Riggen
 *Cc:* fw-general@lists.zend.com
 *Betreff:* Re: [fw-general] Zend_Db specify character set



 Hi Rob - I usually do this by issuing a 'SET NAMES UTF8' query.

 On Tue, Sep 30, 2008 at 4:59 PM, Rob Riggen [EMAIL PROTECTED] wrote:

 Is there a way to force the character set on mysql db connections to UTF-8?

 Thanks,

 Rob

 *Robert Riggen* - Zend Certified Engineer
 *Big Yellow Technologies, LLC*

 Essex Junction, VT 05452
 802.578.6719
 [EMAIL PROTECTED]




 --
 Bradley Holt
 [EMAIL PROTECTED]



*Robert Riggen* - Zend Certified Engineer
*Big Yellow Technologies, LLC*

Essex Junction, VT 05452
802.578.6719
[EMAIL PROTECTED]


Re: [fw-general] Zend_Form: How to change positions of elements ?

2008-09-30 Thread Rob Riggen
$element1-setOrder(10);
$element2-setOrder(30);
$element3-setOrder(20);
$element4-setOrder(40);

should order the elements like this on the form:

$element1
$element3
$element2
$element4

On Tue, Sep 30, 2008 at 9:39 AM, Nilesh Govindrajan [EMAIL PROTECTED]wrote:

 Hi,

 I am new to Zend Framework.

 I would like to know how to change the positions of elements created using
 Zend_Form.

 I mean that how do I place two elements one near other instead of in a
 top-down manner ?



*Robert Riggen* - Zend Certified Engineer
*Big Yellow Technologies, LLC*

Essex Junction, VT 05452
802.578.6719
[EMAIL PROTECTED]


Re: [fw-general] Zend_Form: How to change positions of elements ?

2008-09-30 Thread Rob Riggen
The form is rendered with decorators (i.e. html tags surrounding the form
elements). The stock behavior is a definitionlist.  You won't likely be able
to format a dl the way you want to.

For that you need custom decorators and css.  Here's one example of using
custom decorators to override the ZF defaults:

http://bethgranter.wordpress.com/2008/04/28/zend-form-custom-decorators/

a little more detail with a table example near the bottom here:

http://devzone.zend.com/article/3450-Decorators-with-Zend_Form

On Tue, Sep 30, 2008 at 12:50 PM, Nilesh Govindrajan [EMAIL PROTECTED]wrote:

 No, no I don't want it like this. I want it something like this -

 $element1
 $element2
 $element3
 $element4  $element5


 On Tue, Sep 30, 2008 at 7:38 PM, Rob Riggen [EMAIL PROTECTED] wrote:

 $element1-setOrder(10);
 $element2-setOrder(30);
 $element3-setOrder(20);
 $element4-setOrder(40);

 should order the elements like this on the form:

 $element1
 $element3
 $element2
 $element4


 On Tue, Sep 30, 2008 at 9:39 AM, Nilesh Govindrajan [EMAIL PROTECTED]wrote:

 Hi,

 I am new to Zend Framework.

 I would like to know how to change the positions of elements created
 using
 Zend_Form.

 I mean that how do I place two elements one near other instead of in a
 top-down manner ?



 *Robert Riggen* - Zend Certified Engineer
 *Big Yellow Technologies, LLC*

 Essex Junction, VT 05452
 802.578.6719
 [EMAIL PROTECTED]




 --
 Nilesh Govindrajan ([EMAIL PROTECTED])

 iTech7 Site and Server Administrator

 www.itech7.com



[fw-general] Zend_Db specify character set

2008-09-30 Thread Rob Riggen
Is there a way to force the character set on mysql db connections to UTF-8?

Thanks,

Rob

*Robert Riggen* - Zend Certified Engineer
*Big Yellow Technologies, LLC*

Essex Junction, VT 05452
802.578.6719
[EMAIL PROTECTED]


Re: [fw-general] Zend_Db specify character set

2008-09-30 Thread Rob Riggen
Surely you don't do that on every call?

I'm using Zend_Db_Table so I'm not necessarily writing queries - where
can/should this be done?

Thanks!

Rob

On Tue, Sep 30, 2008 at 5:04 PM, Bradley Holt [EMAIL PROTECTED]wrote:

 Hi Rob - I usually do this by issuing a 'SET NAMES UTF8' query.


 On Tue, Sep 30, 2008 at 4:59 PM, Rob Riggen [EMAIL PROTECTED] wrote:

 Is there a way to force the character set on mysql db connections to
 UTF-8?

 Thanks,

 Rob

 *Robert Riggen* - Zend Certified Engineer
 *Big Yellow Technologies, LLC*

 Essex Junction, VT 05452
 802.578.6719
 [EMAIL PROTECTED]




 --
 Bradley Holt
 [EMAIL PROTECTED]