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.