Creating a CI service for using templating engine? |
03-22-2018, 03:08 AM
(This post was last modified: 03-22-2018, 03:17 AM by gabpnr. Edit Reason: missing comma )
Hello,
yes, the best way is certainly by creating a service to initliase the Plate class and call his render. Something like this : application/Config/Services.php Code: // ... and in any controller action Code: $data = [ |
Messages In This Thread |
Creating a CI service for using templating engine? - by happyape - 03-22-2018, 02:18 AM
RE: Creating a CI service for using templating engine? - by gabpnr - 03-22-2018, 03:08 AM
RE: Creating a CI service for using templating engine? - by happyape - 03-22-2018, 03:24 AM
|