Archive

Archive for the ‘OOP’ Category

Finally : a new Crudder-release!

November 28th, 2009
Crudder in action

Crudder in action

It took a while.. a long while actually.. but I finally made a new release of Crudder. This new release 0.50 has a lot of new features and bugfixes, to name a few;

  • New Field-type: HTML-editor
  • New Field-type: File-upload
  • New Field-type: Enum
  • Export to CSV
  • Adding records from the many-2-many-editor
  • Bugfixes; language-support works better, datefield has been fixed, the many-2-many-editor should work better

Check out the DEMO or read more

buTTon CMS, CRUD, Javascript, OOP, PHP , , , , , , ,

Launched a new WPS-Demo website

October 17th, 2009

For the dutchies , english folks check this page;

Op http://wps.i-v-o.nl/ staat sinds vandaag een vernieuwde demo-website van WPS.  Met deze demo-website kan je lezen over wat WPS is, wat het kan, hoe het werkt en je kan spelen met het systeem.

Wat is WPS

WPS staat voor Web Publishing System. Geen spannende afkorting, maar het dekt de lading wel goed. WPS is namelijk geen klassiek Content Management Systeem (CMS) maar veel meer. Een klassiek CMS zorgt er eigenlijk alleen maar voor dat je de inhoud van je website kunt bewerken, dat doe je dan eigenlijk altijd op een aparte website (ook wel backend genoemd). Zo’n CMS is harstikke mooi, maar er moet ook een ‘voorkant’, je website, geprogrammeerd worden, en dat kan best een tijdrovende klus worden. WPS is een publicatiesysteem en zorgt dus niet alleen voor de CMS functie, maar ook voor het publiceren; de voorkant van je website.

Read more…

buTTon CMS, Content Publishing, OOP, PHP, WPS , , , , , ,

Putting the Singleton-pattern to good use

May 3rd, 2009

I like the Singleton-pattern, it saves a lot of trouble on creating objects that you need throughout your code and need to keep their state. Though it’s very tempting, do not use the singleton too much; see here why.

There are some pretty good uses for a Singleton though; a registry and the database-connection;

Read more…

buTTon OOP, PHP , , , ,

Creating your own RPC-interface in PHP

April 17th, 2009

Last week I got a request to create some kind of RPC-server-client in PHP. The assignment was to create a flexible solution to allow remote updating several properties in a database. I’ve created interfaces like this before, but specifically for AJAX-calls to PHP-objects, not really for server-to-server-calls. This particular assignment also involved a PHP-client-object for other developers to implement in their website. The RPC-interface actually doesn’t really care if it’s used for real server-to-server calls or AJAX-calls. However; in this article I’ll focus on server-to-server communication, if designed well it shouldn’t take too much effort to make it AJAX-compatible.

Read more…

buTTon OOP, PHP , , , , ,

AJP : Authenticated JSON Proxy

March 20th, 2009

Authenticated what?

The first hurdle most developers have to take when introduced to AJAX is S.O.P.
S.O.P stands for Same Origin Policy and basically means that you can only do AJAX-requests to the (sub)-domain the client is currently on. First thing I thought when I read about AJAX couple of years ago; ‘wow! cool! I can strip content from other sites and incorporate them in my websites’ .. and immediately I started hammering away on a RSS-reader which was supposed to grab news from a RSS-feed directly. My efforts failed. The RSS-feed was on another domain and S.O.P kicked in spoiling all the fun.
Read more…

buTTon Javascript, OOP, PHP, WPS , , , , , ,

Javascript Classes and Object Inheritance with Prototype.js

March 15th, 2009

If you’re used to writing Object Oriented PHP switching to Javascript could be confusing, it takes a lot of effort and ugly code to actually write pure classes. You won’t be able to create abstract-classes or use interfaces. On the other hand; being a prototyped language Javascript offers a lot of possibilities that you won’t find in PHP. If you’re used to the way of thinking of OOP in PHP, why not use this knowledge to write Javascript-classes? This is where Prototype.js comes in.

Read more…

buTTon Javascript, OOP , , ,


Onze tip:SCDB.info – de meest actuele flitspalen in Europa voor uw GPS!