输出在我的PHP文件中创建的日期时出现问题.
我一直在关注如何创建一个真正的基本CMS平台的教程,以帮助我理解一些基础知识,databases并且PHP在我尝试输出页面创建日期之前,一切都进展顺利.
这是我得到的错误
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): It is not safe to rely on the system's timezone settings.
You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of
those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in
C:\MAMP\htdocs\basic-cms\page.php:22 Stack …Run Code Online (Sandbox Code Playgroud) 目前,当用户提交表格时,它会显示并感谢您叠加 - 2.5秒后,我希望叠加层消失.
我目前的代码看起来像这样.
import { Component } from '@angular/core';
import { NavController, ViewController } from 'ionic-angular';
import { Storage } from '@ionic/storage';
@Component({
selector: 'finish-page',
templateUrl: 'finish.html'
})
export class FinishPage {
constructor(
public navCtrl: NavController,
public viewCtrl: ViewController
)
{}
ionViewWillEnter()
{
setTimeout(() => {
this.navCtrl.popToRoot();
}, 2500);
}
}
Run Code Online (Sandbox Code Playgroud)
但页面永远保持不变,永远不会弹回到根页面
编辑:我认为我有超时工作,但现在我收到此错误:
无法读取未定义的属性'popToRoot'