Skip to main content

Posts

Showing posts from July, 2017

Setting up PHP CodeIgniter

I like to tweak CodeIgniter beyond what the common settings are. There are a few quirks here and there that I sometimes wish were native features of CodeIgniter. Some internal settings make it seem like they are going to work but then you realize that they just don't work the same across all servers. So, here's my CodeIgniter setup.

First thing, of course, is to download CodeIgniter and extract it to the folder location where you'll be using it from. Visit that directory in your browser and you'll notice that CodeIgniter is setup and ready to go. That's it! Simple, right?

To make most out of CodeIgniter you'll want to keep reading.

First, open application/config/routes.php and modify the $route['default_controller'] element. I normally change mine to main. Open the application/controllers/ directory and rename the Welcome.php file to Main.php. Open the Main.php file and change the class name from Welcome to Main. Test to make sure it's working.

Next…

Getting Started with Git

This article is meant to get you started with GIT fast. There won't be too much clutter as this article can be used as a reference later on. The following will focus mainly on Windows users.
Download Git: https://git-scm.com/downloadsInstall Git leaving everything as defaultOpen the newly installed Git Bash Shell. You'll also notice Git CMD and Git GUI have been installed.Git CMD and Git Bash will essentially have the same Git commands.Git GUI is a graphical way of using Git.Edit the Git author configurationsgit config --global user.email "dinocajic@gmail.com"git config --global user.name "Dino Cajic"Omitting --global lets you specify different users for different repositoriesCreate a directory on your computer. Place a file such as index.html in it if you choose to do so.Go back to your Git Bash shell and navigate to your folder using the cd command.Once you're inside your folder type git-initThis creates a Git repository. If you go to your directory yo…