Cablando Posted March 9, 2019 Share Posted March 9, 2019 Hello, I'm trying to create the form page for the add button in the toolbar of my AdminModuleController, but when I click to add the page is always empty. I tried putting my form.tpl in various locations in my modules folder without luck. I tried modules/*mymodule*/views/templates/admin/*controllername*/helpers/form/form.tpl, and also the usual _configure or override folders (even the main PS one). I also tried different file names (taken from the dump() of $this in my controller) like content.tpl, add.tpl, etc. The page is always blank. Did something change in 1.7 or what I'm missing? I just want to create my own form to add items in my AdminModuleController from the toolbar (I could always just set different template in init checking for submit values, but is not the correct way of doing it). Link to comment Share on other sites More sharing options...
Cablando Posted March 9, 2019 Author Share Posted March 9, 2019 Nevermind. I just had to declare renderForm() to use it in the $this->display = 'add'. 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