Jump to content

Errore funzione 'assign'


Recommended Posts

Salve a tutti,

ho iniziato a sviluppare un modulo per prestashop. Avrei necessita si stampare nel file tpl il contenuto di una variabile del file php. Ho visto che si utlizza la funzione $smarty->assign. Ho provato ad inserire nel file php questo codice:

$smarty->assign("test", "bla bla");

e nel file tpl:

valore: {$test}

abilitando il debug viene visualizzato questo errore:

 

Warning: Creating default object from empty value in....

 

non riesco a capire dov'è che sbaglio.

 

grazie mille

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...