如何在Codeigniter中解决页面重定向问题

时间:2017-04-24 20:03:22

标签: php codeigniter

当我点击href时,仪表板页面已加载,但href上的位置是另一页面。

ui <- fluidPage(
    column(2,
           fluidRow(
             wellPanel(
               selectInput(inputId = "ID", label="Select ID:", choices = IDchoices, selected = "1", multiple = FALSE, selectize = TRUE)               
             )
           ),
           fluidRow(
             wellPanel(
               span(h5(strong("Employee:")), h5(textOutput("Staff_name"))),
               span(h5(strong("Date:")),h5(textOutput("Date"))))
           )
    ),
    column(10,
           wellPanel(plotOutput("plot1")
           ))
)

#SERVER

server <- function(input, output, session)
{

}

#Run the Shiny App to Display Webpage

shinyApp(ui=ui, server=server)

控制器

<li><a href="<?php echo base_url() ?>folder/controller/function">Add supplier</a></li>

1 个答案:

答案 0 :(得分:1)

你尝试过这样做:

<li><a href="<?php echo site_url("folder/controller/function") ?>">Add supplier</a></li>

将路径传递给site_url()辅助函数将返回正确的路径。