Jump to content


Photo

What is a custom data interface?


  • Please log in to reply
8 replies to this topic

#1 Cris D.

Cris D.

    Loves Etomite Forums!

  • Developers
  • PipPipPipPip
  • 1,104 posts

Posted 30 October 2008 - 11:17 AM

I think many users are scared when they see the terms MVC, or Custom Data Interface. I just wanted to dispell any myths that they are tricky or complex. I posted a controller a long time ago and was very surprised that no-one else added their samples. However, when you think about it, why would someone choose etomite? It is user-friendly (which means it works without having to know a heap about code). But it also means that users who do know code have a great platform to build it on. Which means there are 2 main users- those that can and do, and those that can't and don't want to (and the range of in-betweeners who this post is pitched at). Those that can know the value of it are already using it extensively. Those that don't want to will never attempt to write one. However, it is those that like the idea of it but don't know how to, where to start or are scacred of the security implications that will benefit from this thread.

Creating a custom data interface simply means writing a page that has forms to enter stuff. If you get into it more, then you can go down the track of rigorous validation, querying multiple tables and doing complex calculations before rendering, however, this is probably the high-end use of a custom data interface. Most people would benefit from having a simple entry form where details can be added to a page (or table) without logging into the manager (for example).

The process usually involves:
  • user access,
  • entry forms,
  • validation of data,
  • manipulation of data,
  • inserting data to tables,
  • storage of data in tables,
  • retrival of data from tables,
  • display of data and using markup,
  • editing data (back to user access and entry forms).
Each one of these items is teachable and learnable.

So if you have ever wanted to get info into a site (but didn't want to let users loose in the manager) and were't sure how to do it, that is what a custom data interface and associated techniques are for.

I have used them in zcalendar, etoBasket for PayPal, front-end file manager, easyPoll, etoComment, etoGalEditFields, membership_validator, Plaincart, Report abuse link, shoutbox and UploadForm and extensively in my bookshop. I know Ralph has used them in invoice and asset tracking systems (as per his tutorials on his slyip site).

What ways do you think you may use a custom data interface for on your site? What is stopping you from having done it yesterday?

#2 Ralph

Ralph

    Loves Etomite Forums!

  • Admin
  • 6,539 posts

Posted 30 October 2008 - 12:45 PM

Great overview, Cris... To help further clarify, the new forum sections were added to address situations where anything other than a single snippet based solution is developed... That means any multi-snippet, snippet & chunk combination, or multiple snippets & chunks solution... Toss in some external PHP script includes, some Javascript, and the kitchen sink, and you get the idea...

#3 darren

darren

    Likes Etomite Forums!

  • Member
  • PipPip
  • 251 posts

Posted 30 October 2008 - 04:30 PM

Currently I'm modifying etoComment to include more fields and allow front end users to input data..and then display those database rows on different pages. essentially trying my first custom data interface. the etoComment snippet seemed like the place to start, but the end result will be nothing like a blog... I find that having email/captcha validation, and the moderating code already built by Cris rather valuable.

#4 Swarm

Swarm

    Etomite Forum Fan

  • Member
  • Pip
  • 81 posts

Posted 03 November 2008 - 11:39 PM

I've been using the Zend Framework for the last 6 months! It's possibly the best thing i've ever come across to help me develop nicely.

Major request Ralph... please design the new etomite with zf as it's backend! If you've not used it already you'll thank me! Honestly.

At the moment the only zf cms's are kinda crappy - nothing like as good as etomite. It'd be amazing to change all that!

#5 Ralph

Ralph

    Loves Etomite Forums!

  • Admin
  • 6,539 posts

Posted 04 November 2008 - 04:14 AM

Major request Ralph... please design the new etomite with zf as it's backend! If you've not used it already you'll thank me! Honestly.


Not a chance... I cannot stand the Zend Framework - not to mention how HUGE it is... I've tried using it several times and it makes my skin crawl... Beyond all that, I can't see making it a requirement in order to use Etomite... "IF" it could be proven that I'm wrong, and that Rasmus Lerdorf is wrong, with regard to its bloat and lack of speed, then I "might" be willing to take another look...

#6 PaulD

PaulD

    Likes Etomite Forums!

  • Developers
  • PipPip
  • 413 posts

Posted 10 July 2009 - 06:23 PM

Rasmus Lerdof, creator of php, profile on wikipedia.

Just Googled him as didnt know the name. Great read here about The-no-framework-PHP-MVC-framework. Very interesting indeed.

Just thought I would post this for other people to read if they are interested.

Paul.

Edited by PaulD, 10 July 2009 - 06:25 PM.


#7 Ralph

Ralph

    Loves Etomite Forums!

  • Admin
  • 6,539 posts

Posted 10 July 2009 - 07:19 PM

Yeah, I guess I must have assumed that everyone knows the Rasmus created the PHP programming language... As far as I know he is still with Yahoo... Yahoo just announced that it is going to be putting in an East coast headquarters/data center not far from where I live...

#8 Ralph

Ralph

    Loves Etomite Forums!

  • Admin
  • 6,539 posts

Posted 10 February 2010 - 03:53 PM

As an update to my previous post, Rasmus Lerdorf left Yahoo back in November of 2009... I hadn't heard of any new job prospects as of about a month ago... He has contributed to some PHP patches in recent months, however...

#9 Laytonesc

Laytonesc

    Etomite Forum Newbie

  • Member
  • 1 posts

Posted 08 February 2012 - 12:56 PM

Helpful post Cris for noobs like me. I'm specifically looking for integration with Paypal if you could point us in the right direction.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users