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

Search found 10 matches
Smarty Forum Index
Author Message
  Topic: Upgrading from Smarty 2 to Smarty 3
Chrissio

Replies: 20
Views: 99550

PostForum: Tips and Tricks   Posted: Tue Jan 20, 2015 11:13 am   Subject: Upgrading from Smarty 2 to Smarty 3
Was that a part of a custom template plugin?


No!

The order of the changes (in knowing that the application runs without errors in php4!) was:

Adaptation of the deprecated messages from appl ...
  Topic: Upgrading from Smarty 2 to Smarty 3
Chrissio

Replies: 20
Views: 99550

PostForum: Tips and Tricks   Posted: Mon Jan 19, 2015 6:27 pm   Subject: Upgrading from Smarty 2 to Smarty 3
Your post didn't made any addition to the topic. You've been asked to show the context of your changes, but we are yet to see anything relevant to the request.

Hi AnrDaemon,

normally there is no ...
  Topic: Upgrading from Smarty 2 to Smarty 3
Chrissio

Replies: 20
Views: 99550

PostForum: Tips and Tricks   Posted: Mon Jan 19, 2015 3:28 pm   Subject: Upgrading from Smarty 2 to Smarty 3
The PHP variables visibility scope does not intersect.
You shouldn't need to change your variables naming.
U.Tews was merely asking you to provide context.

Hi,

the hint that $tpl is a variable ...
  Topic: Upgrading from Smarty 2 to Smarty 3
Chrissio

Replies: 20
Views: 99550

PostForum: Tips and Tricks   Posted: Mon Jan 19, 2015 11:19 am   Subject: Upgrading from Smarty 2 to Smarty 3
Where did you need to change a line to

$tpl = new Smarty;

Show a piece of code around it.

$tpl is an internal variable used in Smarty3.


Hello Uwe,

a very useful hint. Now i can recog ...
  Topic: Upgrading from Smarty 2 to Smarty 3
Chrissio

Replies: 20
Views: 99550

PostForum: Tips and Tricks   Posted: Wed Jan 07, 2015 9:57 pm   Subject: Upgrading from Smarty 2 to Smarty 3
Nowhere in your post I see that there's an "error in Smarty engine".
Error in your application code? That one I see.

Sorry, i want to change from smarty 2 to smarty 3!

The script runs ...
  Topic: Upgrading from Smarty 2 to Smarty 3
Chrissio

Replies: 20
Views: 99550

PostForum: Tips and Tricks   Posted: Wed Jan 07, 2015 10:24 am   Subject: Upgrading from Smarty 2 to Smarty 3
Is that line in any of the Smarty code, or is that in your application code?

I wrote: "it is somewhere in another File outside of smarty folder" and means "has nothing to do with a f ...
  Topic: Upgrading from Smarty 2 to Smarty 3
Chrissio

Replies: 20
Views: 99550

PostForum: Tips and Tricks   Posted: Tue Jan 06, 2015 11:19 pm   Subject: Upgrading from Smarty 2 to Smarty 3

Actually, this line indicates that you are doing something you should never attempt to do.

Hello,

but the script runs with Smarty2...

After 4 hours searching with Smarty3 I found the Error ...
  Topic: Upgrading from Smarty 2 to Smarty 3
Chrissio

Replies: 20
Views: 99550

PostForum: Tips and Tricks   Posted: Tue Jan 06, 2015 4:21 pm   Subject: Upgrading from Smarty 2 to Smarty 3
There are upgrade notes with the Smarty 3 distro.

... but - i don't understand it! The only i see in first tests is:

Fatal error: Call to a member function createTemplate() on null in C:\xampp\h ...
  Topic: Sprache dynamisch?
Chrissio

Replies: 7
Views: 14719

PostForum: Language: German   Posted: Wed Oct 08, 2014 5:34 pm   Subject: Sprache dynamisch?
Verwende das PHP Array Format und dann Variablen in double quoted strings

{$item["description_$language"]}

Danke für den Tip - vom Prinzip her funktioniert das so.
...
  Topic: Sprache dynamisch?
Chrissio

Replies: 7
Views: 14719

PostForum: Language: German   Posted: Tue Oct 07, 2014 9:01 pm   Subject: Sprachumschaltung - Sprache kommt aus MYSQL-Datenbank
Hallo,

zu diesem Thema habe ich eine Frage.

In einer Datenbanktabelle steht die englische Sprache in einem Feld "description_english", die deutsche Sprache im Feld "description_ge ...
 
Page 1 of 1
All times are GMT
Jump to:  


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