A
A
Anton2015-11-28 05:16:44
Kohana
Anton, 2015-11-28 05:16:44

Block output in categories, how to disable output in pages?

Hello, for displaying blocks on the main page or only in the basket, etc., or forbidding the output on the main page, but I use this code to show everywhere.

<?php if(Request::initial()->controller() != 'main'): ?>
выводит везде
 <?php else:?>
выводит только на главной
 <?php endif;?>

main - responsible for the main page.
How can I disable output in the /page/probki section.
There is a page controller with a probki action in it
????

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Grigory Vasilkov, 2015-12-08
@gzhegow

I think the question is very specific, and I would forbid such questions from the site’s policy, because I suppose that after receiving the answer, the author will get used to the fact that answers are now distributed just like that and next time he will come again to be done for him.
There is an answer and it is very simple, but I don’t even know what is the point of continuing to answer like that!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question