I
I
Ilya Beloborodov2015-10-30 14:05:08
PHP
Ilya Beloborodov, 2015-10-30 14:05:08

Your function in Bitrix?

In general, the fate-villain threw me a task for 1s Bitrix.
Tell me where you need to insert your function so that it is visible on all pages of the site?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
G
ghaur, 2015-10-30
@ghaur

Try it in /bitrix/php_interface/init.php.

E
Express777, 2015-10-30
@Express777

/bitrix/php_interface/init.php
If you need access to the function on all pages.
I also recommend removing the PHP closing tag in this file, just in case

M
Michael, 2015-10-30
@scherbuk

(I am not a Bitrix developer)
well, for example, you can put your /bitrix/modules/main/tools.php method
in CUtil,
but I think this is not legal and real programmers will scold me now

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question