我是Codeigniter的新手,我正在看Codeigniter的视频博客教程,但当我使用脚手架并尝试添加一些东西时,就像这样给我按摩。
<?php
class Blog extends Controller {
function Blog()
{
parent::Controller();
$this->load->scaffolding('entries');
}
function index()
{
$data['title'] = "This is my title of the page
我知道我可以用这样的方法来计时我的$.ajax呼叫
var ajaxTime= new Date().getTime();
$.ajax({
type: "POST",
url: "some.php",
}).done(function () {
var totalTime = new Date().getTime()-ajaxTime;
// Here I want to get the how long it took to load some.php and use it further
});
但是,我希望有一种通用的方
我已经在Laravel-5.8中编写了POST请求端点,以供用户登录。这是文件的位置:
localhost:8888/tsl-clientportal-app/clientportal-backend
AuthCoontroller.php
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;
use Carbon\Carbon;
use App\User;
use App\Notifications\SignupActiva