Login/Register
CodeIgniter v1.70... I Like it! - (21st November 2008)
So i had just finished an exam today and decided to take a break from study for a few hours. I was working on a custom made forum that I'm currently building (It's still very early in development). I was dealing with some forms that needed to be validated and I noticed that on the CI User guide the form validation class had been upgraded in the new update of CodeIgniter.
You can see it in action here --> http://codeigniter.com/user_guide/libraries/form_validation.html. It's very nice and requires less code than the old validation class.
Posted by Mario @ 1:17am
View Comments
CodeIgniter on IIS - (21st October 2008)
I ran into some issues today trying to get my previously working (on apache) CodeIgniter setup to work on my IIS web hosting. The problem I was having is that there wasn't any errors shown, just a blank page with no errors at all.
I quickly found that my website worked fine if I placed it in a folder, although not wanting to have ugly URL's i pointed my hosting to go to that folder through CPanel.
Now that problem was solved I wanted to hide the index.php part of the URL to make the URL's look nice and neat. There is a guide to do this on apache using mod_rewrite here http://codeigniter.com/wiki/mod_rewrite/ , although I only have access to ISAPI_rewrite on IIS.
After googling a bit i found some instructions to use ISAPI_rewrite to make clean URL's. The first step is to edit the httpd.ini file and put in the following info
[ISAPI_Rewrite]
RewriteRule /(?:css|img)/(.*) $0 [I,L]
RewriteRule /robots\.txt $0 [I,L]
RewriteRule /(.*) /index.php\?/$1 [I,L]
If you look at the code above you'll see that the second line has css and img in the brackets, this is because I use css and img folders for my website, you will need to change this to show whatever folders you use, you can have as many as you like, just seperate them with a | for example, if you had folders, "fol1" "fol2" and "fol3" your line would show this:
RewriteRule /(?:fol1|fol2|fol3)/(.*) $0 [I,L]
Once this is done you will need to change your config.php file located in "system/application/config". The line with the index page should read
$config['index_page'] = "";
After that, you should be able to access pages on your website using clean URL's like http://www.rampage-online.net/articles
Good luck :P
Posted by Mario @ 6:01pm
View Comments
Welcome - (12th September 2008)
Hello everyone and welcome to rampage-online. The first thing you should know is this website isn't complete as just yet, the software and images sections aren't done yet, although everything else should be working fine. I'm still looking to make a new banner as I put together the current one in less than 2 minutes, very rushed job.
Over the next few weeks i'll be adding some example PHP and Mysql articles and tutorials. I'll also be adding open source PHP software on the software section above. I'm planning on making an interactive chat program and maybe a photo gallery + simple poll.
I've made some cool code boxes like this -->
<?php
echo 'php code goes here!';
?>
To house the code :P
So I can make nice lil code snippets :)
Enjoy
Posted by Mario @ 11:30am
View Comments