EllisLab text mark
Advanced Search
     
Really simple (hopefully) problem.
Posted: 23 June 2007 05:24 PM   [ Ignore ]
Joined: 2007-06-23
5 posts

For whatever reason, I’m having a terrible time getting a very basic code igniter application off the ground.

The welcome page works perfectly fine, but when I attempt to a use a controller / view of my own it doesn’t work even if I basically copy/past from the welcome code.  Viewing the source in the browser shows that nothing is being sent from the server.  ‘note’ is currently set as the default controller.

Code:

note.php

<?php
class Note extends Controller()
{
    
function Note()
    
{
        parent
::Controller();    
    
}
    
    
function index()
    
{
        $this
->load->view('note_viewer');
    
}
}
?> 

note_viewer.php is a direct copy of welcome.php

The code is simple, I just can’t figure out why it isn’t working.  There are no errors in the logs.

 
Posted: 23 June 2007 05:48 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Joined: 2007-06-23
5 posts

Found the problem, shouldn’t have had the parens after Controller in the class declaration.  The moral of the story is: “Coffee THEN Code”.

 
Posted: 23 June 2007 05:57 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2007-05-28
7 posts

ha ha ha.
“Hot Chocolate Then Coding ” for me.

 
Posted: 24 June 2007 07:24 AM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2006-08-22
149 posts
jord - 23 June 2007 09:48 PM

Found the problem, shouldn’t have had the parens after Controller in the class declaration.  The moral of the story is: “Coffee THEN Code”.

...then Coke!

 Signature 

Don’t argue with an idiot, people watching may not be able to tell the difference.


marcoss
http://defmay.com
http://fenix.st