I’m getting the error message “Error Unable to locate the model you have specified: public_forms_model” when i use the code below to load a model in a third party plugin.
$this->EE->load->model(PATH_THIRD . 'public_forms/models/public_forms_model');Here is the model.
<?php
class Public_forms_model extends CI_Model {
function Public_forms_model()
{
parent::CI_Model();
// LOAD LIBS, HELPERS
$this->EE->load->database();
}
function insert_basic()
{
$insert_data = array(
'home_form_basic' => $_POST['basic']
);
$this->EE->db->insert('home_form', $insert_data);
}
}
// END OF FILE ./SYSTEM/EXPRESSIONENGINE/THIRD_PARTY/PUBLIC_FORMS/MODELS/PUBLIC_FORMS_MODEL.PHPCheers for looking.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.