url: "../../app/router/routes.php",
Router::page("/register",'register',\app\controllers\UsersController::class,"index_register");
public function index_register()
{
$this->view->generate("register.php");
$Model = new UsersModel();
$da = $Model->sign($_POST,$_FILES);
var_dump($da);
}
Fatal error</b>: Uncaught Error: Class 'app\Services\Router' not found in F:\OSPanel\domains\AuthOOP\app\router\routes.php:5
<b>Fatal error</b>: Uncaught Error: Class 'app\controllers\UsersController' not found in F:\OSPanel\domains\AuthOOP\app\controllers\UsersController.php:11
Stack trace:
#0 F:\OSPanel\domains\AuthOOP\vendor\composer\ClassLoader.php(571): include()
#1 F:\OSPanel\domains\AuthOOP\vendor\composer\ClassLoader.php(428): Composer\Autoload\includeFile('F:\\OSPanel\\doma...')
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass('app\\controllers...')
#3 F:\OSPanel\domains\AuthOOP\app\controllers\UsersController.php(11): spl_autoload_call('app\\controllers...')
#4 {main}
thrown in <b>F:\OSPanel\domains\AuthOOP\app\controllers\UsersController.php</b> on line <b>11</b><br />
{
"autoload": {
"psr-4":{
"app\\": "app/"
}
}
}
namespace app\Models;
use app\Models\UsersModel;
$objs = new UsersModel();
$objs->sign($_POST,$_FILES);
<tr id="trid">
<td>
1
</td>
<td id="topicname" >Название только созданного поста.</td>
<td>admin</td>
<td>
<a href="../../admin/posts/edit.php?edit_id=38 ">edit</a>
</td>
<td>
<a id="deleteTop" onclick="event.preventDefault();deletePosts(38)" href="">delete</a>
</td>
</tr>
<tbody id="table" >
// сюда я вставлял уже содержимое таблицы с помощью ajax
var html = msg;
$('#table').html(html); )
</tbody>