CodeIgniter – Bonfire
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
php split()
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
PHP Single vs Double quotes
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
Dynamic calling function in php
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
Better Server Setup for CI
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
Cfwheels
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
Moving WordPress to subfolder
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
XAMPP for Windows
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
