gormit
gormit

Reputation: 807

"document expired" with button submit on other action

I use CHtml::button with 'submit' on other action (without form), and it shows the page, but when i click BACK and then NEXT, it shows Document Expired

            <?php echo CHtml::button('title', array('submit' => array('/'.$_GET['id'].'/smthing/profile'))); //)?>

Upvotes: 0

Views: 452

Answers (1)

Sebastian Viereck
Sebastian Viereck

Reputation: 5925

try changing from POST to GET, example for active form:

 $form = $this->beginWidget('CActiveForm', array(
    'action' => '/',
    'method' => 'get',
    'enableClientValidation' => true,
    'clientOptions' => array(
        'validateOnSubmit' => true,
    ),
)); 
echo Chtml::submitButton('Submit');
$this->endWidget();

Upvotes: 0

Related Questions