php - Yii CHtml::ajaxSubmitButton always submits data in POST method -


When I used the CFTL :: AjaxSubmit button, I came to this problem, some data was found in the form of the GET method To deposit in No matter what I try, it always submits data as a POST method.

Can anything go wrong? Here's my code.

  Echo CHtml :: Startup (array ('ShoppingCart / Ed Itam', 'GET')); Echo CHtml :: textField ('qty', 1, array ('size' => 3); Echo CHtml :: hidden field ('product_id', $ model-> product_id); AnchoCOMTL :: AjaxSubmitButton ('Submit', array ('Shopping Cart / Ed Itam'), array ('type' = & gt; 'GET', // 'data' => (array)), ); Echo CHtml :: endForm ();    

It is designed according to you instead of CHtml :: ajaxbutton :

  CHtml :: Ajax Button ('My label', 'Controller / verb', array ('type' = & gt; 'GET',), array ('Type' = & gt; 'submit',);    

Comments

Popular posts from this blog

python - Writing Greek in matplotlib labels, titles -

c# - LINQ to Entities does not recognize the method 'Int32 IndexOf(System.String, System.StringComparison)' method -

Pygame memory leak with transform.flip -