Jump to content
  • 0

Can't Get Widget Tabs Working On Client Portal


barryf

Question

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

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...