ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Need a viable way to use functions within my sites

February 05, 2012 6:46pm

Subscribe [1]
  • #1 / Feb 05, 2012 6:46pm

    adrake9

    57 posts

    Ok, so i’m looking for some insight best practices for using functions and php on my expressionengine sites. At the moment I can load a my_functions.php file into the current template using the full server path and gain access to those functions. These are specific helper functions that I use that are specific to the project solution and sometimes the client. Maybe 8-10 small-med functions is all.

    So my question is, What is the best way to do this. Should I be creating a plugin to handle these functions and process information between tags like the following:

    {exp:my_functions:function1}
      ...info to process
    {/exp:my_functions:function1}
    {exp:my_functions:function2}
      ... more info to process
    {/exp:my_functions:function2}

    How are other people accomplishing this?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases