We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Urgent Assistance on Plugin

Development and Programming

Octoplus's avatar
Octoplus
2 posts
17 years ago
Octoplus's avatar Octoplus

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?

[email protected]

       
Robin Sowell's avatar
Robin Sowell
13,160 posts
17 years ago
Robin Sowell's avatar Robin Sowell

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;
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.