This commit is contained in:
2020-02-11 21:17:42 -05:00
parent 79357aca24
commit 4f9cb46f0f
3 changed files with 38 additions and 26 deletions
+2
View File
@@ -116,4 +116,6 @@ class Auth extends Start_Controller {
$this->index();
}
}
+15 -5
View File
@@ -2,11 +2,11 @@
defined('BASEPATH') OR exit('No direct script access allowed');
class Home extends CI_Controller {
class Home extends Start_Controller {
public function index() {
$this->load->view('home/home');
// redirect("auth/index");
$data=[];
$this->viewHomePages("view_reset_password",$data);
}
public function security() {
@@ -25,11 +25,21 @@ class Home extends CI_Controller {
}
public function terms(){
public function terms() {
}
public function contatus(){
public function contatus() {
}
private function viewHomePages($page_name,$data) {
//$this->load->view('home/home');
//echo "START RESET 1";
$this->load->view('auth/view_head');
$this->load->view('auth/'.$page_name, $data);
$this->load->view('auth/view_foot');
}
}
+12 -12
View File
@@ -406,19 +406,19 @@
<script type="text/javascript">
<!--
function viewLogin() {
<script type="text/javascript">
<!--
function viewLogin() {
$.ajax({
url: "/welcome/viewLogin?proc=PROCESS&welcome=welcome"
}).done(function (data) {
// alert(100);
});
return true;
}
// -->
</script>
$.ajax({
url: "/welcome/viewLogin?proc=PROCESS&welcome=welcome"
}).done(function (data) {
// alert(100);
});
return true;
}
// -->
</script>