File tree Expand file tree Collapse file tree
user_guide_src/source/libraries Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,12 +85,12 @@ type of response to return. If no matches are found between what the client requ
8585format in this array is what will be returned.
8686
8787Next, you need to define the class that is used to format the array of data. This must be a fully qualified class
88- name, and the class must implement **CodeIgniter\\ API \\ FormatterInterface **. Formatters come out of the box that
88+ name, and the class must implement **CodeIgniter\\ Format \\ FormatterInterface **. Formatters come out of the box that
8989support both JSON and XML::
9090
9191 public $formatters = [
92- 'application/json' => \CodeIgniter\API \JSONFormatter::class,
93- 'application/xml' => \CodeIgniter\API \XMLFormatter::class
92+ 'application/json' => \CodeIgniter\Format \JSONFormatter::class,
93+ 'application/xml' => \CodeIgniter\Format \XMLFormatter::class
9494 ];
9595
9696So, if your request asks for JSON formatted data in an **Accept ** header, the data array you pass any of the
You can’t perform that action at this time.
0 commit comments