Jump to content

Get Value Of A Select Type Helper Form With Getvalue()


tovirio

Recommended Posts

I need to get the value of a select type:

 

renderForm(){

 

array(
     'type' => 'select',
     'label' => $this->l('Shop Category'),
     'name' => 'CategoryName',
     'options' => array(
            'query' => $query,
             'id' => 'id_feature',
             'name' => 'name'
            )
       ),

....

}

 

all works perfecly, now i want to get the value that user choose. I use this code:

 

getContent(){

 

   Tools::getValue('CategoryName');

 

}

 

 

This code return me nothing. How can i get the value that the user choose ? (the selected $query value)


 

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...