This works great, however how can I make this the index page?
|
I get a fatal error when I try to create news. How do I fix this?
|
What does the error say?
|
Quote:
|
It looks like you're missing ACPNewsView.php. Is it in the view folder?
|
Quote:
Yep I have it. AdminCP and then the View folder in there. :/ |
When you open the file, does it have this near the top:
PHP Code:
PHP Code:
|
Quote:
PHP Code:
|
Oh! You put it in the wrong place then. (I figured that might be the issue, since both files have the exact same name)
Just copy-paste the code for the view file under the "Part 4: The AdminCP" section of the OP and it should work. "ACPNewsView" needs to be in the view subfolder located in the adminCP folder, while "NewsView" needs to go in the main view folder located under public_html. |
Quote:
Fatal error: Uncaught exception 'Exception' with message 'Fatal Error: Class ACPNewsView either does not exist, or has its include path misconfigured!' in /home/beausavi/public_html/classes/class_loader.php:83 Stack trace: #0 [internal function]: Loader->load('ACPNewsView') #1 /home/beausavi/public_html/classes/class_controller.php(135): spl_autoload_call('ACPNewsView') #2 /home/beausavi/public_html/classes/class_appcontroller.php(115): Controller->loadView(Object(Resource\Native\String)) #3 /home/beausavi/public_html/classes/class_frontcontroller.php(71): AppController->getView() #4 /home/beausavi/public_html/admincp/index.php(108): FrontController->getView() #5 /home/beausavi/public_html/admincp/index.php(113): AdminCP::main() #6 {main} thrown in /home/beausavi/public_html/classes/class_loader.php on line 83 |
All times are GMT -5. The time now is 05:15 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.