V
V
valitskiydmitriy2015-07-28 07:56:53
Marketing
valitskiydmitriy, 2015-07-28 07:56:53

Template.php and php global variables?

There is a page template.php and index.php
All code in index.php is enclosed in a variable

$_GLOBALS['PAGE_CONTENT'] ='
html..
?>

And if you enter something like this there:
<? echo printProducts($Products); ?>
Then the browser reads it as a comment to the code, and nothing works, what is the error?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
L
Lander, 2018-12-18
@usdglander

The old version of the site gave at least a clear idea of ​​the order of prices. The new one is stuffed with a bunch of shit, which does not give any new information at all. Anyone who wants to order a log house has already studied the topic on the Internet and knows enough about log cabins to demonstrate these "profiles" to him again. To get to the prices, you have to go to another page (which is not obvious at all) which most likely people do not reach.
Didn't see any competitive advantage. How are you different from others? Cheap, high quality, fast? It would be strange if you wrote "Well, as it were, cheap and fast, but not very high quality. Well, you understand."
And this cute "We have calculated everything for you, and now give us your email so that we can get you sick and we will show you the finished figures" is generally nonsense. Nobody ever. practically does not leave his address to strangers.
In general, take a portrait of the target audience and not animations on the site.

P
Puma Thailand, 2018-12-18
@opium

Well, just look at the metrics in the webviewer what people on your site are doing

H
HarryChy, 2019-07-26
@HarryChy

Came home from the factory in the evening :). I flopped down on the sofa with a laptop and a bottle of Baltika :) . I looked at your site for a few minutes. Took a few sips of beer :). I also looked. The most primary feeling:
--- I do not have enough visibility of the faces that are behind all this. At least at the level of the main pillars of the team. The feeling that the site is a dummy.

R
Roman Yakushev, 2015-07-28
@CanVas

it is necessary to write not
but
taking into account if the printProducts function returns a string.
And in general, yes, it’s not that it’s not worth doing this, it’s generally a principle that contradicts all the laws of logic.
Why? The answer is here:
www.phpinfo.su/articles/practice/shablony_v_php.html

S
Sergey Zelensky, 2015-07-28
@SergeyZelensky-Rostov

don't use GLOBALS and don't store content in index.php for db content exists

S
Sergey Ivanov, 2015-07-28
@Writerim

Do you have short tag support enabled?
And please post the code in which you can understand what is really going on with you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question