On Tue, Feb 4, 2014 at 9:56 AM, dennis-fedco dmatve...@fedco-usa.com wrote:
In exploring various options for sign in I found this:
https://github.com/googleplus/gplus-quickstart-php
In particular, signin.php
https://github.com/googleplus/gplus-quickstart-php/blob/master/signin.php
script is not object oriented (aka not a class itself), but actually creates
and runs a Silex app from a procedural script.
Question: what are/are there any best practices on ZF2-ing existing non-ZF2
non-OO code into ZF2?
As it stands now, to me, if I were to incorporate the code into my ZF2 app,
I'd probably want to spend some time thinking exactly how and where I want
to trigger it, and how I can turn it into a module. And then create a ZF2
module. Is that the route you would go?
Within your controllers, modules, event listeners, etc... you can call
any code you want. If you have procedural code that already exists in
libraries, just call it!
--
Matthew Weier O'Phinney
Project Lead| matt...@zend.com
Zend Framework | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc
--
List: fw-general@lists.zend.com
Info: http://framework.zend.com/archives
Unsubscribe: fw-general-unsubscr...@lists.zend.com