Require/Include Problems with custom coding in my Admin
I am working on a modification for my Admin Orders page. This is really a separate PHP file that runs just before the footer. However, I have
Code:
<?php require(DIR_WS_INCLUDES . 'myfile.php'); ?>
But it does not work.....if I change 'myfile.php' to 'footer.php' the next line executed in is 'footer.php'. When the first version goes through i get send to a another zencart function
So do I need to register my files somewhere? These two files are located in the same directory.
Thanks
Chris
Re: Require/Include Problems with Admin
Re: Require/Include Problems with Admin
In an MVC structure it's odd to add business logic execution in the middle of template output.
Need more information about what you're actually trying to do. What's your myfile.php script actually doing? What's the business problem you're trying to solve with it? Why are you trying to run it "just before the footer"?
Re: Require/Include Problems with Admin
Quote:
Originally Posted by
DrByte
In an MVC structure it's odd to add business logic execution in the middle of template output.
Need more information about what you're actually trying to do. What's your myfile.php script actually doing? What's the business problem you're trying to solve with it? Why are you trying to run it "just before the footer"?
I am trying to create a routine that allows me to store new information about an order (special packing information) that I can input and save in the database. I have found a temporary workaround for the initial question....but now my custom classes cannot be used due to the same problem. My development is now in full stop....
Re: Require/Include Problems with Admin
Re: Require/Include Problems with Admin
Quote:
Originally Posted by
DrByte
Let's see the code.
hmmm....well, I fixed it. And I am really embarrassed to say what happened lol. All I can say is run time errors are a PITA....