model view controller java and html doubt

I have a question about how to implement a thing correctly following the model controller view, I explain.
I am making a website where posts can be created, and obviously created posts are updated, this is what I don't know how to do.
It occurred to me to implement it as follows:
1st -> When you came to the view where you wanted the posts to appear, it called a controller through an include.


This controller is responsible for taking the posts from the database, and writing them correctly in HTML, then in the view, since with the inlude copy the literal content of the controller looked correctly everything worked fine.
However, I was suspended because of the fact that according to the teacher, I don't understand the model view controller, since a view can never have an include of a controller.

I don't know how to do it any other way and I need help to approve haha ​​greetings I hope your answer :]

pd: I have not put code because at the moment I do not have a file in which everything is understood correctly, I hope I have explained the problem well so that they understand it without the need for code.

html – CSS content alignment

I have a mini-project with some icons that is accompanied by text. These are well aligned with the text, but not with each other. Would there be any way to "tabulate" these icons so that they are aligned by icons?

This is my code and how it is now:

p, h1 {
  display: flex;
  align-items: center;


info Hola

play_arrow Hola1play_arrow Hola2 play_arrow Hola3

play_arrowHolacomoestasplay_arrow Hola5


And I want it to look like this:


Also add some space between icon and icon.

I tried with different codes, but without result. (align-items: center, align-self: center, justify-items: center …)

Also, another problem that I have that is also related to the alignment, is in the part of the footer.

I have a text (which appears to the side and there is no way to move it to the center) and some icons just below that I managed to center them, but I can't center the text.

.flex-container {
	  display: flex;
	  flex-direction: row;
	  background-color: none;
	  justify-content: center;

  width: 50px;
  height: 50px;
  width: 60px;
  height: 50px;

a.button {
  display: inline-block;
  border-radius: 10px;
  background-color: DarkSlateBlue;
  background-image: linear-gradient(to right, DarkSlateBlue , #8980c4);
  border: none;
  color: #FFFFFF;
  text-align: center;
  font-size: 15px;
  padding: 10px;
  width: 170px;
  height: 30px;
  transition: all 0.5s;
  cursor: pointer;
  margin: 1px;
  box-shadow: 0 9px #999;
.button:hover {background-color: #736aad}

.button:active {
  background-color: #5404c8;
  box-shadow: 0 3px #666;
  transform: translateY(2px);

a.button span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;

a.button span:after {
  content: '0bb';
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: 0.5s;

a.button:hover span {
  padding-right: 25px;

a.button:hover span:after {
  opacity: 1;
  right: 0;

Hola que tal:

I've tried adding the text inside the flex, but it appeared next to the icons. And even if he put so many
As there was code, I ignored it.

8 – Email values ​​do not have the correct HTML tags

I've looked around for almost a day since I didn't want to make a duplicate. Unfortunately, I couldn't find an answer.

Problem: I have created a custom contact form using the contact forms included in Drupal 8. On the display tab, I have selected one of the fields to have an online label.

When I send a test email, the field does not have the label online, it is no longer represented as a but a


TEST SUBJECT - IGNORE logged build

Is it possible that the entity_view function used in contact.module is the problem? I still consider myself new to Drupal, so I'm not sure how mail works.

Thank you.

My PHP file will not insert HTML data into a MySql database table

In Visual Studio Code, I am working on creating a website. An HTML page I have has a form that obtains user data …

Create Account Username:



then send it to a php file called Data.php …

and I have no idea how to see the errors of php echos or mysql in the code vs considering that I am using an html base project and they do not appear in the debug console. I can send the appearance of the database if necessary.

Get an amazing React JS website or get your money back for $ 120

Get an awesome React JS website or get your money back

I am a professional frontend developer, currently employed in a web development company. I have worked for a renowned client in India and, therefore, I have gained enough experience in the field of front-end development. Here I intend to build a basic React JS website in a quick time span. Please feel free to ask questions.


php – $ html interruption. = & # 39; for the IF statement

Hello stack exchange community,

I am looking to understand how to insert an IF statement into the code below:

$html.= 'In ' . $terms_string . '';

Essentially, I would like to insert a glyph just before the hyperlink that changes based on the value of $ terms_string (using IF and ELSEIF). I thought the line below might be close to what I need, but I'm not sure if I am precisely switching between PHP and HTML (definitely a user error, but is it a syntax error?).

$html.= 'In '. if($terms_string === "Articles") { glyph HTML code }; .' ' . $terms_string . '';

Any ideas would be greatly appreciated.

css: similar color groups for HTML

I start my adventure as a front-end developer and I wonder what is the easiest way to choose the color groups used in CSS for my projects. For example, I have a group of grayscale colors. How large should the "distances" be between them (assuming they are placed on top of each other, for example, text in the background) to ensure good visibility? Is there any universal method to determine this?

How do I knit r markdown in pdf or html with packages?

I have been working with r markdown for a project. I used different packages within the markdown, which work in r studio since I downloaded the package. However, when I tried to weave the markdown in pdf or html, it gave me an error, I guess those commands require a package. How do I solve this so that I can successfully weave my project?

ggplot(data=formulation.df, aes(x= formulation, y= temps)) + geom_boxplot(col="red", fill="blue") + xlab("Formlation") + ylab("Temperature") + coord_flip()

enter the description of the image here

html – Modal boostrap is not shown on one page

Good morning, something strange is happening to me. I have two pages on my website, and in both you can add new clients. The issue is that in clientes.php the modal #modalAgregarCliente It opens and works perfect.
  Now, on the other page called crear-menu.php I have an html element select to choose the client, and next to the element, a button to add a new client if it did not exist. As he button As the modal They are a copypaste from clientes.php toward crear-menu.php.

And when I click the button Add Client from my crear-menu.php, the modal does not open.

html – Overflow hides the content but does not add ellipsis

I am developing a section of the page that consists of cards that contain a header image and a small summary of the content below.
I want the summary below to have a specific width and length and that if it occurs overflow add me one ellipsis.
So far I have managed to hide the text that stands out but does not add the ellipsis.

Attached code



Lorem ipsum dolor sit amet consectetur adipisicing elit. Deleniti alias ducimus eius ad facere, quidem optio odio, illo odit, nobis magnam quo natus? Corporis obcaecati natus quas expedita eius minus!

Ver más


        background-color: white;
        margin: 4%;

    width: 380px;
    margin: -6% 2% 2% 2%;
    height: 100px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

        cursor: pointer;

        background: url(../img/prueba.png);
        background-repeat: no-repeat;
        background-size: 100% 80%;
        height: 200px;