15 lines
399 B
PHP
15 lines
399 B
PHP
<?php
|
|
defined('BASEPATH') or exit('No direct script access allowed');
|
|
|
|
class Togglelanguage extends CI_Controller
|
|
{
|
|
public function index()
|
|
{
|
|
if ($this->session->userdata("language") == "np") :
|
|
$this->session->set_userdata("language","eng");
|
|
else : $this->session->set_userdata("language","np");
|
|
endif;
|
|
redirect($_SERVER['HTTP_REFERER']);
|
|
}
|
|
}
|