Welcome Guest, Not a member yet? Register   Sign In
Installation and testing
#1

Hallo, i have codigniter 3.0 in a local server installed

when in the browser i digit : 'localhost/myweb/index.php'
it 'is all ok (myweb is the alias for easyphp server)

when in the browser i digit : 'localhost/myweb/index.php/test'

it' is worng. (where test is a copy from welcome.php controller within the class name Test

WHY?

Tanks'

Attached Files
.php   Test.php (Size: 677 bytes / Downloads: 119)
Reply
#2

(08-08-2015, 07:06 AM)stefano.zullo Wrote: it' is worng. (where test is a copy from welcome.php controller within the class name Test

WHY?

When you are copy your controller file have you change the name of the class Welcome for Test
and don't forget $this->load->view('test');

class Welcome extends CI_Controller {
}

Turn into:

class Test extends CI_Controller {
     /**

     * Index Page for this controller. etc....
     *  
     */
         public function index()

         {
                  $this->load->view('test');
         }
}
Reply
#3

I've just seen your file test.php. You write 'welcome_message_1' when you call your view.
Have you create this file welcome_message_1.php in the views folder ?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB