BBnepal-Accounts/account/application/controllers/Togglelanguage.php

15 lines
399 B
PHP
Raw Normal View History

2024-07-10 12:43:19 +00:00
<?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']);
}
}