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

#35
[eluser]oriceon[/eluser]
I solved the problem.

1. Into routes.php i added:

$route['default_controller'] = "statice";
$route['scaffolding_trigger'] = "";

$route['([a-z]+)'] = 'statice/index/$1';

2. Into controllers i made a controller named statice.php then i have that code

Code:
class Statice extends Controller {
    private $content = '';
    
    function __construct()
    {
        parent::Controller();
    }
    
    function index($id='statice')
    {
        $this->content = $this->load->view($id,'',true);
    }
    
    function _output()
    {
        echo $this->content;
    }
}

Then into views i have pages: despre.php , statice.php and so on ... then if i load: http://localhost/codeigniter/ it`s load default page: statice.php from view else if i try http://localhost/codeigniter/despre.html it`s load despre.php so that i need! Smile


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.