CodeIgniter Archives - Easy!Appointments https://easyappointments.org/blog/tag/codeigniter/ Online Appointment Scheduler Fri, 19 Jan 2024 12:27:31 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.3 https://easyappointments.org/wp-content/uploads/2020/11/cropped-easyappointments-logo-512-32x32.png CodeIgniter Archives - Easy!Appointments https://easyappointments.org/blog/tag/codeigniter/ 32 32 How to enable error logging https://easyappointments.org/2015/04/27/easyhints-enable-error-logging/ https://easyappointments.org/2015/04/27/easyhints-enable-error-logging/#comments Mon, 27 Apr 2015 18:53:31 +0000 https://easyappointments.wordpress.com/?p=196 Easy!Appointments is based on CodeIgniter and thus can be extended and configured to take advantage...

The post How to enable error logging appeared first on Easy!Appointments.

]]>
Easy!Appointments is based on CodeIgniter and thus can be extended and configured to take advantage of the popular PHP framework. You can easily enable PHP error logging in order to debug your installations and store information into plain files on your server. Read the following guide from the official CodeIgniter manual.

https://ellislab.com/codeigniter/user-guide/general/errors.html

Enable Error Logging in Easy!Appointments
Open the /application/config/config.php file and go to line 201: $config[‘log_threshold’] and change its value to 1. Log files will be stored in the /application/logs directory so make sure that it is writable.

EasyHints - Enable Error Logging

The post How to enable error logging appeared first on Easy!Appointments.

]]>
https://easyappointments.org/2015/04/27/easyhints-enable-error-logging/feed/ 1
How to manage translation files https://easyappointments.org/2015/03/09/easyhints-manage-translations/ https://easyappointments.org/2015/03/09/easyhints-manage-translations/#comments Mon, 09 Mar 2015 21:00:00 +0000 https://easyappointments.wordpress.com/?p=150 This week’s post aims to describe the localization process of Easy!Appointments. The project supports the...

The post How to manage translation files appeared first on Easy!Appointments.

]]>
This week’s post aims to describe the localization process of Easy!Appointments. The project supports the translation of the user interface and there are already plenty user-contributed translations in the web. You can easily download and modify them in order to fit your needs or even create your own translations from scratch.

Easy!Appointments uses the CodeIgniter built-in localization system and that means that translation files contain plain PHP code that resides in the “/application/language” directory. Every translation must have its own folder with a sanitized name because CodeIgniter will use it to identify the translation (as described later). The best way to start writing a new translation is to copy the existing english language and convert the “translations_lang.php” file into your own language.

Once you are finished you will have to inform Easy!Appointments that you have inserted a new language so open the “/application/config/config.php” file and find the $config[‘language’] variable. This variable defines the default UI language. It must be one of the $config[‘available_languages’], a variable that contains all the available languages of the installation. The translations defined there must have the same names as the translation folders in the “/application/language” directory. You can add or remove translations by modifying this array.

Visit the Manage Translations wiki page of the project for further information about localization. If you create a new translation that doesn’t already exist please consider sending your files to alextselegidis@gmail.com. Contributors are credited and their work is being much appreciated by people that use Easy!Appointments all over the world.

 

Easy!Hints - Manage Translations

The post How to manage translation files appeared first on Easy!Appointments.

]]>
https://easyappointments.org/2015/03/09/easyhints-manage-translations/feed/ 2