Welcome Guest, Not a member yet? Register   Sign In
Not showing header and footer via $template
#1

[eluser]jzmwebdevelopement[/eluser]
Is there anything that I can append to the function below so that it will just show the View: admin_product_details. The only reason that I am using $this->template is that I need to append
Code:
append_metadata($this->load->view('fragments/wysiwyg', array(), TRUE))

Code:
public function ajax_product_get_details($product_id = NULL)


    if(isset($_POST['id']))
    {
        $product_id = $_POST['id'];
    }

    $table = SITE_REF.'_ps_products';
    $data['product_details'] = $this->Ps_products_model->table_get_row($table, $product_id);
    $data['assoc_categories'] = $this->Ps_products_model->product_get_x_categories($product_id);
    $data['parent_categories'] = $this->Ps_products_model->categories_get_parent_list();
    $data['folders'] = $this->file_folders_m->get_folders();
    $table_man = SITE_REF.'_ps_products_manufacturers';
    $data['manufacturers'] = $this->Ps_products_model->table_get_all($table_man, 'name', 'asc');

    $this->template
        ->title($this->module_details['name'])
        ->append_metadata($this->load->view('fragments/wysiwyg', array(), TRUE))
        ->build('admin/ajax/admin_product_details', $data);

}




Theme © iAndrew 2016 - Forum software by © MyBB