I'm manually passing 39 in upper URL to know how to work with parameters.
I want to display 39 in confirm.php but it's not working. As soon, i'm passing $id in actionConfirm($id) of SiteController Controller.
Page Not Found Error Coming. What can be the problem.
I just asked one question URL Routing, where i got my answer. But, now here i got stuck.
confirm.php
<?php
/* @var $this yii\web\View */
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\captcha\Captcha;
use yii\bootstrap\Modal;
use yii\helpers\Url;
$this->title = 'Contact';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="site-about">
<?echo $id;?>
</div>
SiteController.php
<?php
namespace app\controllers;
use Yii;
use yii\filters\AccessControl;
use yii\web\Controller;
use yii\filters\VerbFilter;
use yii\swiftmailer\Mailer;
use app\models\LoginForm;
use app\models\ContactForm;
use app\models\EntryForm;
use app\models\RegisterForm;
use app\models\LoginExecForm;
use app\models\ForgotPasswordForm;
class SiteController extends Controller
{
.
.
.
public function actionConfirm($id)
{
$id = Yii::$app->request->get('id');
return $this->render("confirm",array("id"=>$id));
}
}
Error Coming
How to bring 39 from URL to confirm.php page. Please help me. Forgive me, If this is a silly question.

<?echo $id;?>to ` <?php echo $id;?>`.$idfrom theactionConfirm($id), is the site working then? If not, your problem is not the passing of the param, but something different.