barryf Posted October 11, 2013 Report Posted October 11, 2013 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 Quote
0 Tyson Posted October 11, 2013 Report Posted October 11, 2013 WidgetClient::setTabs() is not a valid method, and that's probably why you receive a blank page. You'll need to use WidgetClient::setLinks(). Quote
0 barryf Posted October 13, 2013 Author Report Posted October 13, 2013 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 Quote
Question
barryf
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:
Thanks
-Barry
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.