当我点击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>
答案 0 :(得分:1)
<li><a href="<?php echo site_url("folder/controller/function") ?>">Add supplier</a></li>
将路径传递给site_url()辅助函数将返回正确的路径。