Jump to content
  • 0

Can't Get Widget Tabs Working On Client Portal


Question

Posted

Hi

 

I am trying to use tabs in a plugin widgit, but they just result in a blank page. If I change setTabs to setLinks it works fine.

No errors, although I can't seem to turn on error reporting in Blesta (any pointers on that?)

 

Am I doing something wrong or are tabs not allowed in the Client portal?

 

Here is the code:

$tabs = array(
        array('name'=>"Preferences", 'current'=>true, 'attributes'=>array('href'=>$this->base_uri . "widget/test/client_main/prefs/")),
        array('name'=>"Calls", 'attributes'=>array('href'=>$this->base_uri . "widget/test/client_main/calls/")),
        array('name'=>"Voicemail", 'attributes'=>array('href'=>$this->base_uri . "widget/test/client_main/voicemail/")),
        array('name'=>"Call Barring", 'attributes'=>array('href'=>$this->base_uri . "widget/test/client_main/barring/")),
        array('name'=>"Call Forward", 'attributes'=>array('href'=>$this->base_uri . "widget/test/client_main/forwards/")),
        array('name'=>"Reminder", 'attributes'=>array('href'=>$this->base_uri . "widget/test/client_main/reminder/"))
    );
$this->WidgetClient->clear();
$this->WidgetClient->setTabs($tabs);
$this->WidgetClient->create("Voice Settings", true);
?>
        <div class="pad">
            <div class="table_sec">
                <div class="inner">
                    <div class="empty_section">
                        <div class="empty_box">
                            Hello
                        </div>
                    </div>
                </div>
            </div>
        </div>
<?php
$this->WidgetClient->end();

 

 

Thanks

 

-Barry

 

2 answers to this question

Recommended Posts

  • 0
Posted

WidgetClient::setTabs() is not a valid method, and that's probably why you receive a blank page. You'll need to use WidgetClient::setLinks().

 

So setTabs is not valid in the Client area then?

 

The documentation states ""In all of the examples below simply replace Widget with WidgetClient if working in the client interface."  

 

Perhaps this should be updated. 

 

Thanks

 

-Barry

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...