Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Argument 1 passed to if_route() must be of the type array, string given #28

Closed
jrean opened this issue May 1, 2016 · 3 comments
Closed
Milestone

Comments

@jrean
Copy link

jrean commented May 1, 2016

Hi,

I followed your documentation and when just simply trying the following code I got the error:

Argument 1 passed to if_route() must be of the type array, string given

active_class(if_route('xxx.xxx'))

I have a route named xxx.xxx...

You should fix your documentation.

Thank you

@astroanu
Copy link

+1

@astroanu
Copy link

i think it's better to make it accept both string and array. casting it to array inside the helper would be better.

@letrunghieu letrunghieu added this to the v3.2 milestone Jul 23, 2016
@letrunghieu
Copy link
Owner

Now, this feature is implemented in version 3.2.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants