Three Tips for Attracting the Clients You Want

Ask yourself what your ideal client looks like. Is there a certain field of work that you’d like to assist with? Do you prefer men or women clients, or does it matter? Are you looking for clients…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




View Controller Explained from MVC

As I began my first week at Firehose I learned a ton of great new information. However certain aspects of what I was coding / learning still remained a mystery, and it almost looked like there was a bunch of behind the scenes magic that I was still not ready to comprehend. I am referring to the Model View Controller concept. Following I will attempt to best explain the View Controller portion of this concept in order to hopefully help others understand it as well as my self.

Controller

The Controller is where we code, and control what it is that must be displayed within the view. The controller is used to reach out for the data , create and set variables, and manipulate data. It is where all the information can be pieced together and then sent to another page through the use of routes.

View

From my understanding the View is where all the information is shown. In the Splurty app the view would be the webpage where the user can access it. Here is where the values are sent to, and loaded up.

I hope this helps as I am still learning about this concept some of the information might change. Following is an image that I thought was helpful in visualizing the MVC.

Add a comment

Related posts:

Populism is a Symptom of Failed Educational Systems.

I keep hearing claims of people not being interested in politics while seeing highly politized confrontations on social media. The people that proudly admit to never watch the news are the same folks…