I am trying to figure out what should I use to do development properly, I understand there are different ways to achieve the same result. Should I put reusable html code in a resources folder or a specified view folder?
views/default/resources/my_plugin/reusable_view.php vs views/default/my_plugin/reusable_view.php
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- ihayredinov@ihayredinov
ihayredinov - 1 like
- Alejandro@dveloper
Alejandro - 0 likes
You must log in to post replies.Resource views usually draw a page and call elgg_view_page(). You would use resource views in your page handler, calling elgg_view_resource(). As a general rule, you would only keep full page views in your resource views, everything else (partial views, components etc), should go elsewhere in the view directory.
Ismayil,
Thanks a lot for your explanation.