Submit Button

Hi,

which will be the equivalent of this button:


<input type="submit" name="send" value="<?= Yii::t('main', 'Send') ?>">

I tried so:


<?php echo CHtml::submitButton(Yii::t('main', 'Send')); ?>

but does not work.

try this:


echo CHtml::submitButton(Yii::t('main', 'Send'), array('name' => 'send'));

Thx, but nothing changed (:

How do you expect people to help you when you don’t specify what is wrong? “It doesn’t work” is not the quality of information I’d expect from a developer.

Hello nicolae,

try:




<?php echo CHtml::submitButton(Yii::t('app','Send'), array('name' => 'send')); ?>



If this fail the error is not here, It’s before , probably one of these —> [().,;"’]

Lucky

I am a stundet, not a developer, and i am a newbie in Yii, but you are rigth, the problem si that is not displaing on the page when i use it, and the entire form dissapear

this worked, the problem was in this


Yii::t('main', 'Send')

, thank you very much (:

P.S next time i will explaine the problem with more details, sorry