Home  >  Article  >  Backend Development  >  Too few arguments 如何解决这有关问题

Too few arguments 如何解决这有关问题

WBOY
WBOYOriginal
2016-06-13 11:09:575958browse

Too few arguments 怎么解决这问题
Too few arguments D:\website\xxx\application\libraries\Dpagination.php 116
去看这里的代码是 return sprintf ( $this->target, $id );跟一个分页类有关的
 上面的被注释了  
------解决方案--------------------
你的 $this->target 中 % 符号至少有两个,而你没有使用占位符。

可参照用法:
http://www.w3school.com.cn/php/func_string_sprintf.asp

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn