You are here: Extending the Config_File « Smarty Templates Posts « IT news, forums, messages
Extending the Config_File

Posted by Erik Schmitt on 09/25/37 11:31

Hello,

I write an Add-on that needs multidimensional arrays
extracted from a config-file with no simple key-value
structure, like provided by a typical Smarty config-file.

I would like Smarty to be able to parse this different-structured
config-file, compile it and store it in templates_c; it should
benefit from the capabilities of Smarty.

Would it make sense to extend Config_File, overwrite
the parse-method and tell Smarty to use Config_File_MyNewOne
while parsing my different-structured config-file?
Would I have to overwrite other methods?

Is there any other apprach that makes more sense?


Thanks!

Erik

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация