我使用的是CakePHP 3.6.7,我的问题是当我在控件窗体中使用关联数据时,我得到了unable to emit headers警告。下面是我的代码:public function initialize() {
</div>正如我所说的,如果我在control() form helper中使用相关数据,它将在调试模式下抛出该警告。如果我不在调试模式下,
class User < ActiveRecord::Base has_many :book_usersend
belongs_to :user has_many :users, :through => :book_users用户可以写多本书一本书只能属于一个用户用户可以是不同书籍的读者一本书可以由不同用户阅读
Us