3
votes
Accepted
PHP Version compatibility issue with EE module
As error says, PHP 7 is only allow variables to passed by reference not an instance. You now need to remove that line and replace all $this->EE calls to ee(). That will work for you.
1
vote
Accepted
Settings for a module
For modules, you just go ahead and create your own DB table that stores your module settings. So just like you create your modules main table for storing data submitted from your form when you install ...
1
vote
Creating a button in module control panel to manually perform module action in EE 2
I suggest you to use below code in mcp file of your module folder.
url = BASE .'&'.'C=addons_modules'.'&'.'M=show_module_cp'.'&'.'module=MODULE_NAME'. '&' . 'method='.$method;
$this-&...
1
vote
PHP Version compatibility issue with EE module
Pretty sure you don't need this in a plugin `$this->EE =& get_instance();
ref https://docs.expressionengine.com/v2/development/plugins.html
1
vote
Accepted
Storing Single Option Value in Admin
Set up a Global Variable with the value you need. Then you can access the value from within a template simply by including the Global Variable name (within curly brackets) within your templates - e.g....
1
vote
Accepted
Unable to Access Add-ons Folder
This is a bug in 3.4.5. the solution is here. Click on the solution tab to see the necessary code change.
1
vote
Accepted
Return Variables to a Template
I had similar situation this week.
I've made two functions - one for the form template tag and second is action callback that works with form data.
In this manner I could output information with ee()...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
module × 209add-on-development × 49
add-on × 23
extension × 20
ee2 × 17
plugin × 15
control-panel × 14
templates × 10
forms × 10
php × 9
email × 8
channel × 7
ee3 × 7
hook × 7
expresso-store × 5
members × 5
database × 5
variable × 5
validation × 5
channel-entries × 4
stash × 4
safecracker × 4
pagination × 4
query × 4
php-errors × 4