Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Problem: Unkown resource type 'design'

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
TommyGFX
Smarty n00b


Joined: 26 Aug 2009
Posts: 4

PostPosted: Wed Aug 26, 2009 7:33 pm    Post subject: Problem: Unkown resource type 'design' Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Thu Aug 27, 2009 12:47 am    Post subject: Reply with quote

Ups, you found something not yet covered by Smarty3. I will look into it ASAP.
Back to top
View user's profile Send private message
TommyGFX
Smarty n00b


Joined: 26 Aug 2009
Posts: 4

PostPosted: Thu Aug 27, 2009 1:47 pm    Post subject: Reply with quote

thx Smile
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Thu Aug 27, 2009 3:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
TommyGFX
Smarty n00b


Joined: 26 Aug 2009
Posts: 4

PostPosted: Thu Aug 27, 2009 3:36 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Thu Aug 27, 2009 4:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
TommyGFX
Smarty n00b


Joined: 26 Aug 2009
Posts: 4

PostPosted: Thu Aug 27, 2009 4:31 pm    Post subject: Reply with quote

caching brauch ich nicht Smile

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
View user's profile Send private message Visit poster's website MSN Messenger
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Thu Aug 27, 2009 6:15 pm    Post subject: Reply with quote

Mal sehen was ich da machen kann....
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty 3 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP