Tag Archives: sample code

Changing Symfony Routing Requirements

One of my favorite features of Symfony is the routing sub-system.  It allows for very flexible routing rules.  On a project I have been working on, I have been tweaking the routing requirements in Symfony.  One really nice feature is … Continue reading

Posted in 1.4, PHP, Symfony | 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

Jquery Validation Plugin with multiple forms

I love using the Jquery Validation plugin on my html forms. It makes frontend validation very easy and painless. However, today I noticed a strange problem, when I was pressing the submit button on a form, it was requiring fields … Continue reading

Posted in Html, JavaScript, jQuery, Plugin | Tagged , , , , | Leave a comment

Javascript Associative Array Empty?

I was trying to form an associative array in javascript and made the mistake of trying to form it with the following code. When I dumped the variable I found it was empty. As to be expected, this is another … Continue reading

Posted in Html, JavaScript | Tagged , | Leave a 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

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

Create/Update Netsuite Estimate via PHP

For whom it may interest, here is some more sample code for using the php toolkit to update/create Netsuite Records.

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