In the infrastructure of Kohana 3.1.x.
What are the benefits of sending data with internal queries like
$post = Request::factory('module/data')
->method(Request::POST)
->post(array('some' => 'random data'))
->execute()
->response;
if you can just send data like this
Module::instance()->data(array('some' => 'random data'));
In this example Module, a random module, and datasome random method.
I will call it Modulethrough ajax and internal requests. I plan to develop a RESTful API.
QUESTION: Why use HMVC instead of directly using the internal class API
source
share