Пример #1
0
 public static function getClass($name)
 {
     $str_class = "\\App\\Models\\" . ucfirst($name);
     $class = new $str_class(\App\Init::getDb());
     return $class;
 }
Пример #2
0
<?php
if(!class_exists('Dev'))
{
  include(dirname(__File__).'/../../../init.php');
  \App\Init::wp();
}
Dev::log("info","wp-config.php");
/**
 * The base configurations of the WordPress.
 *
 * This file has the following configurations: MySQL settings, Table Prefix,
 * Secret Keys, WordPress Language, and ABSPATH. You can find more information
 * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
 * wp-config.php} Codex page. You can get the MySQL settings from your web host.
 *
 * This file is used by the wp-config.php creation script during the
 * installation. You don't have to use the web site, you can just copy this file
 * to "wp-config.php" and fill in the values.
 *
 * @package WordPress
 */

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'database_name_here');

/** MySQL database username */
define('DB_USER', 'username_here');

/** MySQL database password */
define('DB_PASSWORD', 'password_here');