• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IF as Page

#1
Hello,
in my page I used this code to put several pages into one file.
This was very useful and would like to incorporate this in this framework as well.
But how is the URL address to call the content "edit"?

PHP Code:
<?php
    
if(isset($_GET["action"]))
        {
            
$action $_GET["action"];
        }
    else
        {
            
$action "";
        }
        
    if (
$action == "")
        {
?>
hallo
<?php
        
}
    if (
$action == "edit")
        {
?>
du da
<?php
        
}
?>
Reply

#2
The questions you have been asking indicate that you have a severe lack of knowledge as to how CodeIgniter works. Before doing anything else, read this:

https://www.codeigniter.com/user_guide/
Reply

#3
Apart from skunkbad's great advice above, why would you use a GET to edit a record?
Reply

#4
Looks like PHP code getting JavaScript
What did you Try? What did you Get? What did you Expect?

Joined the CodeIgniter Community in 2009.          ( Skype: insitfx )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.