This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Return the entire current url including querystring | |
* | |
* @author Jeroen v.d. Gulik | |
*/ | |
function full_url() | |
{ | |
return current_url() . get_querystring(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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'); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class MY_Controller extends CI_Controller { | |
public $data = array(); | |
public $view; | |
public function __construct() { | |
parent::__construct(); | |
$this->view = ($this->view !== null) ? $this->view : $this->router->directory . $this->router->class . '/' . $this->router->method; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@if ( $message == 'success' ) | |
It was a success! | |
@elseif ( $message == 'error' ) | |
An error occurred. | |
@else | |
Did it work? | |
@endif | |
@foreach ($comments as $comment) | |
The comment body is {{ $comment->body }}. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
$active_group = 'default'; | |
$active_record = TRUE; | |
$db['default']['hostname'] = 'localhost'; | |
$db['default']['username'] = 'username'; | |
$db['default']['password'] = 'password'; | |
$db['default']['database'] = 'myDatabase'; | |
$db['default']['dbdriver'] = 'mysql'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected $base_url = ''; // The page we are linking to | |
protected $prefix = ''; // A custom prefix added to the path. | |
protected $suffix = ''; // A custom suffix added to the path. | |
protected $total_rows = 0; // Total number of items (database results) | |
protected $per_page = 10; // Max number of items you want shown per page | |
protected $num_links = 2; // Number of "digit" links to show before/after the currently viewed page | |
protected $cur_page = 0; // The current page being viewed | |
protected $use_page_numbers = FALSE; // Use page number for segment instead of offset | |
protected $first_link = '‹ First'; | |
protected $next_link = '>'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CONTROLLER | |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class Controllername extends CI_Controller { | |
public function index() | |
{ | |
if (!empty($_POST)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var maxHeight = 0; | |
$(".waa3").each(function(){ | |
maxHeight = $(this).height() > maxHeight ? $(this).height() : maxHeight; | |
}).height(maxHeight); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"draw_white_space": "all", | |
"file_exclude_patterns": | |
[ | |
"*.pyc", | |
"*.pyo", | |
"*.exe", | |
"*.dll", | |
"*.obj", |