CodeIgniter Sessions Variables

CodeIgniter uses it’s own sessions variables, so you won’t be working with native PHP sessions and functions. Below are how to set and get session variables, as well as display all the session variables for debugging. Set a session variable ‘user_id’ with a value of 41:   Get a session variable ‘user_id’ and display it:

CodeIgniter Sessions Variables Read More »

$_SERVER[‘DOCUMENT_ROOT’], You’ve Done Me Wrong

$_SERVER[‘DOCUMENT_ROOT’] is good for getting the full path to your websites root folder, but depending on the DocumentRoot directive in httpd.conf you may or may not have a forward slash at the end of the returned url.  This always annoys me when developing locally and everything is working.  Then you upload and test on the production system,

$_SERVER[‘DOCUMENT_ROOT’], You’ve Done Me Wrong Read More »

CSS Ready Classes for Gravity Forms

These are classes defined in the Gravity Forms style-sheets that allow for more complex layouts. These classes can be assigned under the advanced tab, for the field labeled “CSS Class Names”. For two column layouts use: gf_left_half gf_right_half For three column layouts use: gf_left_third gf_middle_third gf_right_third List classes (turn multiple choice/checkbox into multiple columns) gf_list_2col

CSS Ready Classes for Gravity Forms Read More »

Scroll to Top