Getweblist (Array (' Web_show ' =>1, ' web_page ' = = Array (' Like ', $web _page. ') %')));
-------------Beautiful Split Line-----------------
/**
* Read List of records
*
* @param
* @return return result in array format
*/
Public Function getweblist ($condition = Array (' web_page ' = ' = ' index '), $page = ') {
$result = $this->table (' web ')->where ($condition)->order (' Web_sort ')->page ($page)->select ();
Print_r ($result);
return $result;
}
--------------Gorgeous split-line----------------
The parameters in the color corresponding to the above are not understood, especially web_page ' = = Array (' Like ', $web _page. ' % ') in%, looking at what makes people dizzy, what does the author want to express?
Reply to discussion (solution)
Array (' Like ', $web _page. ' % ') does not appear in the code you posted, so your question is a bit unreasonable
However, in the form of an array, this should be the Ordbms encapsulated parameter format, which is eventually translated into the Linke ' xxxx% ' clause of the SQL directive