Demetri
-
Posts
4 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Downloads
Gallery
Store
Posts posted by Demetri
-
-
Following the shopping cart tutorial and encountered a problem.
(login.php file)<?php
include("models/m_template.php"); $Template = new Template(); //Problem is here "Undefined type "Template" $Template->load("views/v_login.php");
(Template class file)
<? //Template Class - handless all templating tasks (displaying templates, alerts, errors) class Template { //Constructor function __construct() {} //Functions function load($url) { include($url); } } Tbh, not a clue why I'm getting this error.
-
On 11/20/2020 at 9:12 PM, administrator said:
Hmm ... what is the error message you are getting?
Stef
Thank's for the reply, I fixed the original error but now I have another one.
After I login into the admin page the editable fields do not show up.
-
Hello, I've been doing the "lets build a CMS with MVC" tutorial in Stefan's web design course. and ran into a problem. Basically, the CMS doesn't want to open a login form, all though I've been following the tutorial pretty closely.
Idk how this forum works. So I am attaching a couple of links.
Here's the problematic code from a post on Code Project: https://www.codeproject.com/Questions/5286592/Call-to-a-member-function-load-on-null-when-trying
And a link to a github repo with my code: https://github.com/DmitrijusKazakovas/CMS
Thank you for the help.
WordPress Tutorial
in StudioWeb Projects
Posted
I've been doing the wordpress theme tutorial and find out that all the functions are undefined in the original files. Which makes the tutorial kind of unusable.
Maybe I'm not getting something or missing, but as it is the tutorial is severely out-dated.