Welcome Guest, Not a member yet? Register   Sign In
Video Tutorial
#1

[eluser]William Rouse[/eluser]
I am working on the video tutorial on creating a blog and I can not get the comment section to work. The following is the link for the comments connection within the blog_view file.
Code:
<p>&lt;?=anchor('blog/comments/'.$row->id, 'Comments');?&gt;</p>
I can see the connection in the in the address bar looks correct.
Code:
http://localhost/CodeIgniter/CItutorialBlog/index.php/blog/comments/1

Code:
Not Found
The requested URL /CodeIgniter/CItutorialBlog/index.php/blog/comments/1 was not found on this server.
But I don’t see the test message in the controller file.
Code:
function comments(){
        echo 'show me';

Any help as to where to start looking would be appreciated.
#2

[eluser]überfuzz[/eluser]
[quote author="William Rouse" date="1258900120"]I can see the connection in the in the address bar looks correct.
Code:
http://localhost/CodeIgniter/CItutorialBlog/index.php/blog/comments/1

Code:
Not Found
The requested URL /CodeIgniter/CItutorialBlog/index.php/blog/comments/1 was not found on this server.
[/quote]
First, make sure you have a controller called blog. Also, that the controller should have a function called comments.
If thats not the issue start checking you controller. Is the name spelled correctly.
Code:
class Blog extends //etc
#3

[eluser]William Rouse[/eluser]
I found the error. It was a spelling error between my directory names and the netbeans configuration files I made.




Theme © iAndrew 2016 - Forum software by © MyBB