ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Load view/template into Plugin

September 17, 2011 12:39pm

Subscribe [1]
  • #1 / Sep 17, 2011 12:39pm

    rt30000

    125 posts

    I am developing a custom plugin for a site and I am having issues loading a template into the plugin. The template is a normal EE template, but when I try something such as

    $my_template = $this->EE->load->view('_includes/load_me_please', '', TRUE)
    I get
    Error
    
    Unable to load the requested file: _includes/load_me_please.php

    How can I override or load this template data into my plugin? I have seen references to changing “$this->EE->load->_ci_view_path” but the template is located (and should remain in) my default EE template directory not a third_party folder. Also, is there a CONSTANT for the current EE template directory? I did not notice one in the documentation. THANK YOU for any help you can lend.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases