TP U function logs

Source: Internet
Author: User

Note the U function

The project is done today. I thought we could go online. No problem, but

When I put the TP debug mode off : define(' App_debug ',false);

The page does not load completely , so it turns on: ' show_error_msg ' + true, // display error message

Because I give the HTML page name is Camel Seal method : navoperate.html But after closing the development mode after U function parsing found that the generated path is all lowercase navoper Ate.html

So he couldn't find the file navoperate.html because my view of the HTML file is navoperate.html But if not off development mode U function parsing is case-sensitive

I found on the official network said to open his ' show_page_trace ' =>true on the line but I-style, no effect, because tomorrow will be online, so the name of the view directory unified lowercase

I thought it was okay, but.

All right, keep searching for a long time on the TP official website. You need to write the log manually

<? php    namespace Admin\controller;      Use Think;      Use Think\controller;     class extends Controller {    publicfunction  index () {          \think\log::record (' Test log information ') );    

This is the case for my project.

Can not understand the words here: http://www.thinkphp.cn/topic/12695.html

2015-04-29 21:32:42

TP U function logs

Related Article

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.