I am using phalcon php framework for my application.
This application is verry interactive using javascript verry often.
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?
For example I am requesting the url:
https://www.mysite.com/search/keyword
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.
The view will also include js/search/index.js
(maybe additionally including a css file css/search/index.css!?)
Is there a function for this type of hierarchy functionality for js?