Recently do things need to use thinkphp call Kindeditor, I open the TPL folder directly in the HTML file Editor normal display, but when I enter the URL
Localhost/app/index.php/editor, HTML page can also be displayed, but textarea can not be displayed as Kindeditor page!!
Add to
There is no problem with the relative path of the folder, because opening the HTML file directly can display the Kindeditor editor, but it cannot be displayed when the template is called.
Thank you, ~~~~~~~~~~~~~~~~.
Reply to discussion (solution)
Thinkphp built-in is the Smarty template engine, you try to the template of the JS code, write to the JS file, and then quoted in
According to what you said to try, or not, directly open can, template call cannot display Kindeditor
Thinkphp built-in is the Smarty template engine, you try to the template of the JS code, write to the JS file, and then quoted in
Are you going to teach me now?
Well, it will, the main thinkphp path is too troublesome, will be wrong, we recommend that you first define the path in the configuration file,
And then introduce the compiler
' MySQL ', ' db_host ' = ' localhost ', ' db_name ' = ' xinxi ', ' db_user ' = ' root ', ' db_pwd ' + ' root ', ' db_port ' = > ' 3306 ', ' db_prefix ' = ' x_ ', ' db_charset ' = ' utf8 ', ' Debug_mode ' =>true, ' Url_model ' =>1, ' default_template ' = ' DEFAULT ', ' tmpl_parse_string ' =>array ( ' CSS ' = '/xinxi/xinxi/tpl/ Public/css ', ' IMAGES ' = '/xinxi/xinxi/tpl/public/images ', ' JS ' = '/xinxi/xinxi/tpl/public/js ', ' IMA ' = '/xinxi/upload/images ', ' KIND ' = '/xinxi/xinxi/tpl/public/kindeditor ' );? >
Are you going to teach me now?
Is the landlord going to do it now?