title: Custom class and functions in Zend Framework
body: <p>i am developing a Rest Controller using Zend Framework and i have to use an external php class in one of my action methods of the controller. How can i add this class or access it from my controller action method?</p>
  
  <p>Do i need to write a custom library? </p>
  
  <p>In my controller action method, iam fetching the polygon information from the database. Now i have an external <a href="http://www.assemblysys.com/dataServices/php_pointinpolygon.php" rel="nofollow">php class</a> that can validate whether a point is inside the polygon. </p>
  
  <p>Googling on this issue, i found that we can write custom library classes for this sake. But iam unsure about this. So i want to know how can i include this external functionality in my controller action.
  Please guide.</p>