J
J
Johnny Show2018-05-31 08:47:27
PHP
Johnny Show, 2018-05-31 08:47:27

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]

In the routes file, I added the following route:
<?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

1 answer(s)
T
ThunderCat, 2018-05-31
@ThunderCat

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 question

Ask a Question

731 491 924 answers to any question