CodeIgniter Forums
Installation and testing - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: Installation and testing (/showthread.php?tid=62637)



Installation and testing - stefano.zullo - 08-08-2015

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'


RE: Installation and testing - pixel - 09-01-2015

(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');
         }
}



RE: Installation and testing - pixel - 09-01-2015

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 ?