Welcome Guest, Not a member yet? Register   Sign In
Set different page title for every other page
#6

Hey mwhitney,
thx for your help
i have solution like this

PHP Code:
class Pages extends CI_Controller {
    function 
index() {
        
$data['title'] = "Startseite";
        
$this->load->view('templates/header'$data);
        
$this->load->view('pages/startseite'$data);
        
$this->load->view('templates/footer'$data);
        }
    function 
about_us() {
        
$data['title'] = "About us";
        
$this->load->view('templates/header'$data);
        
$this->load->view('pages/about-us'$data);
        
$this->load->view('templates/footer'$data);
        }

some change in routers. and work good, but the url address is "about_us" can you help me how to make the url address "about-us", when i put
PHP Code:
function about-us() { 
i got php error, can you help me please how to make the url address "about-us", with "-" and not "_" (underscore)

Thx again
Regard
Wiyono
Reply


Messages In This Thread
RE: Set different page title for every other page - by wiyono - 02-02-2015, 03:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB