define('APP_DBHOST', 'localhost'); define('APP_DBNAME', 'test'); define('APP_DBUSER', 'dev'); define('APP_DBPASS', '123456'); define('DB_TIME_ZONE', '0'); define('SLOW_QUERY_TIME', 1); // s define('MAX_LENGTH_PER_PARAM', 100); /** * Cache settings */ define('CACHE_ENABLED', 'yes'); define('MEMCACHE_HOST', 'localhost'); define('MEMCACHE_PORT', '11211'); define('CACHE_PREFIX', 'sefm_'); define('APP_CACHE', 'sefm_'); /** * Log */ define('LOG', 'yes'); define('APP_LOGS', 'logs/'); use SSGonchar\FastModel\SEMail\Email; if (array_key_exists('user', $_SESSION)) { } $_SESSION = array('user' => array('id' => '4', 'login' => 'SSGonchar', 'role_id' => ROLE_GUEST)); \SSGonchar\FastModel\SEModel\Model::setSession($_SESSION); /** @var \SSGonchar\FastModel\SEModel\Model $model */ $email = new Email('emails'); var_dump($email); var_dump($email->getList()); var_dump($email->get(3));
/** * */ public function __construct() { parent::__construct('emails'); }