[TYPO3-ect] tx_base - tslib_pibase modernized
Ernesto Baschny [cron IT]
ernst at cron-it.de
Mon Apr 2 09:14:40 CEST 2007
Elmar HInz wrote: on 02.04.2007 03:33:
> lib/div is a framework for professional object orientated development. For
> the PHP beginner this is rather to complex. The startup is easier with an
> all-in-one base class like tslib_pibase.
>
> Now tslib_pibase has very cryptic function names and a caching system that
> not even experienced developers really understand.
>
> Motivated by the discussion about proper caching in t.dev I did a little
> study today, to find out how the interface of tslib_pibase could be
> extended by a simple API. Full backward compatibility. The naming system
> is similar to lib/div and is also meant as part of the migration path to
> V5.
>
> The result wasn't bad. So I have decided to upload it to TER so that you
> all can test. The key is "base".
>
> It comes with 2 plugins a USER and a USER_INT to demonstrate the usage.
> Just install them both in the same page. No further configuration is
> required.
>
> What do you think? Should we follow this trak?
Hi Elmar,
cool idea. The initial proposal also looks straight and good.
But I am not sure if this is a good idea, since this would inspire the
continuation of plugins based on "old school" one class does it all. Do
we want that? You state it is "for beginners", but couldn't we have some
way that even beginners do it "right" from start (using lib/div)?
If we think it is needed to have this "simple" method for plugin
development, we still have the issue of caching. Having a parameter
"$noHash = FALSE" in the link generation method is not really of much
help. I cannot think of any way yet, but there must be something that
enforces better usage of USER of USER_INT even for "beginners". So I
think if kickstarter generates lib/div code with sample USER/USER_INT
switches already, this is what beginners should learn and use.
Cheers,
Ernesto
More information about the TYPO3-team-extension-coordination
mailing list