Download |
Bug Tracking |
Source |
Documentation |
Forum |
Latest Changes |
Home
If you have read the introduction, you know that Pluf is a MVT framework aka. Model, View, Template framework. People use to talk about MVC framework or Model, View, Controller. The fact is, I never understood where the controller is in those frameworks, the closest thing to a controller I can find in Pluf is the dispatch loop.
The dispatch loop is the framework logic to handle the user agent request, find the corresponding view based on the URL definition and returns the response to the user agent.
We could name it controller in the sens that it is controlling which view is called based on the requested URL. But, anyway, this is just plumbing and you do not care about it when using Pluf.
Pluf has one of the fastest dispatch loop so here is the dispatch loop sequence:
middleware_classes configuration variable.process_request method, process the request. If the process_request method returns a response object, skip steps 4, 5 and 6.process_response method, process the response.The code of the dispatcher is really simple, just take a look at it.
Report issues in the documentation
If you find errors or issues in the documentation, report a bug. We will update the documentation accordingly.
Pluf © 2005-2008 Loïc d'Anterroches, supported by Céondo Ltd.