Forums / Developer / Custom Database Tables
Raghu Rao
Monday 01 November 2010 4:02:57 pm
Hi there,
I have been asked to create a resource sharing system (the resource could be as simple as an article) for which i need to track the progress of the article. This involves who was the first creator, who the resource got shared with, weather the new user copied the resource etc etc. My main question is,
1. is it possible to create custom database tables in ezpublish
2. If its possible, how
Thanks in advance :-)
Cheers
RD
Jean-Luc Nguyen
Tuesday 09 November 2010 9:04:19 am
Hi,
Yes you can create and use custom tables in eZ Publish. In a "classes" subdirectory, you will create your helloWorld PHP class for a hello_world table. Your PHP class will extends eZ Publish "default used class", like: class helloWorld extends eZPersistentObject { function definition() ...}
http://www.acidre.com