Is {ifCurrent} going to be removed?

2 months ago

netteman
Member | 68
+
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 :)

2 months ago

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

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

2 months ago

netteman
Member | 68
+
0
-

Nooooooooo! :(