xNicox
(xNicox)
1
Hello
I’m migrating a Yii 1.1.x web app to php 7.4
I had a lot of menu entries like this in my app.
I allows me to submit an action to the controller
but know is not working anymore.
Is something relatod to:?
jQuery
php
Apache ?
array('label'=>Yii::t('app', 'Solicitar CAE') ,
'url'=>'#',
'visible' => $model->estado == 'L' and $model->importe > 0,
'linkOptions' =>
array('submit' => array('WSAA/SolicitarCAEFactura', 'cuota_id' => $model->id),
'confirm'=>$msg_cae,)
),
Best Regards!
evstevemd
(Stefano Mtangoo)
2
What HTML/JS does it produce? I don’t think it is a PHP upgrade issue. Did you upgrade Yii version also? If you did, check changelog!
xNicox
(xNicox)
3
thi is the widget
array('label'=>Yii::t('app', 'Imprimir Factura *') ,
'url'=>'#',
'visible' => $model->estado == 'F' and strlen($model->NroCAE) > 0,
'linkOptions' =>
array('submit' => array('cuota/PrintFactura', 'id' => $model->id),
'target' => '_blank',
'csrf' => true )
),
this html code for that button
<a target="_blank" href="#" id="yt0">Imprimir Factura *</a>
This is the js
jQuery('body').on('click','#yt0',function(){jQuery.yii.submitForm(this,'\x2Findex.php\x3Fr\x3Dcuota\x2FPrintFactura\x26id\x3D58160',{});return false;});
Maybe is jQuery?
evstevemd
(Stefano Mtangoo)
4
I would add to jQuery.yii.submitForm
function to see if it get called and what is actually passed