4
votes
Accepted
Creating Custom Libraries In ExpressionEngine
Have you created all the necessary files for your add-on? I'm not sure EE will look for your library file in an empty add-on folder.
You need to make sure you have an addon.setup.php file at least, ...
3
votes
Accepted
Channel Entry Model Not Saving Custom Fields
You may be using the incorrect field name. You can't access it via its short name, it has to be by it's field_id. Here is an example of how I do something like this:
// these are usually set at the ...
1
vote
Accepted
Class Method Returning Array Tagdata
I believe key should be name of variable. so instead of 0..1..2 it should be and array. Also, parse_variables use for loop. I belive you have single item and loop for sub item (images), You should ...
1
vote
Passing Arguments To Class Method Using EE Template
I have found the answer to this.
In the template:
{exp:my_class:my_method asin='{product_asin}'}
In the class:
class My_class {
function my_method () {
$asin = ee()->TMPL->...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
custom-classes × 7templates × 2
php × 2
plugin × 2
classes × 2
channel-entries × 1
add-on × 1
add-on-development × 1
custom-fields × 1
tags × 1
gwcode-categories × 1
nested-list × 1