Welcome Guest, Not a member yet? Register   Sign In
undefined function anchor()
#3

(This post was last modified: 11-06-2014, 07:54 PM by InsiteFX.)

If you must do it from code you can do it like below. But sv3tli0 is correct it should be done in your html.

Code:
$out = '<li>' . anchor($categories[$i]['link'], $categories[$i]['title']) . '</li>';

$data = array(
    'body' => $out,
);

You cannot place php code inside php code like that, that's why the error.

@Narf: I meant inside an associated array, it just does not like it! But works fine this way.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
undefined function anchor() - by davy_yg - 11-04-2014, 02:19 AM
RE: undefined function anchor() - by sv3tli0 - 11-04-2014, 04:03 AM
RE: undefined function anchor() - by InsiteFX - 11-04-2014, 05:47 AM
RE: undefined function anchor() - by Narf - 11-06-2014, 04:20 PM
RE: undefined function anchor() - by Hobbes - 11-06-2014, 07:32 PM
RE: undefined function anchor() - by Narf - 11-06-2014, 11:22 PM
RE: undefined function anchor() - by Chroma - 11-08-2014, 08:39 AM
RE: undefined function anchor() - by Chroma - 11-08-2014, 08:38 AM
RE: undefined function anchor() - by sv3tli0 - 11-08-2014, 01:11 PM
RE: undefined function anchor() - by Hobbes - 11-08-2014, 01:59 PM
RE: undefined function anchor() - by sv3tli0 - 11-08-2014, 02:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB