Everybody help to see thinkphp can't load Kindeditor editor What's the matter? There is a sticker code.

Source: Internet
Author: User
Tags smarty template
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?

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.