[Phpmyadmin-devel] Re: globals

Michal Čihař michal at cihar.com
Fri Dec 23 05:28:26 CET 2005


Hi

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
> 
> <?php
> ...
> $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');
> ...
> 
> ...
> $template->display();
> ...
> ?>

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...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20051223/4bc88743/attachment.sig>


More information about the Developers mailing list