Archive for the ‘XML’ Category

Symfony sfException Call to undefined method BaseModel::__toString


Working on some projects in Symfony recently. I ran into a problem when I used the symfony admin generator to create a "backend" module for a table that has a foreign key relationship. Symfony was looking for me to have a __toString() function in my model so it could create ...

To PHP5 or not to PHP5


I consider myself an Open Source Developer but I very rarely develop for the open source community. I create apps for businesses, where I work, and some side projects. I share code with those I work with obviously, but generally not with the PHP community as a whole. ...

VS2005 Errors when creating .aspx pages that retrun XML or JSON


I kept getting this on a page that did nothing but reference a code behind. Validation(): Element 'html' occurs too few times. This is because VS2005 is performing HTML validation by default. Yuk. You can turn this off by going to: Tools --> Options --> Text Editor --> HTML --> Validation Uncheck ...

Handy AJAX data structures using JSON, XML, ADODB, PHP, and Mysql


I'm working on a project where I thought a little AJAX magic would help the user interface a bit, so I've been adding that functionality piece by piece. For this web site, we've previously standardized on using the ADODB PHP database abstraction library for all our queries. The particular circumstances ...

XForms cometh to PHP ! Throw out HTML_Quickform?


PHP Architect has an article in their June 2006 issue about using XForms within PHP5. If you don’t know what XForms is/are, you’d better look into it. It’s basically a way to describe forms on your page and all the data validation rules entirely in XML. ...

Smarty not so smarty in PHP5. Try XSLT instead.


So I’ve been working on this pretty big migration project lately, from PHP4 / MySQL 4 to PHP5 / MySQL5. It’s even larger because we’re moving from a largely procedural code base to using objects with inheritance and a lot of composition. So what’s all that have to do with ...

The SqlXML class — PHP sql query results in XML via object


For a personal project that I’m working on in PHP4, I’m using XSLT to display a bunch of pages. Most times, I don’t use the XSL transforms for the whole page, usually just tables of data that are returned from a query. The first thing that you need to ...

Close
E-mail It