Bleistivt
ModeratorBleistivt Moderator
Reactions
-
Re: How to leverage the model to access the database
Once you have multiple tables, you will need to write your own methods, since the framework can't really guess what their relationship is. One important property of Gdn_Model is that there is always … (View Post)3 -
Re: How to leverage the model to access the database
@rbrahmson You would start by creating a new class.reviewmodel.php. Note that it extends Gdn_Model. You call the constructor with the name of the table ("Review"): <?phpclass ReviewModel… (View Post)8 -
Re: (Vanilla 2.2.1) SphinxSearch exposing full db config via analyticstick.json
Everything set with setData() is exposed to the API. This should probably be documented somewhere, the PHPDoc doesn't make this very clear. (View Post)1 -
Re: (Vanilla 2.2.1) SphinxSearch exposing full db config via analyticstick.json
https://github.com/mcuhq/SphinxSearchPlugin/blob/master/class.sphinxsearch.plugin.php#L164 It adds its configuration to the controller data, so it is probably not only present in analyticstick.json b… (View Post)1 -
Re: MySQL configuration question
Vanillas default MySQL charset is utf8, which is not actually UTF-8, because it stores 3 bytes per character at max, while 4 would be required to fully support all characters, including emoji. utf8mb… (View Post)4