Skip to content

Instantly share code, notes, and snippets.

View mpmont's full-sized avatar

Marco Monteiro mpmont

View GitHub Profile
@mpmont
mpmont / CI_ide_helper.php
Created September 20, 2012 18:26 — forked from autokludge/CI_ide_helper.php
Code Completion helper for CodeIgniter
<?php die('This file is not really here!');
/**
* ------------- DO NOT UPLOAD THIS FILE TO LIVE SERVER ---------------------
*
* Implements code completion for CodeIgniter in phpStorm
* phpStorm indexes all class constructs, so if this file is in the project it will be loaded.
* -------------------------------------------------------------------
* Drop the following file into a CI project in phpStorm
* You can put it in the project root and phpStorm will load it.
@mpmont
mpmont / app-controllers-home2.php
Created September 25, 2012 18:31 — forked from dshoreman/app-config-blade.php
Custom loader class for CodeIgniter that implements Laravel's Blade templating engine
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Home extends CI_Controller {
public function index()
{
$this->view = false;
echo $this->load->blade('home.index');
}
}