我正在推销自己的迷你MVC,这样我就能更好地理解设计原则。在我的项目的早期,我需要调用一个不能由我的控制器直接访问的方法。就最佳实践而言,
谢谢!
public function richTextEditor($rich_text_editor_id = null) {
$rich_content_editor_model = new Rich_Text_Editor_Model();
$rich_text_editor_info = $rich_content_editor_model->getRichTextEditorInfo($rich_text_editor_id);
if ($rich_text_editor_info) {
$this->view->rich_text_editor = $rich_text_editor_info['rich_text_editor'];
}
$this->view->render("content/rich_text_editor");
}