Skip to content

Instantly share code, notes, and snippets.

View joelg's full-sized avatar

Joel Gascoigne joelg

View GitHub Profile
puts "Hello World"
// put this in application/config/routes.php
$route['default_controller'] = "welcome";
$route['scaffolding_trigger'] = "";
$controllers = glob(APPPATH."controllers/*.php");
$route_string = "";
foreach($controllers as $controller) {
$controller = str_replace("../system/application/controllers/", "", $controller);
$controller = str_replace(".php", "", $controller);
function log(message)
{
try {
console.log(message);
} catch(e) {
// do nothing
}
}
if($("#some_element").is(":visible"))
{
// element is visible
}