Answer the question
In order to leave comments, you need to log in
How to create a CNC?
Can you help in creating CNC from this link?
I created an email verification during registration, but the trouble is with the routes.
Created a separate controller (ActivationaController) and action (actionActivation).
Registered in htaccess:
AddDefaultCharset utf-8
Options +FollowSymLinks
#включаем mod_rewrite
RewriteEngine on
RewriteBase /
# Запрет выдачи листинга пустого каталога
Options -Indexes
# При обращении к каталогу открывается файл index.php
DirectoryIndex index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z]+)/([a-z0-9]+)/$ /?login=$1&act=$2&%{QUERY_STRING} [NS,L]
RewriteRule ^(.*)$ index.php [L,QSA]
<?php
return array(
// Главная страница
'activation/([a-z]+)/act/([a-z0-9]+)' => 'activation/$1/index/$2', // actionIndex в ActivationController
);
?>
Answer the question
In order to leave comments, you need to log in
What kind of framework do you specify, otherwise the routing is routed by each in its own way ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question