• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Some help..

#3
[eluser]oriceon[/eluser]
I have that one and nothing happened that i want. :|

Code:
<?php

class Blog extends Controller {
    
    function __construct()
    {
        parent::Controller();
    }
    
    function index()
    {
        $data['title'] = 'My blog title';
        $data['heading'] = 'My blog heading';
        
        $this->load->helper('url');
        $this->load->view('blog_view', $data);
    }
    
    function lists($id)
    {
        echo 'aaaaa';
    }
}
?>


When i access http://localhost/site/ it load blog_view because blog controller is default, so is ok. If i access http://localhost/site/blog/lists.html it is ok, print me aaaa. Now, i want to access only http://localhost/site/lists.html without blog parameter (as a controler) because it is supposed to be default one...

So, how to? Thanks


Messages In This Thread
Some help.. - by El Forum - 03-11-2008, 09:05 AM
Some help.. - by El Forum - 03-11-2008, 09:40 AM
Some help.. - by El Forum - 03-11-2008, 04:12 PM
Some help.. - by El Forum - 03-11-2008, 04:37 PM
Some help.. - by El Forum - 03-12-2008, 01:59 AM
Some help.. - by El Forum - 03-12-2008, 02:23 AM
Some help.. - by El Forum - 03-12-2008, 02:27 AM
Some help.. - by El Forum - 03-12-2008, 02:37 AM
Some help.. - by El Forum - 03-12-2008, 02:40 AM
Some help.. - by El Forum - 03-12-2008, 02:40 AM
Some help.. - by El Forum - 03-12-2008, 02:41 AM
Some help.. - by El Forum - 03-12-2008, 02:42 AM
Some help.. - by El Forum - 03-12-2008, 02:42 AM
Some help.. - by El Forum - 03-12-2008, 02:44 AM
Some help.. - by El Forum - 03-12-2008, 02:49 AM
Some help.. - by El Forum - 03-12-2008, 02:51 AM
Some help.. - by El Forum - 03-12-2008, 02:59 AM
Some help.. - by El Forum - 03-12-2008, 03:01 AM
Some help.. - by El Forum - 03-12-2008, 03:02 AM
Some help.. - by El Forum - 03-12-2008, 03:03 AM
Some help.. - by El Forum - 03-12-2008, 03:04 AM
Some help.. - by El Forum - 03-12-2008, 03:05 AM
Some help.. - by El Forum - 03-12-2008, 03:05 AM
Some help.. - by El Forum - 03-12-2008, 03:05 AM
Some help.. - by El Forum - 03-12-2008, 03:06 AM
Some help.. - by El Forum - 03-12-2008, 03:07 AM
Some help.. - by El Forum - 03-12-2008, 03:07 AM
Some help.. - by El Forum - 03-12-2008, 03:08 AM
Some help.. - by El Forum - 03-12-2008, 03:11 AM
Some help.. - by El Forum - 03-12-2008, 03:12 AM
Some help.. - by El Forum - 03-12-2008, 03:13 AM
Some help.. - by El Forum - 03-12-2008, 03:21 AM
Some help.. - by El Forum - 03-12-2008, 07:43 AM
Some help.. - by El Forum - 10-10-2008, 02:07 PM
Some help.. - by El Forum - 10-14-2008, 03:31 AM
Some help.. - by El Forum - 10-14-2008, 03:44 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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