I have a function that I want to write that should be using some of the existing plugins.
1. Where is the best place to create my own functions (almost like the helpers in CodeIgniter)
2. How to I use function from other plugins in my own function?
Hm- going to shift to ‘Plugin’ support. And- depends on what you’re doing- are you creating a plugin, module or extension? In any case- I’d just require the relevant class- then use the function like normal. Have never done that- but can’t see why it wouldn’t work.
I pulled this example from the weblog module:
if ( ! class_exists('Typography'))
{
require PATH_CORE.'core.typography'.EXT;
}
$this->TYPE = new Typography;
$this->TYPE->convert_curly = FALSE;
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.