start >
pike >
Fins > DocController
DocController
Created by hww3. Last updated by hww3,
6 years ago. Version #1.
You must login to edit content.
in a DocController: note that if you have an event without a template, an error will not be thrown, but a view will not be set or provided.
in general: when using FinServe, an event that produces no output will return a "unable to find a handler" 404 error. The event will still fire, though.
DocController now sets a layout from the following locations, if present:
templates/layouts/path/to/controller.phtml
templates/layouts/application.phtml
A layout is the default "surroundings" of the view. think of a layout as an easy way to apply a header and footer to all pages in your application (or on a per-controller basis). If a layout is set and detected, you must reload to change the layout file name. templates detected and changed will be reloaded if the file content changes.
You can use the <%yield%> macro in your layout file to insert the template specified.
you may simply use Template.View->set_view() instead, in your own non DocController apps.
No comments
| | RSS Feed
| BackLinks