One quarter English
One quarter English

Archive for April 2010

Creating nodes in PHP with eZ Publish

April 11th, 2010

There are many threads which detail creating objects in PHP but they all seem to do things slightly differently. Many of the posts are very old and out of date and so they use a very convoluted way of creating objects (this is just half of it!). Since eZ Publish 3.9 there’s been a much better approach to take but it is very well hidden in forum posts. Here’s a summary of how you can use it.
Read the rest of this entry »

Tags: ,

Using standard PHP functions in eZ Publish

April 10th, 2010

Although many standard PHP functions are available in eZ Publish (usually with very different names) there are also a large number which are not available. This seems especially to be the case with the templating functionality for Strings. Common PHP tasks such as str_replace are just not available. There are two simple solutions for this.
Read the rest of this entry »

Tags: , ,