opencart 路线不匹配任何功能
opencart routes does not match any function
当我请求这个 url 时,
https://localhost/index.php?route=product/search/ajax&keyword=brocco
opencart return 一个产品对象
[
{
"name":"Broccoli (Broccoli)",
"href":"https:\/\/localhost\/broccoli?keyword=brocco",
"image":"https:\/\/localhost\/image\/cache\/catalog\/product\/broccoli_new-47x47.jpg"
}
]
但我没有找到 product/search/ajax 方法。
ajax
函数不在
中
catalog/controller/product/product.php (class ControllerProductProduct)
或 catalog/controller/product/search.php (class ControllerProductSearch)
如果方法 product/search/ajax
在 catalog/controller/product/search.php
文件中不存在,那么它应该在以下文件中。
system/modification/catalog/controller/product/search.php
当我请求这个 url 时, https://localhost/index.php?route=product/search/ajax&keyword=brocco
opencart return 一个产品对象
[
{
"name":"Broccoli (Broccoli)",
"href":"https:\/\/localhost\/broccoli?keyword=brocco",
"image":"https:\/\/localhost\/image\/cache\/catalog\/product\/broccoli_new-47x47.jpg"
}
]
但我没有找到 product/search/ajax 方法。
ajax
函数不在
catalog/controller/product/product.php (class ControllerProductProduct)
或 catalog/controller/product/search.php (class ControllerProductSearch)
如果方法 product/search/ajax
在 catalog/controller/product/search.php
文件中不存在,那么它应该在以下文件中。
system/modification/catalog/controller/product/search.php