Controller::active() to allow controller wide test #125

Closed
opened 2018-06-14 02:10:47 +00:00 by jamie · 3 comments
jamie commented 2018-06-14 02:10:47 +00:00 (Migrated from git.hazaar.io)

I'm not sure if this is already supposed to work, but it is not currently.

From inside a view I would like to test if the controller is active by:

$this->html->a('#', 'Link')->toggleClass('active', $this->active('example'));

This will add the active CSS class to the link for any actions on the example controller.

I'm not sure if this is already supposed to work, but it is not currently. From inside a view I would like to test if the controller is active by: ```php $this->html->a('#', 'Link')->toggleClass('active', $this->active('example')); ``` This will add the *active* CSS class to the link for any actions on the *example* controller.
jamie commented 2018-06-29 01:37:03 +00:00 (Migrated from git.hazaar.io)

changed milestone to %4

changed milestone to %4
jamie commented 2018-06-29 02:23:50 +00:00 (Migrated from git.hazaar.io)

closed via commit 0b415d501c

closed via commit 0b415d501c203ae3ae4a7e0071d4e80d9996b466
jamie commented 2018-06-29 06:29:45 +00:00 (Migrated from git.hazaar.io)

mentioned in commit 0b415d501c

mentioned in commit 0b415d501c203ae3ae4a7e0071d4e80d9996b466
jamie self-assigned this 2025-09-04 01:15:47 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: hazaar/framework#125
No description provided.