Really simple (hopefully) problem.

#1
[eluser]jord[/eluser]
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
Code:
<?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.

#2
[eluser]jord[/eluser]
Found the problem, shouldn't have had the parens after Controller in the class declaration. The moral of the story is: "Coffee THEN Code".

#3
[eluser]thachp[/eluser]
ha ha ha.
"Hot Chocolate Then Coding " for me.

#4
[eluser]marcoss[/eluser]
[quote author="jord" date="1182649684"]Found the problem, shouldn't have had the parens after Controller in the class declaration. The moral of the story is: "Coffee THEN Code".[/quote]

...then Coke!


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.