use foo\bar\User foo\bar\Admin foo\bar\Book, ...
<?php
namespace Backend\Models;
use Common\Model\Model as BaseModel;
class Pages extends Model {
protected $table = 'pages';
protected $key;
public function allPages() {
while(!$rows = parent::findAll()){
throw new \Exception('no articles');
and so on......</code-->
spl_autoload_extensions('.php');
spl_autoload_register();
chdir(dirname(__DIR__));
spl_autoload_extensions('.php');
spl_autoload_register();
Find more questions by tags PHP
Ship classes.
Or do you think that all illiterate and after adding the class you need to add or delete in index.php? - Clementina_Jacobs commented on July 8th 19 at 12:16