View previous topic :: View next topic |
Author |
Message |
TommyGFX Smarty n00b
Joined: 26 Aug 2009 Posts: 4
|
Posted: Wed Aug 26, 2009 7:33 pm Post subject: Problem: Unkown resource type 'design' |
|
|
Hallo hab ein Problem
Smarty meldet mir;
Unkown resource type 'design'
Smarty/sysplugins/internal.template.php
Line: 572
bei der 2er Version ging das indem ich es mit
register_resource("design", array("SmartyParser_getTemplate","SmartyParser_getTimestamp","SmartyParser_getSecure","SmartyParser_getTrusted"));
aber in der 3er nicht mehr |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Thu Aug 27, 2009 12:47 am Post subject: |
|
|
Ups, you found something not yet covered by Smarty3. I will look into it ASAP. |
|
Back to top |
|
TommyGFX Smarty n00b
Joined: 26 Aug 2009 Posts: 4
|
Posted: Thu Aug 27, 2009 1:47 pm Post subject: |
|
|
thx |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Thu Aug 27, 2009 3:21 pm Post subject: |
|
|
Support of registered resources is in the SVN now. NOTE: caching is not yet supported.
Could you please test it with your resource and report the results? |
|
Back to top |
|
TommyGFX Smarty n00b
Joined: 26 Aug 2009 Posts: 4
|
Posted: Thu Aug 27, 2009 3:36 pm Post subject: |
|
|
hallo soweit gehts nur das 2 dateien flasch geschrieben sind internal.run_filter.php heisst es im lib ordner aber er verlangt internal.Run_Filter.php
und bei der internal.plugin_handler.php das gleiche
aber er ersetzt <li><% $Helper->breadcrumbs() %></li>
das in den Templates nicht in der 2.0er ging das alles ohne weiteres
$this->smarty->assign('Helper', new SmartyParserHelper); so wurde Helper registriert
Code: | // load basic plugins
require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'sysplugins' . DIRECTORY_SEPARATOR . 'internal.template.php');
require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'sysplugins' . DIRECTORY_SEPARATOR . 'internal.plugin_handler.php');
require_once(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'sysplugins' . DIRECTORY_SEPARATOR . 'internal.run_filter.php'); |
so muss das heissen in der Smarty.Class |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Thu Aug 27, 2009 4:15 pm Post subject: |
|
|
Das mit der Großschreibung ist mir unter Windows gar nicht aufgefallen.
Keine Whitespaces bei den Delimitern.
<li><%$Helper->breadcrumbs()%></li> muss gehen.
Das ist ein neues Feature von Smarty3. Whitespaces führen dazu das Smarty implizit Literals daraus macht. Dadurch wird das Einbinden von Javascript bei Standard_delimiter { und } wesentlich erleichtert.
Beim Caching bin ich noch dran. Kann aber noch etwas dauern, da ich leider etwas mehr im Code umbauen muss.
Danke fürs Testen. Ich hatte mir hier nur ein etwas einfache Resource_funktionen gebaut. |
|
Back to top |
|
TommyGFX Smarty n00b
Joined: 26 Aug 2009 Posts: 4
|
Posted: Thu Aug 27, 2009 4:31 pm Post subject: |
|
|
caching brauch ich nicht
Aber das mit den Whitespaces müsste man einstellen können, so muss ich über 100 Dateien ändern.
Schade muss ich wohl bei Smarty2 bleiben |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Thu Aug 27, 2009 6:15 pm Post subject: |
|
|
Mal sehen was ich da machen kann.... |
|
Back to top |
|
|