BBnepal-Accounts/account/application/controllers/Togglelanguage.php
Sampanna Rimal 9cd05ef3cb commitall
2024-07-10 18:28:19 +05:45

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']);
}
}