Универсальная база знаний LMS Wisdom System Wisdom Tree MAIN My Profile

Back-End advanced issues

by #Alex Torrison

Parts / Составляющие / Child

DataBase many2many primary key

Many2Many primary key = id OR rel_id for easy manage

Full-stack Validation

In Front-End you can use https://jqueryvalidation.org/validate/ Also good tool is maked input: https://github.com/digitalBush/jquery.maskedinput In Back-End native: IF + $success, $message OR use Framework Validation Class

MVC Base Controller MUST HAVE

Base Controller Main Template

MVC head, footer views

view_head view view_footer

MVC SEO vars in Controller

$this->data['seo_title'] = $_SERVER['REQUEST_URI']; $this->data['seo_description'] = $_SERVER['REQUEST_URI']; $this->data['seo_keywords'] = $_SERVER['REQUEST_URI']; In Admin Mode you can add some vars to __construct() method

Similar naming

DataBase name = GET/POST name = $var_name

Этот объект часть других / Parent