Multiple sites, same codebase?

#6
[eluser]metaltapimenye[/eluser]
this kind of stuff i work out with my last apps.
(read URI Class; Model)
url:http://www.mylandingsite.com/index.php/primary_class/restaurants/&lt;?php $this->uri->rsegment(2);?&gt; <--- this $this->uri->rsegment(n) stuff could be a variable to directing the methods behind.

in controller:

Code:
class primary_class extends Controller{
  function Gift(){
    parent :: controller();
  }
  function restaurants(){
    $page=$this->uri->rsegment(2);
    
    $this->load->view($page)
  }
}


Messages In This Thread
Multiple sites, same codebase? - by El Forum - 08-11-2008, 12:15 AM
Multiple sites, same codebase? - by El Forum - 08-11-2008, 03:20 AM
Multiple sites, same codebase? - by El Forum - 08-11-2008, 02:49 PM
Multiple sites, same codebase? - by El Forum - 08-11-2008, 09:10 PM
Multiple sites, same codebase? - by El Forum - 08-12-2008, 12:31 AM
Multiple sites, same codebase? - by El Forum - 08-12-2008, 03:56 AM
Multiple sites, same codebase? - by El Forum - 08-12-2008, 04:13 AM
Multiple sites, same codebase? - by El Forum - 08-13-2008, 08:26 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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