Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Announcing Unofficial Version 1.2 of bp-skeleton-component


Jeff Sayre
Participant

@jeffsayre

Hum…

Well, as it is written in the example, the populate function gets called directly through the bp_example_tablename(), passing the contents of $id via $this->id.

There are some alternative examples of the populate function that do take arguments. In particular, look at populate() in bp-blogs-classes.php, bp-groups-classes.php, bp-messages-classes.php, and bp-xprofile-classes.php. In some of those files, there is more than one occurrence of the populate function. They exist in different classes.

Perhaps in the skeleton we should provide a commented out example of a populate function that takes arguments.

Skip to toolbar