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

Plugin not picked up in EE3

How Do I?

Roscoe's avatar
Roscoe
9 posts
8 years ago
Roscoe's avatar Roscoe

Hi,

I am trying to create a simple plugin, however EE is not picking it up so I cannot enable it.

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Age_gate
{
  public static $name         = 'Age Gate';
  public static $version      = '1.0';
  public static $author       = 'Me';
  public static $author_url   = 'http://example.com/';
  public static $description  = 'Makes people verify their age.';
  public static $typography   = FALSE;


    public $return_data = "";

    public function __construct()
    {
        $this->return_data = "Hello World";
    }
}

/* End of file pi.plugin_name.php */
/* Location: ./system/user/addons/age_gate/pi.age_gate.php */
       
Pedro Guimaraes's avatar
Pedro Guimaraes
170 posts
8 years ago
Pedro Guimaraes's avatar Pedro Guimaraes

You also need an addon.setup.php file with EE3. Here’s the addon.setup.php documentation

       

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.