16 July 2011 ~ Comments Off

Models in Skoot

Models are the “M” in “MVC”, and play a key roll in keeping your separation.What I will be covering here can be taken to most PHP frameworks with a little tweak. Below I will cover how to use the Models in the Skoot PHP framework. First a little about Skoot: This small but powerful PHP [...]

Continue Reading

Tags: ,

01 June 2011 ~ Comments Off

Capistrano and PHP

Capistrano loves PHP also! When I say Capistrano to most PHP developer they think Ruby on Rails right away. This is mostly the case because Capistrano got it’s fame from the Rails community. Capistrano has been good to thousands and thousands of Rails developers so why can it do the same for a PHP developer [...]

Continue Reading

Tags:

03 May 2011 ~ Comments Off

Codeigniter Views

Multiple views! Did you know you can load multiple views in a Codeigniter controller method? I have always believed it was one view to one action, but that is not the case! CodeIgniter will intelligently handle multiple calls to $this->load->view from within a controller. If more than one call happens they will be appended together. [...]

Continue Reading

Tags: ,

04 March 2011 ~ Comments Off

Skoot PHP Framework

Skoot a micro framework This small but powerful PHP “micro” framework is a result from another project. I started using a “micro” framework called NiceDog. NiceDog is a very cool little one file framework that is super simple to use and get started with. It lacks the basic needs such as a database layer and [...]

Continue Reading

Tags:

28 January 2011 ~ 1 Comment

Caching Driver CI 2.0

With the latest release of Codeigniter, they added whats called “Caching Driver” allowing you to now use Memcache without going to a separate library as detailed in an older post: Memcache with Codeigniter. They now also support File based caching, Alternative PHP Cache (APC) Caching and Dummy Cache. CodeIgniter features wrappers around some of the [...]

Continue Reading

Tags: ,

21 January 2011 ~ 2 Comments

Quick and Easy Way To Do Autocomplete

Auto complete forms are now becoming essential to every day web development and knowing how to build such a tool will in some cases make you a hero! In the tutorial below i will be using PHP and jQuery. jQuery offers its own tool for this common problem in the jQuery UI library.

Continue Reading

28 August 2010 ~ Comments Off

PHP/MySQL after 2010-005

After applying Security Update 2010-05, some users have reported PHP and MySQL problems, including an inability to connect to MySQL databases. Apple reports that the following procedure resolves the database connection issue: In the Terminal type sudo nano /etc/php.ini (Terminal will ask you for your password) Change: mysql.default_socket = to: mysql.default_socket = /tmp/mysql.sock Press Ctrl-O, [...]

Continue Reading

Tags: ,

22 August 2010 ~ Comments Off

phpArmory for WoW

phpArmory is a PHP class library. It allows php software developers to easily access data from the World of Warcraft Armory website. This is useful because the Armory website contains up-to-date and official details on characters, guilds, and items in World of Warcraft.

Continue Reading

Tags:

04 August 2010 ~ Comments Off

PHP 5.3.3 Backwards incompatible change

Methods with the same name as the last element of a namespaced class name will no longer be treated as constructor. This change doesn’t affect non-namespaced classes. namespace Foo; class Bar { public function Bar() { // treated as constructor in PHP 5.3.0-5.3.2 // treated as regular method in PHP 5.3.3 } } Update from [...]

Continue Reading

Tags:

03 August 2010 ~ 1 Comment

var_export in PHP 5

So var_export(mixed $expression [, bool $return = false ] ) outputs or returns a parsable string representation of a variable.

Continue Reading

Tags:

19 July 2010 ~ Comments Off

Data Filtering

Time to leave $_GET and $_POST in the dust! In fact, you probably shouldn’t use $_GET and $_POST anymore. Since PHP 5.2, there is a new and better way to safely retrieve user-submitted data.

Continue Reading

Tags:

16 July 2010 ~ 1 Comment

Paulette Greene

One of the latest project i have done for SCI is for a client named Paulette Greene. They are a large realtor shop here in the DFW (Dallas/Fort Worth) area.

Continue Reading

Tags: ,

30 June 2010 ~ 1 Comment

Query Strings in Codeigniter

In some cases you might prefer to use query strings URLs and not the pretty URLs. CodeIgniter optionally supports this capability which can be enabled in your application/config.php file.

Continue Reading

Tags: ,

23 June 2010 ~ 1 Comment

PHP5 Method Chaining

One improvement over PHP4 to PHP5 is something called method chaining and enables us to do pretty cool things like…

Continue Reading

Tags:

22 June 2010 ~ Comments Off

Nice Dog Framework

I just came across this mico php framework a few nights ago. When i say “micro” i mean micro, this framework is one file!

Continue Reading

Tags: