title: phalcon php include js according to there controller and action name
body: <p>I am using phalcon php framework for my application.
  This application is verry interactive using javascript verry often.</p>
  
  <p>Is there an class / service that also wil include the js controller according to there name, else if it's not found include the 'main' javascript file?</p>
  
  <p>For example I am requesting the url:
  <a href="http://www.mysite.com/search/keyword" rel="nofollow">http://www.mysite.com/search/keyword</a></p>
  
  <p>So phalcon will execute the searchController with the indexAction including the parameter.
  The data returned from the indexAction function will be passed to the views.</p>
  
  <p>The view will also include js/search/index.js</p>
  
  <p>(maybe additionally including a css file css/search/index.css!?)</p>
  
  <p>Is there a function for this type of hierarchy functionality for js?</p>