Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
今私はプロジェクトを持っていpyrocmsます.モジュールのコントローラで現在のIDユーザーを取得するのに問題があります.誰もそれを取得する方法を知っていますか?
pyrocms
使用する:
$this->current_user->id
これは私に返っnullてきます。 エコーしているテンプレートにログインしていることを知っています
null
{{ user:display_name }}
大丈夫です。
奇妙さ