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

(11-04-2014, 05:47 AM)InsiteFX Wrote: 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.

Yes you can.
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