Q
Q
Quber2014-09-17 04:04:16
symfony
Quber, 2014-09-17 04:04:16

What is mysticism? When developing Symfony 2, 2 pages are displayed on one page in chrome dev tools. How is this possible?

I am making a website on symfony 2. I
am using the FOSUserBundle bundle.
There is a registration page /register
And an authorization
page /login I open the /login page
I look at the source code. Everything is fine. One page.

<html>
    <head>
        <title>Вход</title>
    </head>
    <body>
        Это содержимое страницы авторизации
    </body>
</html>

I press F12 and look at the tree in chrome dev tools, 2 pages are displayed there! /login + /register
At a time when only one page is displayed in the source code.
For clarity, I will show an example:
<html>
    <head>
        <title>Вход</title>
    </head>
    <body>
        Это содержимое страницы авторизации
    </body>
<div id="sfwdtb847bc" class="sf-toolbar" style="display: none;" data-sfurl="/app_dev.php/_wdt/b847bc">
    <head>
        <title>Регистрация</title>
    </head>
    <body>
        Это содержимое страницы регистрации
    </body>
</div>
</html>

I understand that this is somehow related to the debug panel in Symfony 2. But how could an entire page be displayed there?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Skobkin, 2014-09-18
@skobkin

Disable the debug panel and look at the result.
In general, when development tools do not show the structure that is described in the code received from the server, this means that the DOM has been rebuilt after the page has loaded. Maybe something loaded with JavaScript - look at the web accesses and AJAX requests tab.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question