⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Missing "set_theme" Function / source code ?



pmcintyre
  • profile picture
  • Member

Posted 16 December 2020 - 19:50 PM

Hi,

 

I just Downloaded :

  * CodeIgniter 4.04

  * Bootstrap 4.5.3

  * GroceryCrud 2.01

  * bootstrap-V4-theme-v1.5.2.zip

 

I cannot find the "set_theme" function in the source code. 

 

I can set the Default Theme ($default_theme) (to: bootstrap_v4 in the app/Config/GroceryCrud.php file) -- this works OK.

However, when I try to call set_theme, it is not found anywhere, and I get:  

Whoops!

We seem to have hit a snag. Please try again later...

 


web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 19 December 2020 - 05:02 AM

Hi,

 

I just Downloaded :

  * CodeIgniter 4.04

  * Bootstrap 4.5.3

  * GroceryCrud 2.01

  * bootstrap-V4-theme-v1.5.2.zip

 

I cannot find the "set_theme" function in the source code. 

 

I can set the Default Theme ($default_theme) (to: bootstrap_v4 in the app/Config/GroceryCrud.php file) -- this works OK.

However, when I try to call set_theme, it is not found anywhere, and I get:  

Whoops!

We seem to have hit a snag. Please try again later...

 

You can find the documentation for the Grocery CRUD version 2 community edition here: https://github.com/scoumbourdis/grocery-crud-codeigniter-4/blob/master/README.md#api-and-functions-list

To answer your question you should use setTheme instead

Regards

Johnny