emosolo Posted June 1, 2016 Share Posted June 1, 2016 Hi, I am building an admin only module and would like two include two panels. To create the panels, I have the following code which i have created in my configuration.tpl file. <div id="TabbedPanels1" class="TabbedPanels"> <ul class="TabbedPanelsTabGroup"> <li class="TabbedPanelsTab" tabindex="0">Configuration</li> <li class="TabbedPanelsTab" tabindex="0">Printer</li> </ul> <div class="TabbedPanelsContentGroup"> <div class="TabbedPanelsContent">I want to generate the configuration form here</div> <div class="TabbedPanelsContent">Bunch of print code will come here later</div> </div> </div> I would like to render "Settings" in the first tab but cannot seem to find a way to reference the form in the module.php file and so get a blank output when i try and include php into the tpl via <?php return $output.$this->renderForm(); ?> Any help would be much appreciated. Link to comment Share on other sites More sharing options...
emosolo Posted June 7, 2016 Author Share Posted June 7, 2016 I have since built a separate .php file that only has the form content in it. I have then created a public function which returns the php file, however no content is shown. I know the call to the php works because i wrote a test php file and it does display the result okay. I clearly don't understand the form generation and I have been at this for a week. Any assistance or even a pointer or explanation would be appreciated. Thx. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now