Skip to content

Commit b471880

Browse files
committed
docs: refactor sample code
Anonymous class can't be processed with Sphinx now. user_guide_src/source/database/utilities.rst:20:Could not lex literal_block as "html+php". Highlighting skipped.
1 parent 776926f commit b471880

File tree

1 file changed

+5
-2
lines changed
  • user_guide_src/source/database/utilities

1 file changed

+5
-2
lines changed

user_guide_src/source/database/utilities/001.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
<?php
22

3-
$model = new class () extends \CodeIgniter\Model {
3+
class MyModel extends \CodeIgniter\Model
4+
{
45
protected $table = 'foo';
56
protected $primaryKey = 'id';
6-
};
7+
}
8+
9+
$model = new MyModel();
710

811
$util = \CodeIgniter\Database\Config::utils();
912

0 commit comments

Comments
 (0)