Jump to content

how to get admincontroller's fiels_form value?


Recommended Posts

hello world,

i'm trying to get the value of fields_form properity of the class admincontroller of a specific controller in another controller (after executing renderForm())

i overrided the class admincontroller like this:

<?php
class AdminController extends AdminControllerCore{
    public function getFIeldsForm(){
        $this->renderForm();
        return $this->fields_form;
    }
}

 

i'm wondering if this is the best way to do it?

 

ps: i'm using prestashop 1.7.5.2

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...