我搜索文档但我在cakephp 3中找不到关于ACL实现的任何内容.如何在cakephp 3中使用ACL实现授权?
在我的行为中我需要调用者模型来查找和保存数据.我怎么能做这样的事情.
class MyBehavior extends Behavior {
public function func() {
$entities = $this->find()->all();
}
Run Code Online (Sandbox Code Playgroud) 我有一个包含的子视图文件
<!-- src/Template/Posts/view.ctp -->
<?php
$this->extend('/Common/view');
//1
$this->assign('title', $post);
//2
$this->start('sidebar');
//...
$this->end();
?>
Run Code Online (Sandbox Code Playgroud)
及其包含的父级
<!-- src/Template/Common/view.ctp -->
<h1><?= $this->fetch('title') ?></h1>
<?= $this->fetch('sidebar') ?>
Run Code Online (Sandbox Code Playgroud)
我可以通过方法1,2传递字符串.但是如何将变量从子视图传递给其父视图?