FORUMS CLOSED DUE TO SPAM. YOU STILL CAN ADD POST!

slowgary posts

Feed 0 posts

Frontend Controllers

Hi, sorry if this has already been answered, but these forums are broken – clicking one the page 2 link after searching forgets your search credentials.

I’ve been tinkering with a plugin, and I love how easy it is to do in frog. What I can’t figure out is how to cleanly use that plugin on the frontend. Once my plugin is installed it works great in admin, but the only ways I’ve been able to use the plugin on the frontend is by writing new code in snippets, or in the layout, or I put functions in the plugin’s index.php and call them from a layout, which usually means each plugin needs it’s own layout. This just seems unclean to me, and I’d really like to just install the plugin and have it work on a frog cms without any further code.

Also, I’ve read about wolf and the “split” between frontend and backend. Does this have anything to do with what I’m talking about? Is there a way to create a frontend controller? I’ve tried a bunch of things but I must be missing something. Any ideas?

 

File Manager - show folders before files

It bothered me that the folders were not above files in the file manager. Instead, they were all shown together alphabetically.

I added the following single line of code in FileManagerController.php:

$file = ‘\’.$file;

This should be line 371. It causes folders to be displayed above files. I’ve tested it and see no problems.

 

Duplicate IDs in Administration / Settings tab

The IDs for both the language select element and theme select element are both the same. The admin select element should be changed to ‘setting_theme’ instead of ‘setting_language’.