Jump to content
thirty bees forum

Factor

Members
  • Posts

    271
  • Joined

  • Last visited

  • Days Won

    8

Posts posted by Factor

  1. @lesley @datakick

    Can we make a Sticky of what items might be helpful for posters to put in their Post here in the Tech area.  Feel free to add or edit this post.

    TB Version

    PHP Version

    Module name and Version /if related.

    Operating System

    RAM

    CPU

    Unmanaged or Managed Hosting

    What Control Panel if any e.g. cPanel, Plesk and others.

     

    Thanks.

     

    • Like 1
  2. On 6/17/2019 at 2:33 PM, AndyC said:

    I started using it in 2011

    A Lot has changed in 8 years.  That is like Ancient History in IT years...😎

    • Haha 1
  3. What version are you on? I can't see in the screen shot. I can add new quantities and it saves.

    Have you tried to refresh, clear caches, clear your temp internet files.  If you go to another computer or browser does it show?

  4. I bet.  It's hard to explain since I don't fully understand what overrides are for and their limitations.  Let me try again.

    We will use the Manufacturer example.

    The core system doesn't have this feature in it already E.G. you can't filter by manufacturer.  Since its not in the Core system we have 2 choices add it to the core file or create and override?  The first not a good solution since core files are overwritten by upgrade. So that leaves us with Overrides.  (Of course the other option is have it added by someone to the core system.)

    So we do the override and it works.. All is great until...  We need to add more functionality to the same Controller E.G. AdminProductsController.php . How do we do this safely and correctly? Are we allowed to create AdminProductsController2.php , AdminProductsController3.php and so on?

    In short how do we best add more functionality to the system.

  5. Ok I was looking at this from Nemo's website.  Which he did the core file in his demo.  This post helped me figure out how to do the override..  Now the question is and I think I know the answer.  How do you do Multiple overrides to the same controller?  Example I have a module that needs to write out config to the Overridden file but it can't.

    So in general you are you only allowed to override one controller one time or only in on file named the same thing?

    Example controllers / admin / AdminProductsController.php or via override override / controllers / admin / AdminProductsController.php  we do this Manufacturer Change.  

    The module wants to write to same file name.  It can't.

    It seems you can't just create the file named  / controllers / admin / AdminProductsControllerMan.php

    then create the class inside the file as.

    class AdminProductsControllerMan extends AdminControllerCore 

    Or can you and I am doing it incorrectly?  Not a coder. 

×
×
  • Create New...