commitall
This commit is contained in:
14
account/application/controllers/Togglelanguage.php
Normal file
14
account/application/controllers/Togglelanguage.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?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']);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user