Is {ifCurrent} going to be removed?

5 months ago

netteman
Member | 76
+
0
-

Hi,

I'm using the {ifCurrent} macro in my templates because it's super easy to use.

But it's marked as deprecated :(

https://latte.nette.org/cs/macros#…
https://latte.nette.org/en/macros#…

Could you tell me if it's going to be removed in the upcomming Nette 3.0 (and I'll have to switch to the really-difficult-to-write $presenter->isLinkCurrent($link) ? …)

Thanks :)

5 months ago

Ondřej Kubíček
Member | 410
+
0
-

yes, you have to use $presenter->isLinkCurrent($link)

5 months ago

netteman
Member | 76
+
0
-

Nooooooooo! :(