Is {ifCurrent} going to be removed?

7 months ago

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

7 months ago

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

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

7 months ago

netteman
Member | 78
+
0
-

Nooooooooo! :(