- 
            
            as seen on Stack Overflow
            - Search for 'Stack Overflow' 
            
 Hi,
is there a way to evaluate Smarty Code inside an existing Smarty template? For example, I may have the following construct:
smartyTemplate.tpl
<body>
  <div id="dynamicPart">
     {$valueFromDatabase}
  </div>
</body>
Whereas the Smarty variable $valueFromDatabase…
            >>> More
 
- 
            
            as seen on Stack Overflow
            - Search for 'Stack Overflow' 
            
 here is my folder
index.php
smartyhere
  -Smarty.class.php
admin
  -index.php
  -users.php
in index.php - $smarty-display('index.tpl');
in admin/index.php - $smarty-display('adminindex.tpl');
     got error Smarty error: unable to read resource: "adminindex.tpl" 
any idea ?
thx
            >>> More
 
- 
            
            as seen on Stack Overflow
            - Search for 'Stack Overflow' 
            
 i created a model object in PHP
class User {
  public $title;
  public function changeTitle($newTitle){
    $this->title = $newTitle; 
  }
}
How do i expose the property of a User object in smarty just by assigning the object?
I know i can do this 
$smarty->assign('title', $user->title);
but…
            >>> More
 
- 
            
            as seen on Stack Overflow
            - Search for 'Stack Overflow' 
            
 I have some variables inside a template and i dont know where i assigned them, so i need to know what inside this variable is
say i have a var in smarty called member
i tryed with {debug} but it didnt work, no popup was shown. 
How can i debug smarty variables using something like var_dump() inside…
            >>> More
 
- 
            
            as seen on Stack Overflow
            - Search for 'Stack Overflow' 
            
 I have a Problem with Smarty.
I have made this class:
<?php
require_once(INCLUDE_PATH.'smarty/Smarty.class.php');
class IndexPage extends Smarty {
    public $templateName = 'index.tpl';
    public function __construct() {
        parent::__construct();
        $this->showTemplate();
 …
            >>> More