Forms of commentary
php
1 .The core is located in vendor/ishop/core.[ Theand a. Route: CMS is performed in such a way that the type of Route divides the line of request with the help of regularnych expressed into two parts in the first page of request in the second Get parameters.Where the request is shared with Controller and Action is adjusted the names in SamelCase and prefix are added.In Action name by silence "index".Vyзывается object of controller and starts Action task or by silence.Controller: Connects Route and View.Formulating the metaphor;
c. View: Connects the template.It connects the view, buffer data and places it in the variable $content.Creates HTML code for meta-data
d. Model:We place attributes, validation rules,SMS on errors.We store, link, update the tables in the BD, validate the data.This is about the core classes.The 2ndConfig (Basic Settings of the Website)3 .I used swiftmailer - a plugin for sending letters.and 4.SMTP host is ukr.net. Login, password view in (config/params.php).SMS will be sent simultaneously to two 1 Admin, 2 which you enter in the form.and 5.For validation on the user side I share with the help of boostrap и regularnych expressed in the same form, on the server side I use the plug-in vlucas/valitron, as well as I write myself.6 .For the asynchronous download of the files I use the ajaxupload plugin.The name of the photo is generated unique every time.7 .I do SQL requests with increased protection from sql-injections, as well as export data with protection from XSS attacks.[BR] 6 of 6I keep the data in two tables.I link each other.8thThe form template itself made a widget where different templates are loaded.It also deleted the comments that this user added.Thank you for attention.There will be questions about the task.
1 .The core is located in vendor/ishop/core.[ Theand a. Route: CMS is performed in such a way that the type of Route divides the line of request with the help of regularnych expressed into two parts in the first page of request in the second Get parameters.Where the request is shared with Controller and Action is adjusted the names in SamelCase and prefix are added.In Action name by silence "index".Vyзывается object of controller and starts Action task or by silence.Controller: Connects Route and View.Formulating the metaphor;
c. View: Connects the template.It connects the view, buffer data and places it in the variable $content.Creates HTML code for meta-data
d. Model:We place attributes, validation rules,SMS on errors.We store, link, update the tables in the BD, validate the data.This is about the core classes.The 2ndConfig (Basic Settings of the Website)3 .I used swiftmailer - a plugin for sending letters.and 4.SMTP host is ukr.net. Login, password view in (config/params.php).SMS will be sent simultaneously to two 1 Admin, 2 which you enter in the form.and 5.For validation on the user side I share with the help of boostrap и regularnych expressed in the same form, on the server side I use the plug-in vlucas/valitron, as well as I write myself.6 .For the asynchronous download of the files I use the ajaxupload plugin.The name of the photo is generated unique every time.7 .I do SQL requests with increased protection from sql-injections, as well as export data with protection from XSS attacks.[BR] 6 of 6I keep the data in two tables.I link each other.8thThe form template itself made a widget where different templates are loaded.It also deleted the comments that this user added.Thank you for attention.There will be questions about the task.