During the course of developing custom applications within the concrete5 content management system, you will likely find yourself having to perform certain tasks multiple times. Tasks such as creating custom forms, sending e-mails, or parsing RSS feeds can all be sped up by utilizing the Core helper classes included with concrete5.
The concept of helpers in concrete5 might be familiar to developers who have previously worked with other popular MVC frameworks. Helpers are classes that provide miscellaneous, repeatable functionalities that can be used anywhere in your code. We will begin by showing how to load a helper class.
As we've done in a few prior chapters, we will be making use of the /config/site_post.php
file to run some arbitrary code. concrete5 doesn't have a great place to try out the API, so we will use site_post
as our playground. Be sure to empty any experimental code before starting a new recipe, and perform all of these lessons...