Re: [fw-general] Team Development

2010-08-06 Thread Jason Austin
We worked in the single-dev-server environment for a long time, but in the
last year have moved to our own local development stacks.  So far, that has
worked out a lot better and is far less error prone.

The biggest problem that we have had is just the minor nuances that come
with developing on an os-x lamp stack and deploying on a linux lamp stack,
but those are usually not a big issue.  We run Zend Server CE on the local
boxes and have found that to be very good as an all-in-one install.  Also it
forced our devs to be a little more familiar with apache configuration and
setup, so that was a learning challenge at first.

Hope that helps,
Jason

On Fri, Aug 6, 2010 at 11:22 AM, Paul z...@zooluserver.com wrote:

 I was wondering if anyone had some good resources on the topic of working
 on a project with a team of php developers.  In particular looking at the
 local setup for a developer.  Should each developer have their own LAMP
 instance (probably using a VM)?  Or is it better to have one centralized dev
 server, where each developer has their own user, and their local copies are
 on that machine, and they connect either through samba, ftp, etc.

 Surprisingly there is not much on team development, and instead on how one
 developer can setup their own development on their local machine.

 Being a freelancer for the past few years, and then previously working with
 a company who used their own proprietary language/environment, I would love
 to know how other php shops developing enterprise web application (using ZF
 of course :)) manage this.

 What are some guidelines, best practices, etc.  I am looking to the ZF
 community because I feel the standards here are high, and part of the point
 of ZF is how to build php projects the right way, or at least in way that
 helps promote best practices.  Just compare the code from Wordpress to ZF:)

 Cheers,
 Paul




-- 
Jason Austin
Senior Solutions Implementation Engineer
NCSU - OIT - Outreach Technology
jason_aus...@ncsu.edu


Re: [fw-general] Team Development

2010-08-06 Thread Jason Austin
svn:externals saved our butts on a lot of that.  We setup ZF as externals in
our projects so every time a new instance of the project is checked out, the
ZF library is local to the product in the htdocs folder.  I realize lots of
people like using a central ZF library, but keeping them as externals is the
best way to keep your application dependencies on ZF (and any other library)
in your repo.  We also support about 30 applications, so its not feasible
for all of those to use the same ZF library or all we would ever do is
update applications to use a new version of the framework.

- Jason

On Fri, Aug 6, 2010 at 2:14 PM, Paul z...@zooluserver.com wrote:

  Well Tortoise Subversion is just a svn client.  I have that all sorted.
 The issue is where are the local copies stored.  Centralized dev server or
 each developer local machine.  Wanted to see most organizations do, and some
 best practices.


 On 8/6/2010 1:51 PM, Deborah Dalcin wrote:

 Should also check out tortoise subversion.  It's not without it's problems,
 but it's a pretty solid tool.

 On Fri, Aug 6, 2010 at 12:18 PM, Paul z...@zooluserver.com wrote:

 We currently use PHING, I have heard of Apache Maven, will look into this.

 On 8/6/2010 12:00 PM, Hector Virgen wrote:

 Apache Maven




 --
 www.pseudoworlds.gibbserv.net/mms
 www.killk.gibbserv.net




-- 
Jason Austin
Senior Solutions Implementation Engineer
NCSU - OIT - Outreach Technology
jason_aus...@ncsu.edu


Re: [fw-general] change the class = navigation

2010-02-28 Thread Jason Austin
All you have to do is call the setUlClass() on the navigation object.

echo $this-navigation()-menu()-setUlClass('myclass');

- Jason

On Sun, Feb 28, 2010 at 8:10 AM, Jigal sanders jigalroe...@gmail.com wrote:
 Hello,

 When I create a navigation through zend navigation it outputs an ul with
 class = navigation.
 Is there a wauy to change this class name to anything i want?

 Thanks

 J.Sanders




-- 
Jason Austin
Senior Solutions Implementation Engineer
NCSU - OIT - Outreach Technology
jason_aus...@ncsu.edu


Re: [fw-general] user registration login pattern library for Zend

2010-02-24 Thread Jason Austin
We did something like this and have open sourced it.  There is very
little documentation, and YMMV, but it does offer a whole bunch of the
things that we ended up writing over and over and over again.

http://ot.ncsu.edu:12006/projects/otframework

There is the project page.  The svn repo can be found at
https://svn.unity.ncsu.edu/svn/otframework

Maybe that at least gets you headed in the right direction.  It is
flexible enough that we have used it on about 15 different projects so
far.

- Jason

On Wed, Feb 24, 2010 at 8:08 AM, gelform co...@gelform.com wrote:

 I've now built a handful of Zend web apps, all requiring users to register,
 verify their email, login, logout, etc. Having repeated myself a few times,
 but worked out the kinks to my liking, my thought is to now make all of
 these into a library for future web apps I build.

 But before I do...

 Does something like this exist? Are there existing libraries built on Zend
 for common patterns?

 Thanks,

 Corey
 --
 View this message in context: 
 http://n4.nabble.com/user-registration-login-pattern-library-for-Zend-tp1567433p1567433.html
 Sent from the Zend Framework mailing list archive at Nabble.com.




-- 
Jason Austin
Senior Solutions Implementation Engineer
NCSU - OIT - Outreach Technology
jason_aus...@ncsu.edu


Re: [fw-general] the reference guide is really getting on my nerves

2010-02-16 Thread Jason Austin
I, too, am experiencing similar issues on ff3.6 on osx.  It seems to
have only happened since the commenting system was put into place, if
that helps.  It wasn't just a blank page for me either.  Once I did
get something to load, it was incredibly slow.

- Jason

On Mon, Feb 15, 2010 at 6:55 PM, Mark Wright sparkymeis...@gmail.com wrote:
 I emptied my cache so it no longer happens with every page, but it
 still happens about a quarter of the time. I am using ff 3.6 on osx
 10.6.2. There is nothing special about my browser settings.



 Mark

 On Mon, Feb 15, 2010 at 9:15 AM, Matthew Weier O'Phinney
 matt...@zend.com wrote:
 -- Mark Wright sparkymeis...@gmail.com wrote
 (on Friday, 12 February 2010, 02:39 PM -0700):
 Every time I go to a page in the reference guide that I have not
 already been to I just get a blank page. Sometimes it happens even if
 I have already been to that page, like when hitting the back button. I
 know that a reload will fix it (sometimes it takes two or three
 reloads), but why on earth do have have to do that with every single
 page?

 Are you still experiencing this? If so, what browser and operating
 system are you using, so we can try and reproduce the issue?

 I have personally tried FF 3.5 and Chrome 4 on Linux with no problems;
 I'd try Windows, but my current network setup prevents my WinXP vm from
 reaching the outside world.

 --
 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




 --
 Have fun or die trying - but try not to actually die.




-- 
Jason Austin
Senior Solutions Implementation Engineer
NCSU - OIT - Outreach Technology
jason_aus...@ncsu.edu


Re: [fw-general] Adding a # to a URL using gotoRoute

2009-12-11 Thread Jason Austin
I've added an improvement request to Zend_Controller for this.

http://framework.zend.com/issues/browse/ZF-8522



On Thu, Dec 10, 2009 at 8:34 PM, Hector Virgen djvir...@gmail.com wrote:
 The name attribute is deprecated in XHTML, in favor of the id attribute
 (which behaves like the old name attribute did).

 --
 Hector


 On Thu, Dec 10, 2009 at 5:17 PM, Cameron themsel...@gmail.com wrote:

 isn't the use of named anchors deprecated?

 On Fri, Dec 11, 2009 at 7:23 AM, Daniel Latter dan.lat...@gmail.com
 wrote:

 +1

 On 10 Dec 2009, at 22:54, takeshin admi...@gmail.com wrote:




 Jason Austin wrote:


 Hope this helps.  I smell a feature request for adding hashes to
 routes  url helpers :)



 +1

 --
 takeshin

 --
 View this message in context:
 http://n4.nabble.com/Adding-a-to-a-URL-using-gotoRoute-tp957210p960642.html
 Sent from the Zend Framework mailing list archive at Nabble.com.






-- 
Jason Austin
Senior Solutions Implementation Engineer
NCSU - OIT - Outreach Technology
jason_aus...@ncsu.edu


[fw-general] Adding a # to a URL using gotoRoute

2009-12-10 Thread Jason Austin
I am trying to use the redirector action helper to call gotoRoute.
The page I need to go to is something like
http://mywebsite.com/blog/documentation/tags/#add which would take me
to the add anchor in the tags page.  To go to that URL, my code is:

$this-_helper-redirector-gotoRoute(array('module' = 'blog',
'controller' = 'documentation', 'action' = 'tags'));

That takes me to http://mywebsite.com/blog/documentation/tags/ but I
need to add #add to the end of that.  Any idea how one would
accomplish that?

Thanks
Jason

-- 
Jason Austin
Senior Solutions Implementation Engineer
NCSU - OIT - Outreach Technology
jason_aus...@ncsu.edu


Re: [fw-general] Adding a # to a URL using gotoRoute

2009-12-10 Thread Jason Austin
Thanks guys.  The most straight forward way was using the URL helper,
adding the hash to the end of the URL, then using gotoUrl().  One
caveat was that I had to do the following to not get the baseUrl() to
be added twice:

$this-_helper-redirector-setPrependBase('')-gotoUrl($this-_helper-url-url(array(..options...),
'default', true) . '#hash');

If you don't setPrependBase to '' in the redirector you will get
something like http://mywebsite.com/subdir/subdir/module/... instead
of http://mywebsite.com/subdir/module/...

Hope this helps.  I smell a feature request for adding hashes to
routes  url helpers :)

Thanks!
Jason

On Thu, Dec 10, 2009 at 1:09 PM, Hector Virgen djvir...@gmail.com wrote:
 It should be possible to extend the redirector helper to create your own
 that accepts a hash as the 5th parameter. Since the action helper broker
 uses a LIFO stack, you can even use the same helper name redirector.

 --
 Hector


 On Thu, Dec 10, 2009 at 10:06 AM, Fred Jiles fredji...@gmail.com wrote:

 Maybe one could add a target to the gotoRoute method in the future.  I
 can't believe that people don't need to do something like this often.
 Similar to
 $url = $this-_helper-url-url(array('module' = 'blog',
 'controller' = 'documentation', 'action' = 'tags', 'anchor'
 ='comments'));


 On Thu, Dec 10, 2009 at 1:02 PM, Hector Virgen djvir...@gmail.com wrote:

 The gotoRoute() method doesn't support hashes, but you can accomplish
 this by using the url action helper to construct the url based on your
 route, and then concatenate your hash to it. Then call the redirector's
 gotoUrl method:
 $url = $this-_helper-url-url(array('module' = 'blog',
 'controller' = 'documentation', 'action' = 'tags'));
 $url .= #add;
 $this-_helper-redirector-gotoUrl($url);
 --
 Hector


 On Wed, Dec 9, 2009 at 1:51 PM, Jason Austin jason_aus...@ncsu.edu
 wrote:

 I am trying to use the redirector action helper to call gotoRoute.
 The page I need to go to is something like
 http://mywebsite.com/blog/documentation/tags/#add which would take me
 to the add anchor in the tags page.  To go to that URL, my code is:

 $this-_helper-redirector-gotoRoute(array('module' = 'blog',
 'controller' = 'documentation', 'action' = 'tags'));

 That takes me to http://mywebsite.com/blog/documentation/tags/ but I
 need to add #add to the end of that.  Any idea how one would
 accomplish that?

 Thanks
 Jason

 --
 Jason Austin
 Senior Solutions Implementation Engineer
 NCSU - OIT - Outreach Technology
 jason_aus...@ncsu.edu







-- 
Jason Austin
Senior Solutions Implementation Engineer
NCSU - OIT - Outreach Technology
jason_aus...@ncsu.edu


Re: [fw-general] Routers and Zend_Application

2009-05-05 Thread Jason Austin
I figured it out.  Instead of setting $pathRoute to 
Zend_Controller_Router_Route_Static(''), I set it to 
Zend_Controller_Router_Route_Module(), then removed the default routes 
from Zend_Controller_Router_Rewrite().  I hope this is the right way 
to do this...


- Jason

Jason Austin wrote:
I'm trying to retrofit an existing ZF app that was done 
pre-Zend_Application and am having trouble getting my custom routers 
to work.


Right now, I have my bootstrap setup and an _initRoutes() method as 
follows:


/** **/
protected function _initRoutes() {

   $router = new Zend_Controller_Router_Rewrite();
 $pathRoute = new Zend_Controller_Router_Route_Static('');
   $hostname = new 
Zend_Controller_Router_Route_Hostname(':var.mydomain.com');

 $router-addRoute('hostname', $hostname-chain($pathRoute));
 Zend_Controller_Front::getInstance()-setRouter($router);
}


However, the app is never running through the router, and :var doesn't 
get set in the params.  Is there some different way of setting the 
router with Zend_Application?


Any help is much appreciated,
Jason





--
Jason Austin
Senior Solutions Implementation Engineer
NC State University - Office of Information Technology
http://webapps.ncsu.edu
919.513-4372
Twitter:  http://twitter.com/jason_austin



[fw-general] Zend_Soap and Oauth?

2009-04-17 Thread Jason Austin
Anyone out there implemented a Zend_Soap server with OAuth support 
enabled?  I have our REST API with Zend_Rest_Server working perfectly in 
OAuth world, but am having major issues getting SOAP to cooperate.  Any 
help would be greatly appreciated.


Thanks

--
Jason Austin
Senior Solutions Implementation Engineer
NC State University - Office of Information Technology
http://webapps.ncsu.edu
919.513-4372



[fw-general] Converting Smarty to Zend_View

2009-02-12 Thread Jason Austin
Anyone got a resource/script/whatever around that can convert smarty 
syntax to Zend_View syntax?  We are moving away from Smarty and the 
conversions are a pain.  Just wondering if anyone else has done this and 
has some code they wouldn't mind sharing.


Thanks!
Jason

--
Jason Austin
Senior Solutions Implementation Engineer
NC State University - Office of Information Technology
http://webapps.ncsu.edu
919.513-4372



Re: [fw-general] Delete all the rows of a table

2009-02-12 Thread Jason Austin

$where = '1=1';

$object-delete($where);

- Jason

debussy007 wrote:

Anyone ?


debussy007 wrote:
  

Hi,

I'm using Zend_Db_Table_Abstract.
I need to delete all the rows of my table, I know there is a -delete()
function but it asks a where condition.

How can I delete all the rows ?

Thank you.




  


--
Jason Austin
Senior Solutions Implementation Engineer
NC State University - Office of Information Technology
http://webapps.ncsu.edu
919.513-4372



[fw-general] Overwriting a default view helper

2009-01-14 Thread Jason Austin
I am using the Zend_View_Helper_Translate for i18n integration into a 
project and have a need to overwrite it's default functionality for 
translate().  For consistency sake, I'd rather not create a new helper 
like My_View_Helper_Translator because I would have to change all the 
translate() calls in my views to translator().  When I create a 
My_View_Helper_Translate it will ignore my helper in favor of the 
default one.  Any idea how to make the view helper use my translate 
helper as opposed to the default one?


Thanks for the help

- Jason

--
Jason Austin
Senior Solutions Implementation Engineer
NC State University - Office of Information Technology
http://webapps.ncsu.edu
919.513-4372



[fw-general] Zend_Db_Table_Rowset seek() question

2008-11-06 Thread Jason Austin
I have a need to paginate some simple results, which I need the count of 
the entire rowset, and then rows from a particular offset.  I don't 
really want to execute 2 queries, so I was thinking of using the seek() 
method of my result set to put the pointer to the required offset, 
however when I loop through the results it starts over at the beginning 
of the result set:


?php

$rows = $model-fetchAll($where, $order);

$rows-seek($page * $resultsPerPage);

echo $rows-current()-id  // echoes correct seek() offset ID

foreach ($rows as $r) {  // starts over at the beginning of the rowset
   // add to result set
}

?

Is this the expected behavior or am I missing something totally 
obvious?  This is with version 1.6.1.  Should I just do 2 queries (a 
query to get the required rows, then a count query without qualifier)?


Thanks!
Jason

--
Jason Austin
Senior Solutions Implementation Engineer
NC State University - Office of Information Technology
http://webapps.ncsu.edu
919.513-4372



Re: [fw-general] Is ZF Teem planned official user plugin repository?

2008-09-25 Thread Jason Austin
Count me in as a vote for doing this.  It would be great to provide that 
type of resource to users.


- Jason

Matthew Weier O'Phinney wrote:

-- mezoni [EMAIL PROTECTED] wrote
(on Thursday, 25 September 2008, 09:13 AM -0700):
  

Is ZF Teem planned official user plugin repository?



Not currently; we've been kicking the idea around for a while, though.

  


--
Jason Austin
Senior Solutions Implementation Engineer
NC State University - Office of Information Technology
http://webapps.ncsu.edu
919.513-4372



[fw-general] Zend_Date::__toString throwing exception

2008-02-06 Thread Jason Austin

Howdy list...

I am having an issue where Zend_Date::__toString is causing an exception 
where it shouldn't be.  The error I get is


Fatal error: Method Zend_Date::__toString() must not throw an exception 
in /my/file/path on line 54


This has just started happening since upgrading our webserver to apache 
2.2 with php 5.2.5 and is not consistent (we're using 1.0.3 of the 
framework).  It only happens once in a while. 

After a bit of searching I found this article 
(http://framework.zend.com/wiki/display/ZFDEV/6.+Anonymous+Sessions) 
that mentions at the end that it may be xpath related, occuring when 
Zend_Local_Data reads the data file in a wrong way.  However, it doesn't 
mention how to solve it.  Anyone got any ideas?


Thanks
Jason Austin
NC State University