Jump to content

Demetri

New Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Demetri

  1. 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.
     

  2. 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. 
    
  3. 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.

×
×
  • Create New...