When tinkphp framework is used to set the template. An error occurred on the add page. please help me see where the error is. thank you.

Source: Internet
Author: User
When tinkphp framework is used to set the template. An error occurred on the add page. please help me see where the error occurred. thank you for replying to the discussion (solution)

Can I post code? The page looks a little hard ..
Delete the runtime folder and reload it.

There are a lot of code. No error is reported for a single html access. An error is reported when you put it into the project ..
This error is also returned when the runtime folder is deleted and it is reloaded.

Let's take a look at the code .. Thank you !!!!!!!!!!



Add product








The current location is: product management-add product information

[Return]









Error message: undefined variable _ v
It should be caused by the $ s_category_info variable being false or null. print it on the controller to see if there is any data retrieved from the data table.

Is it because your writing is not standard?

 
     {$k}|{$vo}
 
Yours is
{foreach from=$s_brand_info key=_k item=_v}   {$_v.brand_name}{/foreach}

Is it because your writing is not standard?

 
     {$k}|{$vo}
 
Yours is
{foreach from=$s_brand_info key=_k item=_v}   {$_v.brand_name}{/foreach}

It has been difficult to change for a long time. it may be because of the movement of the TP framework .. Just re-create the pilot framework and redo it all.

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.