EC Cube4で、管理画面とユーザ画面ともに、表題のエラーが発生した。キャッシュをクリアしようと思ったが、管理画面がこのような状態なので、にっちもさっちも行かなくなった。そこで、コマンドラインからキャッシュをクリアする。
>php bin/console cache:clear
EC Cube4で、管理画面とユーザ画面ともに、表題のエラーが発生した。キャッシュをクリアしようと思ったが、管理画面がこのような状態なので、にっちもさっちも行かなくなった。そこで、コマンドラインからキャッシュをクリアする。
>php bin/console cache:clear
PHPコマンドとして、php から実行すること。
>php bin/console c:c
Dockerで、 ローカル環境からDockerhub へpush しようとしたが、 denied: requested access to the resource is denied エラーが出た。結論から言うと、下記のように Dockerhubの名前空間に変更しなければならないようだ。
>docker push hello
The push refers to repository [docker.io/library/hello]
75b7d7e2d2e1: Preparing 1a5ad2344ee1: Preparing ace0eda3e3be: Preparing denied: requested access to the resource is denied
>docker image tag hello:1.0 dockerhub_name/hello:1.0
>docker push dockerhub_name/hello:1.0
The push refers to repository [docker.io/dockerhub_name/hello]
75b7d7e2d2e1: Pushed 1a5ad2344ee1: Pushed ace0eda3e3be: Pushed 1.0: digest: sha256:abcdefghijklmnopqrstuvwxyz123456789 size: 946
class SceduleController extends Controller
{
/**
* @Route("/schedule")
*/
public function indexAction()
{
$scheduleList = [
[
"date" => "2020年11月1日",
"time" => "12:00",
"place" => "群馬",
],
[
"date" => "2020年11月2日",
"time" => "13:30",
"place" => "横浜",
],
[
"date" => "2020年11月3日",
"time" => "18:00",
"place" => "東京",
],
];
return $this->render('AppBundle:Scedule:index.html.twig',
['scheduleList' => $scheduleList]
);
}
}
{% extends "::base.html.twig" %}
{% block title %}AppBundle:Scedule:index{% endblock %}
{% block body %}
<h1>Game Date</h1>
<ul>
{% for schedule in scheduleList %}
<li>{{ schedule.date }} {{ schedule.time }} {{ schedule.place }}</li>
{% endfor %}
</ul>
{% endblock %}
<a href="{{ path("app_member_index") }}">Member Page</a>
$ php composer.phar create-project symfony/framework-standard-edition project-name "2.8.*"
$ php app/console server:start
$ php app/console generate:controller
TextField(
style: TextStyle(
color: Colors.black,
),
decoration: InputDecoration(
filled: true,
fillColor: Colors.white,
icon: Icon(
Icons.location_city,
color: Colors.white,
),
hintText: 'Enter Name',
hintStyle: TextStyle(
color: Colors.grey,
),
border: OutlineInputBorder(
borderRadius: BorderRadius.all(
Radius.circular(10.0),
),
borderSide: BorderSide.none,
),
),
),
Theme(
data: Theme.of(context).copyWith(splashColor: Colors.transparent),
child: TextField(
autofocus: false,
style: TextStyle(fontSize: 22.0, color: Color(0xFFbdc6cf)),
decoration: InputDecoration(
filled: true,
fillColor: Colors.white,
hintText: 'Username',
contentPadding:
const EdgeInsets.only(left: 14.0, bottom: 8.0, top: 8.0),
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(color: Colors.white),
borderRadius: BorderRadius.circular(25.7),
),
enabledBorder: UnderlineInputBorder(
borderSide: BorderSide(color: Colors.white),
borderRadius: BorderRadius.circular(25.7),
),
),
),
);
FirebaseAuth firebaseAuth = FirebaseAuth.instance;
DatabaseReference dbRef = FirebaseDatabase.instance.reference().child('Users');
firebaseAuth
.createUserWithEmailAndPassword(
email: emailController.text,
password: passwordController.text).then((result){
dbRef.child(result.user.uid).set({
'email': emailController.text,
})
FirebaseAuth firebaseAuth = FirebaseAuth.instance;
firebaseAuth.signInWithEmailAndPassword(
email: emailController.text,
password: passwordController.text)
.then((result){
Navigator.pushReplacement(
context,
MaterialPageRoute(builder: (context) => HomePage(uid: result.user.uid)),
);
})
FirebaseAuth.instance.currentUser().then((response) { }
FirebaseAuth auth = FirebaseAuth.instance;
auth.signOut().then((response){}
void main(){
print("A");
futurePrint(Duration(milliseconds: 2000), "B")
.then((status) => print(status));
print("C");
futurePrint(Duration(milliseconds: 1000), "D")
.then((status) => print(status));
print("E");
}
Future<String> futurePrint(Duration dr, String msg){
return Future.delayed(dr).then((onValue) => msg);
}
//A
//C
//E
//D
//B
void main() async {
print("A");
await futurePrint(Duration(milliseconds: 2000), "B")
.then((status) => print(status));
print("C");
await futurePrint(Duration(milliseconds: 1000), "D")
.then((status) => print(status));
print("E");
}
Future<String> futurePrint(Duration dr, String msg){
return Future.delayed(dr).then((onValue) => msg);
}
//A
//B
//C
//D
//E