I have started to develop a CMS that utilises the Phalcon framework for my latest project. I am trying to incorporate a shortcode parsing system so that the CMS users can simply enter [NAMEOFSHORTCODE] in the page editor to pull in some dynamic content. I figured that having saving the shortcode content in partials would be a good idea, however I am now wondering how I can include the partial from the controller. The current flow is: - Content is saved in database - On page load, the "PageController" scans the content for a shortcode - I now need to know how to "insert" the partial content in this position of the string.
I hope this is clear and that somebody out there is able to help me.
Thanks in advance.