ModelsΒΆ

Models are Erlang modules which are the main accessor for retrieving data in a template. Models are Erlang modules which are prefixed with m_; in the templates they are accessible using m. For instance, the model to access resources is called m_rsc.erl; in the template this model lets you access resources by id as {{ m.rsc[id] }}.

Below is the list of all models that are available in Zotonic.

Previous topic

yesno

Next topic

m_acl

Versions

Actions