Tag Archives: PHP

Netbeans PHPUnit Code Completion

By default, Netbeans dosen’t do code completion for PHPUnit classes even though it includes support for PHPUnit. Thankfully, adding in the code completion support is very easy. Simply go to Tools>Options>PHP>General and then click “Add Folder” under the Global Include … Continue reading

Posted in PHP | Tagged , , , , | Leave a comment

PHPUnit require_once(PHP/CodeCoverage… Error on Ubuntu

When trying to install PHPUnit on Ubuntu 11.10, I received the following error: PHP Warning: require_once(PHP/CodeCoverage/Filter.php): failed to open stream: No such file or directory in /usr/bin/phpunit on line 38 PHP Fatal error: require_once(): Failed opening required ‘PHP/CodeCoverage/Filter.php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in … Continue reading

Posted in PHP | Tagged , , , , , | Leave a comment

Retrieving and Displaying Netsuite Address Information

Adam Haeder requested to see some sample code for accessing address information via the Netsuite Webservices API. So here it is:

Posted in Netsuite PHPToolkit, PHP | Tagged , , , , , , | 1 Comment

PHP Output Buffering (with HTML)

Over the past year I have made heavy use of PHP output buffering. Although it serves no function purpose, it can make for much more readable code; I have found it particlarly useful for outputting HTML from methods. Consider the … Continue reading

Posted in Html, PHP, Uncategorized | Tagged , , , , | Leave a comment

Symfony including extra libraries or classes

I had a need lately to include an external library of php classes in a Symfony project. On option was dumping them into the lib folder, but I didn’t want to do that. At first I tried placing a script … Continue reading

Posted in 1.4, PHP, Symfony | Tagged , , , , | 1 Comment

Netsuite Webservices and Multiple Item Sales Orders

By request, here is a post on creating a sales order record with Netsuite PHPToolkit with more than one item: Its not all that intuitive, but that’s Netsuite Web-services for you…

Posted in Netsuite PHPToolkit, PHP | Tagged , , , , | Leave a comment

Create Netsuite Customer with Addresses

Figuring out how to do address arrays on a Netsuite Customer can be rather complicated so I thought I would share some sample code:

Posted in Netsuite PHPToolkit | Tagged , , , | 6 Comments

Symfony override getter

Similar to overriding setters, overriding getters in symfony has a strange syntax. Rather than doing the normal override code you must use special methods. This code will NOT work consistently: However, this code will work: Although the first code will … Continue reading

Posted in 1.4, Symfony | Tagged , , , , | 1 Comment

Allowing Slashes in a Symfony Route

Symfony routing is a wonderful tool. Recently, however, I have wanted to include a slash in a route parameter. This can seem problematic as symfony uses slashes to delimit parameters. For example, lets say I wanted the url http://www.example.com/user/john/jacob/jingleheimer/schmidt to … Continue reading

Posted in 1.4, Symfony | Tagged , , , , | 1 Comment

What is a Framework?

What is a Framework? Why should I use one? Which one should I choose? Often new programmers will ask such questions. Frameworks have become important enough in software development that ignoring them would be unwise, so in this post I … Continue reading

Posted in Symfony | Tagged , , | Leave a comment