Adding print_r($this->_metas) to line 368 and remove Yii::app() -> clientScript -> registerScript("test", "test.js"); from the action just gives me an empty array and the page fails to die.
Still having issues with it, here is my entire code:
Controller
<?php
/**
* Register Controller
*/
class RegisterController extends CController {
/**
* Actions overide function
* @return array actions
*/
public function actions() {
return array(
'index' => 'application.controllers.actions.register.IndexAction',
'confirm' => 'application.controllers.actions.register.ConfirmAction',
);
}
}
Confirm Action
<?php
/**
* Register controller confirm action
*/
class ConfirmAction extends CAction {
/**
* Run action
*/
public function run() {
Yii::app() -> clientScript -> registerMetaTag('10', null, 'refresh', array('url' => 'index/'));
// Yii::app() -> clientScript -> registerScript("test", "test.js"); // Works with this un comented
$this -> controller -> render('confirm');
}
}
Confirm View
<h2>Thank you for registering your new account.</h2>
<p>An email confirm your account creation will be sent to you.</p>
<p>You will need to activate your account by clicking the activation link contained within the email.</p>
<p>If your account is not activated within 30 days it will be removed from our system.</p>
<p>Thank you for registering.</p>