Welcome Guest, Not a member yet? Register   Sign In
anchor problem
#2

[eluser]Michael Wales[/eluser]
You are passing an array to the first parameter of anchor(), it should be a string.

I assume this is within some sort of loop that is building out a menu and $parent has been defined elsewhere in the loop (as the first segment of the URL to link to). Maybe something like this:

Code:
if ($row->link === $this->uri->segment(2)) ? $attr = array('class' => $active) : $attr = array();
  $link = $parent . $row->link;
  $out .= '<li>' . anchor($link, $row->text, $attr) . '</li>';
}


Messages In This Thread
anchor problem - by El Forum - 12-01-2008, 12:35 PM
anchor problem - by El Forum - 12-01-2008, 03:21 PM
anchor problem - by El Forum - 12-02-2008, 07:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB