This file contains 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 defined('BASEPATH') OR exit('No direct script access allowed'); | |
Class Romina{ | |
public function __construct() | |
{ | |
date_default_timezone_set('America/Mexico_City'); | |
setlocale(LC_TIME, 'es_ES'); | |
$this->load->library('session'); | |
$this->load->library('user_agent'); | |
$this->load->database(); |
This file contains 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 Base_model extends CI_Model{ | |
/** | |
* { function_description } | |
*/ | |
function __construct() | |
{ | |
parent::__construct(); | |
} |
This file contains 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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} ^system.* | |
RewriteRule ^(.*)$ /index.php?/$1 [QSA,L] | |
RewriteCond %{REQUEST_URI} ^application.* | |
RewriteRule ^(.*)$ /index.php?/$1 [QSA,L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d |
This file contains 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
// Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/ | |
// See also: http://www.paulund.co.uk/change-url-of-git-repository | |
$ cd $HOME/Code/repo-directory | |
$ git remote rename origin bitbucket | |
$ git remote add origin https://github.com/mandiwise/awesome-new-repo.git | |
$ git push --set-upstream origin master | |
$ git remote rm bitbucket |
This file contains 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
/* simple snippet for create Code Igniter base_url() and site_url() in JavaSCript */ | |
<script type="text/javascript"> | |
var js_site_url = function( urlText ){var urlTmp = "<?php echo site_url('" + urlText + "'); ?>";return urlTmp;} | |
var js_base_url = function( urlText ){var urlTmp = "<?php echo base_url('" + urlText + "'); ?>";return urlTmp;} | |
</script> | |
/* e.g. use in js in the same way use in PHP Code Igniter*/ | |
<script> | |
js_site_url('main/ajaxcall'); | |
</script> |