[Phpmyadmin-devel] Re: globals
michal at cihar.com
Fri Dec 23 05:28:26 CET 2005
I guess this should go to the list :-)
On Thu, 22 Dec 2005 08:16:41 +0100
Sebastian Mendel <lists at sebastianmendel.de> wrote:
> Michal Čihař schrieb:
> > I don't see much benefit of this. This would mean to split files into
> > smaller ones, what means more maintenance. For most things splitting
> > will be tricky or will end in main category.
> with templates PMA will not include the text itself, but its name
> $strings['CouldNotLoadExtension'] = null;
> $template->append_by_ref( 'errors', $strings['CouldNotLoadExtension'] );
> // load strings from DB
> $sql = 'SELECT `id`, `string` FROM `cz` WHERE `id` IN (\'' .
> implode(array_keys($strings)) . '\')';
> $strings = PMA_DBI_fetch_result($sql, 'id', 'string');
Yes, templates would be great, but I still do not see advantage of db
stored strings ;-).
Michal Čihař | http://cihar.com
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: not available
More information about the Developers