⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

showing view output in an iframe



tomternal

tomternal
  • profile picture
  • Member

Posted 20 April 2019 - 22:30 PM

So I am pretty much completely new to grocerycrud and I do not know much about php either so please bear with me and I apologize if this is a dumb question. I created the controller and view from "The newbies grocery CRUD Tutorial" and I can get it to output fine when you navigate to http://localhost/your_project/index.php/main/employees as it instructs. I want show this output in an iframe on a static dashboard.php page using the following code

<IFRAME SRC=<?php echo site_url('/main/customers')?> frameborder="0"
style="position: relative; height: 500px; width: 100%;"> </IFRAME>

 

only the CRUD does not show up it gives me an error that says

Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.

Error 403 localhost
Apache/2.4.38 (Win64) OpenSSL/1.0.2r PHP/7.1.27

 

within the iframe. Any suggetsions or help would be appreciated. I am not sure if the file needs to be moved to a different folder to have access or what.