You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to render a template with some params.
Those params contains the result of a sql statement.
That sql statement is working, i know that because I have an api that use the same and that work perfectly.
Here is what I do :
public static function editproject(){
$template = new EpiTemplate();
$params = array();
$params['pageTitle'] = 'Edit Project';
$project = getDatabase()->one('SELECT * FROM projects WHERE id = '.$_GET['id']);
$params['project'] = $project;
$template->display('edit-project.php', $params);
}
If I do a var_dump of $params or just $pageTitle on my template it return me 'NULL'.
Am I doing something wrong ?
Thanks.
The text was updated successfully, but these errors were encountered:
Hello.
I try to render a template with some params.
Those params contains the result of a sql statement.
That sql statement is working, i know that because I have an api that use the same and that work perfectly.
Here is what I do :
If I do a var_dump of $params or just $pageTitle on my template it return me 'NULL'.
Am I doing something wrong ?
Thanks.
The text was updated successfully, but these errors were encountered: