testaccount
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controllers;
|
||||
use CodeIgniter\HTTP\RequestInterface;
|
||||
use CodeIgniter\HTTP\Request;
|
||||
|
||||
class PromoAdmin extends BaseController
|
||||
{
|
||||
protected $request;
|
||||
|
||||
// public function __construct(RequestInterface $request)
|
||||
// {
|
||||
// $this->request = $request;
|
||||
// }
|
||||
|
||||
public function index(): string
|
||||
{
|
||||
return view('welcome_message');
|
||||
}
|
||||
|
||||
|
||||
public function AuthPromoDash(){
|
||||
$out=[];
|
||||
//exit();
|
||||
return view('admin/index', $out);
|
||||
}
|
||||
|
||||
public function addRefMember(){
|
||||
// $raw_json = file_get_contents('php://input');
|
||||
// $in = json_decode($raw_json, true);
|
||||
// $id_booking = $this->input->post('id_booking');
|
||||
// $in = $this->request->get;
|
||||
// var_dump( $_GET );
|
||||
// exit;
|
||||
$data['email'] = $_GET['email']; // strtolower($this->input->get('email')); // '08174596144';
|
||||
$data['firstname'] = $_GET['firstname']; // $this->input->get('firstname'); //'7978';
|
||||
$data['lastname'] = $_GET['lastname']; // strtolower($this->input->get('lastname')); // '08174596144';
|
||||
|
||||
$out=[];
|
||||
//exit();
|
||||
$out["add_result"] = $this->APIcall('POST', $this->wrenchAdminApiServer(). 'list',$data);
|
||||
//var_dump( $data );
|
||||
|
||||
echo "Ameye Olu Test 0000 ";
|
||||
}
|
||||
//$routes->post('/en/promoadmin/api/v1/auth', 'Promo::promoAuth');
|
||||
//$routes->get('/en/promoadmin/api/v1/list', 'Promo::promoList');
|
||||
//$routes->post('/en/promoadmin/api/v1/list', 'Promo::promoAddRef');
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user