Обычные (простые, одностраничные) компоненты создают какую-либо область на одной конкретной странице. Например, компонент показа новости по ее коду создает на одной конкретной странице (той, где он размещен) область, в которой показывает заголовок, текст и прочие параметры новости.

Комплексные (сложные, многостраничные) компоненты - это компоненты, которые создают разделы сайта. Например, компонент каталога создает на сайте весь раздел каталога: и список каталогов, и список групп, и страницы товаров. То есть комплексный компонент состоит из набора страниц. Комплексные компоненты строятся на основе обычных компонентов.


Комплексные компоненты построены на паттерне проектирования MVC (Model View Controller), в котором модель данных приложения, пользовательский интерфейс и управляющая логика разделены на три отдельных части, так, что модификация одной из частей оказывает минимальное воздействие на другие части.

Model (модель) в данном случае - это ядро системы. Model представляет собой данные и бизнес-логику, отвечает на запросы View. View (представление) - это простые компоненты (на самом деле все чуть сложнее, но для начала можно понимать именно так). View представляет вывод данных пользователю, запрашивает данные у Model, посылает действия пользователя в Controller (как правило через HTTP запрос). Controller (контроллер) - это комплексный компонент. Controller на основании действий пользователя и ответа Model выбирает соответствующий View.

Алгоритм работы паттерна MVC примерно таков: на основании действий пользователя Controller (контроллер) определяет, какое View (представление) должно быть показано пользователю, и отдает управление этому View (представлению); View (представление) запрашивает необходимые ему данные у Model (модели), получает эти данные и выводит их соответствующим образом пользователю; пользователь с помощью каких-либо элементов управления, которые ему предоставил View (представление), посылает новый запрос в Controller (контроллер).

Алгоритм работы паттерна MVC в применении к комплексным компонентам таков: на основании действий пользователя (как правило HTTP запрос) комплексный компонент (controller) определяет, какая страница (view) должна быть показана пользователю, и подключает свой шаблон компонента для этой страницы; шаблон страницы (view) подключает обычные компоненты, настраивая необходимым образом их свойства; обычные компоненты выполняют свою работу: запрашивают данные у ядра (model), форматируют их и выводят посетителю, а так же предоставляют пользователю различные элементы управления (ссылки, формы, кнопки и т.п.); пользователь с помощью каких-либо элементов управления, посылает новый запрос (как правило HTTP запрос) комплексному компоненту (controller).

Страница 1 - 1 из 2
Начало | Пред. | 1 2 | След. | Конец

Назад к списку новостей

Материалы по теме:

Swiss rolex watches
That’s why Swiss rolex here and for that same reason, Swiss rolex watches here with a black leather strap and not with the usual stainless steel design.Rolex replica watchesadds an air of mystery to Replica rolex watches, being something you don’t see every day. Not that you see an Audemars Piguet replica everyday, but still, I think you catch my drift. I think both these babies are powered by the same Japanese automatic movement because they both run perfectly and have kind of the same power reserve. As long as we’re talking about Swiss replica watches, they’re simple designs that get lots of attention and easily pass as originals.
Имя Цитировать 0
Mainly thought of cheap nike shoes hotels buy nike fr om dr dre beats sale 2015

Human eye our facility, cheap jordans for sale The tonneau's cheap nikes staffand our individual medical outlet nike experts is nike shoes online going to be christian louboutin for men first rate. I support ones local nike shoes on sale facility cheap nike shoes like it thrives to contain the adidas on sale requirements cheap retro jordans of nike outlet the communities it functions. adidas store Through experience i allow nike shop all outlet nike people with provided dr dre beats sale years ago, Deliver a buy jordans presentation christian louboutin heels in addition extended to christian louboutin boots all the reasons for the continuing go farther coming from nike factory store the option.

Medical cheap jordans professional. christian louboutin shoes sale Gopal cheap jordans shoes t. Properly being means beats by dre on sale in cheap jordan shoes addition nike women servicing cheap nikes obama administration cheap jordan shoes screened talk nike store usa about nike air max 90 basically differences any wh ere nike factory store from nike store insurance quotes 2003 nike air max 90 those people who christian louboutin sale find cheap christian louboutin themselves 2007 in plump nike shoes online of exseeding weight, nike air max Purchasing detail from the nike air max 90 nation's analysis of kids diet-related, A data to do with 6,700 infants grows cheap jordans older 10 nike shop online you can 17 questioned with regard buy nike to nike shop 2003 and most 44,000 adidas factory outlet offsprings questioned throughout cheap nike shoes the beats by dre cheap 2007.

I think the long nike outlet term nike outlet store of christian louboutin outlet Pictou state need made a commitment by christian louboutin clearance poor people nike outlet store of ghana. beats by dre sale I have to avoid buy nike the cheap under armour potential cheap beats for red bottom shoes on sale convincing nike factory store locals intended for how they will likely election. Inside democratic environment, The manner a homeowner decides outlet nike on nike sneakers inthat would political election is a non-public question. nike sale Almost three urban cheap nikes centers nike factory store enjoy sent in nike store usa help and advice red bottom shoes together beats by dre on sale with video clips nike factory outlet on own webpage:Nematodes can be obtained anywhere since gardener revolves and landscaping nike store design specialists usually under armour shoes and really should nike store usa be obtained currently of purpose at the end red bottom shoes for men of christian louboutin outlet July. Heterorhabditis bacterlophora may perhaps be the counseled punch in. nike factory outlet Your towns nike clearance Chafer beetle website pages afford cheap nikes courses plus dvds somewhere around using nematodes, Effectively regarding nike jordan dropping nike factory outlet provides for readily available nematode ranges christian louboutin outlet that need tearing a lot more than cheap red bottom heels what's acceptable by the buy jordans online summertime polices,

I so satisfied nike outlet store with your christian louboutin shoes skills with regards nike store to my nikes on sale body system and i also put on understand I can have increasingly nike shop tried personally to beats headphones cheap do similar to christian louboutin sale this red bottom shoes for women by myself. nike outlet I in reality, look nike air max ahead nike factory outlet to nike outlet your cheap nike shoes next exercise buy nike and cheap christian louboutin revel in all of discomfort luckin' nike air max better. As nike sneakers an nike online store example, At the time he showed jordans on sale this website, Your man ingested soups nike air max and nike clearance store half a nike factory outlet sub nike women lunchtime, And beats by dre sale far nike online store from being the entire recommended hamburger he can have preferred months in,

The little, cheap red bottom shoes Information nike factory outlet about nike shoes online the right way time marches on, While nike running shoes romantic relationship. companionship this advice nike clearance store page. adidas outlet store This was tend cheap jordans to red bottoms heels for you cheap adidas to be jordans for sale me when you first obtained nikes on sale reading nike sale this which often cheap nike shoes this interest beats by dr dre sale for the city would undoubtedly deteriorate: nike clearance Specifically waiting, The course nike sale notes said. It jordans for sale cheap appears nike outlet these folks nikes on sale were completely drastically inappropriate, nike sneakers As well a cynic just nike shop online like me that says a nike outlet store whole lot. With nike jordan any time and.[Became]. A nike clearance terrific nike factory store provider. under armour outlet Employees at the cheap nikes ac console never have nike store only reduced the problem christian louboutin red bottoms makers christian louboutin shoes things I christian louboutin sale should want nike sneakers to do with the nike store usa professional personal nikes on sale but nike running shoes most have trained me in about team leadership and nike sneakers a christian louboutin discount real admire and assistance mental adidas online store disposition to both people and their own families.

All of us page is approximately something which cheap beats headphones is nike shop online relevant to all under armour clearance of us at important things in nike shop online life Heartbreak. cheap beats by dre Heartbreak can have numerous aids, nike clearance Among them losing your nike shoes online teenage cheap beats by dre son or friend or jordans shoes for sale negativity by under armour sale an accomplice, nike jordan But no matter nike shoes on sale what, It is an cheap beats headphones important sensation that nobody insures cheap nike shoes equally.Wonder as cheap christian louboutin shoes it were exactly nike online store what short of money retro jordans your amazing centre christian louboutin mens shoes each cheap nike shoes time red bottom sneakers you adidas sale were minimal amount of. nike outlet Accomplished your mother nike jordan and father outlet nike or alternative care providers jordans cheap overlook your emotions? nike clearance Does these companies ill at ease nicely pin the consequence on a? Automatically nike outlet wind cheap nike shoes up as obtrusive on you? Are you nike women aware they stick to any style of examination cheap nikes or adidas outlet intimate beats by dr dre sale exploitation? nike running shoes Happen to nike sneakers be nike shop your mother cheap beats by dr dre and father or health care providers cheap nikes generally available? To nike store have beats headphones cheap been nike air max completely nike air max they nike sneakers generally cheap beats by dr dre the christian louboutin store reason christian louboutin on sale behind your nike women heartbreak?In christian louboutin sneakers which way carried out you cheap nike shoes reduce these people sentiments beats headphones on sale when were limited? Engaged in you nike online store dissociate within nike store your body nike store mind-numbing out nike air max and with the products, beats by dre cheap Tv nike outlet programs, Or else all some compound adventure? nike air max 90 Probably should you have upward and and turn nike running shoes a red bottom heels really good girl or nike outlet boy? Feel cheap jordans online what you did to nike store characteristics agonizing self-confidence relating to heartbreak moreover isolation.Are nike sale you will nike outlet always jordans for cheap assisting some ideas adidas outlet online by using this method? jordans for sale They are christian louboutin men shoes the nike store explanation for your concerns and panic cheap adidas shoes attack and beats headphones on sale being lonely because they're all varieties cheap beats of do-it-yourpersonally desertion.
Имя Цитировать 0
replica christian louboutin heels are done withgiuseppe zanotti shoes any fastidious giuseppe zanottifervour and much much more girls have Giuseppe Zanotti Sneakers outlet for pursuing the most uptodate point. Christian Louboutin Asteroid I order my boots or shoes internetMoncler CLEARANCE and usually pay the fullchristian louboutin replica price merely of times, if this. No matterpiumini moncler you are usually rich or not, christian louboutin studded pumpsyou deserve to own the most beneficial shoes on your legs. christian louboutin knockoffsare a symbol of feminism as well as style It accomplishs them feel thatfake christian louboutin there is unblueprintered area and they can get there with or after any advice.moncler outlet online store It acquiesces them tomoncler factory outlet, aplomb,Giuseppe Zanotti Sneakers onlinewhich all can be absolutBuy Marlboro cigarettes baleful combinations if put calm.TheChristian Louboutin accomplish them apperceive that low and catchchristian louboutin spiked heels they can accept admissionBuy Marlboro cigarettes online to the applemarlboro cigarettes of the advantaged few. The few Giuseppe Zanotti sale can acquiesce the actualmarlboro outlet best in the apple after an eyeGiuseppe Zanotti Boots on the bulk that they arechristian louboutin glitter pumps shoes acquiesce the women to breach the bottlegiuseppe zanotti outlet barrier that exists amidst women and all of them areMoncler doudoune affiliated in the Christian Louboutin Highness 160mm Aurora Colorful Pumpssisterly awning of shoes fromNicholas Kirkwood shoes this cast. It goes on to blast stereotypes andgiuseppe zanottiabout the affluent christian louboutin storesthe affluent activity moncler outlet storethat these shoes get you abide the aforementioned. If you accept both moncler outlet online and a austere drive toGiuseppe Zanotti Sneakers, you will bechristian louboutin heels. acceptable luck andreplica christian louboutin pumps adulation to buy all appearance admissionories and now with the advanced valentino shoes design of gladiator style sling backsGiuseppe Zanotti onlineand the vertical and horizontal straps on your feet will interlace their amazing mesh and Giuseppe Zanotti Sneakersdesign on your feet. This is one pair that is replica louboutin pumps the very bestchristian louboutin glitter heels of shoes. Giuseppe Zanotti Sneakers A great place tomoncler replica shop for these gorgeous shoes or Christian Louboutin Dafsling Glittery Leather Slingback Platform. Shopping online will save you up to christian louboutin narcissus pumps latest styles.replica christian louboutinA great place to find his and otherGiuseppe Zanotti Wedge Sneakers famousreplica louboutin shoes is through eBay online auctions. You can find great valentino replicabuys and save bigvalentino outlet. For instance, the Marpoil wedge can be bought online for less than christian louboutin daffodil pumpsthe Paris Stiletto boot. Also, found online for less than .Giuseppe Zanotti Boots Look for the Very Prive pump online for .These and so many other Christian Louboutin Isolde 20ans Specchio Laminato Black That's a huge savings.valentino outlet For the price conscience that should sound like music to your ears. If you want to look good thenhttp://www.giuseppezanottis.cc.
Имя Цитировать 0
Текст сообщения*
Защита от автоматических сообщений

Компания "Подряд"

Добро пожаловать в интернет-каталог Компании "Подряд"! Мы предлагаем широкий ассортимент оборудования для сетей кабельного телевидения и сетей передачи данных по адекватным ценам. Покупая предлагаемое нами оборудование, вы можете быть уверены в его качестве  - ведь мы сами используем его в своих сетях.

Подробнее о магазине