Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- controller :
- <?php
- class Full extends CI_Controller{
- function __construct(){
- parent:: __construct();
- // $this->load->database('full',TRUE);
- //$this->load->model('full/m_full');
- }
- function index(){
- if(isset($_POST['username']) and $_POST['password'])
- {
- $username = $_POST['username'];
- $password = $_POST['password'];
- if($username == '1' && $password == '1')
- {
- $abc = array("output" => 1, "result" => "success");
- print_r($abc);
- //printf($abc);
- }
- else
- {
- $abc = array("output" => 0, "result" => "failure");
- print_r($abc);
- }
- }
- else
- {
- $this->load->view('index.php');
- }
- function login(){
- }
- }
- }
- ?>
- view
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement