codeigniter redirect to another directory view


How can I redirect to another directory view I have two directories in views directory as


in the controller, I want to redirect page if successful then

admin->adminpanel.php else public->login




First I place header and footer inside admin_panel.php


<?php include('../public/public_header.php');?>

<h5 class="lead">Admin Panel</h5>
<?php include('../public/public_footer.php');?>

now I remove the header and footer line from above file and put this in Controller file


Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at


Login to comment


Redirect any directory to another directory

redirect to another view function

grails redirect to another view

CodeIgniter: redirect from embed view

How to redirect to another controller in CodeIgniter?

Is there a way to redirect INSTALLDIR to another directory?

Redirect a content of the directory to another directory in parent folder

django redirect to another view with context

How to redirect to another view in React

How to redirect from view to another view

How to send view data to another view in codeigniter?

Apache not loading view inside another view of codeigniter

Redirect only root directory to another site

Redirect to another directory if url match pattern htaccess

Redirect a directory in a forwarded domain to another url with htaccess

django: unable to redirect to another view in django

How to redirect to another View(UserControl '.ascx') in DotnetNuke?

Django - Redirect to another domain from View

Angular 5 - Redirect to another view if user is logged

How to redirect to another view from jQuery

How to redirect to another view/page if the form is invalid

Redirect to frontend in directory or API in another directory using .htaccess

CodeIgniter - Loading a view from another function in the controller

CodeIgniter get view tables of another database

how call another php file to Codeigniter view

How to load view or use redirect() inside multiple environment check in Codeigniter?

How to redirect from a view in one app to a view in another?

Redirect from one Razor View to another Razor View

redirect to view from another view NoReverseMatch error django

TOP Ranking

  1. 1

    How can I create a column whose entries depend on the contents of a column in another table?

  2. 2 port in URL

  3. 3

    How to display items using sessions

  4. 4

    BigQuery - concatenate ignoring NULL

  5. 5

    no applicable method for 'mutate_' applied to an object of class "c('integer', 'numeric')"

  6. 6

    How i extract text from a model dialog in selenium?

  7. 7

    x no applicable method for 'tbl_vars' applied to an object of class "c('double', 'numeric')"

  8. 8

    AirflowException: Celery command failed - The recorded hostname does not match this instance's hostname

  9. 9

    ngClass error (Can't bind ngClass since it isn't a known property of div) in Angular 11.0.3

  10. 10

    Most efficient regex for checking if a string contains at least 3 alphanumeric characters

  11. 11

    using excel range find return Type mismatch. (Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH))

  12. 12

    redirect your computer port to url

  13. 13

    Can't create database with Symfony 4.1 : could not find driver

  14. 14

    How to fix "Exception evaluating SpringEL expression" error after submitting a variable Spring/Thymeleaf

  15. 15

    A python function to get the maximum value of a specific column, given a string that represents a table in CSV format

  16. 16

    Double spacing in rmarkdown pdf

  17. 17

    Uploading Files on production server returns either CORS error or POST 400 Bad Request using Apollo-Graphql

  18. 18

    Android Kotlin Unit test failing with io.mockk.MockKException: no answer found for

  19. 19

    Change Model input_shape but got an : ValueError: Input 0 of layer dense_44 is incompatible with the layer

  20. 20

    Formik, Yup - How to check is Decimal number

  21. 21

    maven-jaxb2-plugin cannot generate classes due to two declarations cause a collision in ObjectFactory class