先生No |
事件功能及說明 |
1 |
Sr.No |
Event Function & Description |
1 |
Helper::beforeRender(Event $event,$viewFile)
The beforeRender method is called after the controller’s beforeRender method but before the controller renders view and layout. This receives the file being rendered as an argument.
|
2 |
Helper::beforeRenderFile(Event $event, $viewFile)
This method is called before each view file is rendered. This includes elements, views, parent views and layouts.
|
3 |
Helper::afterRenderFile(Event $event, $viewFile, $content)
This method is called after each View file is rendered. This includes elements, views, parent views and layouts. A callback can modify and return $content to change how the rendered content will be displayed in the browser.
|
4 |
Helper::afterRender(Event $event, $viewFile)
This method is called after the view has been rendered, but before the layout rendering has started.
|
5 |
Helper::beforeLayout(Event $event, $layoutFile)
This method is called before the layout rendering starts. This receives the layout filename as an argument.
|
6 |
Helper::afterLayout(Event $event, $layoutFile)
This method is called after the layout rendering is complete. This receives the layout filename as an argument.
|
Helper::beforeRender(Event $event,$viewFile)
beforeRender 方法在控制器的 beforeRender 方法之後、控制器渲染 view 和 layout 之前呼叫。它接收作為參數呈現的檔案。 |
2 |
Helper::beforeRenderFile(Event $event, $viewFile)
該方法在每個視圖檔案渲染之前被呼叫。這包括元素、視圖、父視圖和佈局。 |
3 |
Helper::afterRenderFile(事件$event, $viewFile, $content)
每個View檔案渲染後都會呼叫該方法。這包括元素、視圖、父視圖和佈局。回呼可以修改並傳回 $content 以變更渲染內容在瀏覽器中的顯示方式。 |
4 |
Helper::afterRender(Event $event, $viewFile)
此方法在視圖渲染之後、佈局渲染開始前呼叫。 |
5 |
Helper::beforeLayout(Event $event, $layoutFile)
該方法在佈局渲染開始之前呼叫。它接收佈局檔名作為參數。 |
6 |
Helper::afterLayout(Event $event, $layoutFile)
此方法在佈局渲染完成後呼叫。它接收佈局檔名作為參數。 |
表>