Welcome Guest, Not a member yet? Register   Sign In
BackendPro 0.6.1

[eluser]shinokada[/eluser]
I have a plugin in system/application/plugins/myplugin.
I want to load this plugin in modules/pages/controller/admin.

How do I load the file?

Thanks in advance.

[eluser]adamp1[/eluser]
Please go read the CI manual fully, then please go read the BackendPro manual fully.

BackendPro is built on CI, it uses all the same principles and design ideas. I don't mind answering a few questions but you have been asking a lot of very basic questions which would be answered if you read the manual.

[eluser]shinokada[/eluser]
Speechless. :-(

[eluser]daniel9201[/eluser]
Has anyone successfully installed install BackendPro using a postgres database instead of MySQL?

[eluser]shinokada[/eluser]
Ok, I have read the manual. And I have a question. I hope someone will reply.

I have extended Site_Controll as following.

Code:
class Shop_Controller extends Site_Controller
{
    function Shop_Controller()
    {
        parent::Site_Controller();

        // Set container variable
        $this->_container = $this->config->item('backendpro_template_shop') . "container.php";

        // Set public meta tags
        //$this->bep_site->set_metatag('name','content',TRUE/FALSE);

        // Load the PUBLIC asset group
        $this->bep_assets->load_asset_group('SHOP');
        
        log_message('debug','BackendPro : Shop_Controller class loaded');
...
...

Now it works fine except when I use the following.

Code:
...
...
        $data['page'] = $this->config->item('backendpro_template_shop') . 'frontpage';
    $data['module'] = 'mymodule';
    $this->load->view($this->_container,$data);

The problem is that I need to put frontpage.php in system/application/views/shop/frontpage.php.

According to the manual it should be modules/mymodule/view/shop/frontpage.php

Yes, I have added in MY_Controller.php as follows.
Code:
...
include_once("Admin_controller.php");
include_once("Public_controller.php");
include_once("Shop_controller.php");

Yes, I have added in system/application/config/backendpro.php as follows.
Code:
...
$config['backendpro_template_dir'] = "";
$config['backendpro_template_public'] = $config['backendpro_template_dir'] . "public/";
$config['backendpro_template_admin'] = $config['backendpro_template_dir'] . "admin/";
$config['backendpro_template_shop'] = $config['backendpro_template_dir'] . "shop/";

Thanks in advance.

[eluser]adamp1[/eluser]
Can I ask what the value of $this->config->item('backendpro_template_shop') is? I take its just shop/.

EDIT: Sorry never mind didn't read the bottom bit.

[eluser]adamp1[/eluser]
One other silly quick question. I take it the file modules/mymodule/view/shop/frontpage.php, exists?

[eluser]shinokada[/eluser]
Thank you for your reply. Yes it does.

[eluser]shinokada[/eluser]
It is working now.

I changed from
Code:
<?php $this->load->view($page); ?>
to
Code:
<?php print displayStatus();?>
    <?php print (isset($content)) ? $content : NULL; ?>
    <?php
    if( isset($page)){
    if( isset($module)){
            $this->load->module_view($module,$page);
        } else {
            $this->load->view($page);
        }}
    ?>

[eluser]Référencement Google[/eluser]
Hey Adam, any chance to get latest sources from a SVN server or GIT ?




Theme © iAndrew 2016 - Forum software by © MyBB