Welcome Guest, Not a member yet? Register   Sign In
20-min-blog-tutorial - "Call to undefined function anchor() in"
#1

[eluser]muhax[/eluser]
Hello everyone.
I am doing the 20-min-blog tutorial and I am stuck on url helper anchor function.
When I load the page with this
Code:
<?php foreach ($query->result() as $row):?>
<h3>&lt;?= $row->title ?&gt;</h3>
<p>&lt;?= $row->body ?&gt;</p>
<p>&lt;?= anchor('blog/comments', 'Comments'); ?&gt;</p>
<hr>
&lt;?php endforeach;?&gt;

it breaks at anchor. The html source is
Code:
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;My Blog Title&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
<h1>My Blog Heading</h1>
<h3>My first entry</h3>
<p>haha aha a ha</p>
<p>

I go to php error logs and it sais.


PHP Fatal error: Call to undefined function anchor() in C:\Users\****\ZendServerCE\Apache2\htdocs\codeIgniter\Invent\system\application\views\blog_view.php on line 12

Im using ZendServerCE.

Anyone know what might be the problem here?


Messages In This Thread
20-min-blog-tutorial - "Call to undefined function anchor() in" - by El Forum - 10-13-2010, 07:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB