Welcome Guest, Not a member yet? Register   Sign In
passing array through Anchor

[eluser]Suhas nazir[/eluser]
Hi all
I want to know whether there is any method to pass an array through anchor??

[eluser]Phil Sturgeon[/eluser]
Do you mean like the one in the user guide?

Or do you mean passing a URI as an array of segments?

Both = yes ;-)

[eluser]Suhas nazir[/eluser]
I will make it more clear
Suppose my array is like this
is it possible to pass this array n throuhh an anchor????

[eluser]Phil Sturgeon[/eluser]
That is no more clear. Instead of telling me you have an array, now you are showing me you have an array.

Explain "pass it through".

anchor($n, 'Example');

That would work fine if that's what you mean.

[eluser]Suhas nazir[/eluser]
can i pass this array as one of the parameter....
may be i am asking a foolish question..

[eluser]Phil Sturgeon[/eluser]
You are asking a sensible question but asking it badly. ;-)

anchor('controller/method/'.implode('/', $n), 'Example');

Theme © iAndrew 2016 - Forum software by © MyBB