Validus … talkin bout <code> n sh!t

5Mar/120

CodeIgniter – Bonfire

Posted by Joey

Trying out a nice little admin app called ‘Bonfire’ for my next PHP project. It backs on to the Code Igniter framework, so already it sounds awesome!

The guys at Bonfire have made it easy to jump into creating you’re next project. With all the essentials such as Users, Roles & Logins taken care of by Bonfire’s core modules, you can dive straight into… Continue reading

Filed under: PHP No Comments
14Sep/110

php split()

Posted by Joey

Bit behind the eight ball, but the php function split(string $pattern, string $string) is depreciated. Instead use explode(string $delimiter, string $string)

1

For more info… http://php.net/manual/en/function.explode.php

Filed under: PHP No Comments
1Aug/110

PHP Single vs Double quotes

Posted by Joey

Had a question yesterday…

Is it bad practice to use double quotes (“) for almost all my expressions in…well, anything? As opposed to a single quote? I know there’s a difference between the two and when to use it, but is it just generally better practice to use single instead of double? Most developers I see use single quotes for almost everything.

Quick answer, there’s no… Continue reading

Filed under: PHP No Comments
8Dec/100

Dynamic calling function in php

Posted by Joey

Had a problem with trying to keep things DRY in PHP. I needed a better solution that hard coding every single function name in a case statement.

I found a great function that handles this, call_user_func()

http://php.net/manual/en/function.call-user-func.php
1

This will return the… Continue reading

Filed under: PHP No Comments
24May/100

Better Server Setup for CI

Posted by Joey

I’ve been using Code Igniter (CI) for a lil bit, but one of the things I noticed… with most frameworks – you need to keep re-creating the entire framework folder for each app.

The best thing to do is keep it in one spot, and map to it relatively. I’ve done this all the time in CF – which is heaps easy to do with the CF Admin -… Continue reading

Filed under: PHP, Stuff No Comments
11Feb/100

Cfwheels

Posted by Joey

I’ve been checking out this new framework I might use for future cf projects while the fate of fusebox is still undecided. Regardless it seems like the cf version of php’s code ignitor… Continue reading

Filed under: CF, Stuff No Comments
30Jul/090

Moving WordPress to subfolder

Posted by Joey

Okay, I did a dud thing and moved my wordpress into a sub-folder and forgot to re-configure it. Totally messed up all the stylesheets and the login and everything.

Anyway I found out how to fix it. So firstly, move all your wordpress files from your root level to a sub folder like ‘wordpress’ – move the index.php file as well!

in /wordpress/wp-config.php

add the following lines… Continue reading

Filed under: Stuff No Comments
3May/090

XAMPP for Windows

Posted by Joey

I recently started using this program its fantastic! It’s like Uniform Server yet slightly better. XAMPP is a type of WAMP (Windows/Apache/MySQL/PHP) that runs straight off your computer.

http://www.apachefriends.org/en/xampp-windows.html

Uniform Server on the other can run off a single usb – simply by running the app it mounts a virtual drive for your web server and off you go. When your done, simply stop and the drive is unmounted. On the other Continue reading

Filed under: CF, Stuff No Comments