- Details
- Written by: Marek
- Category: Programming
- Hits: 1072
I kept receiving an errors related to filenames with capital letters for example system\core\Benchmark.php or system\core\CodeIgniter.php that they were missing. To solve it I had to extract the zip file from CI site in Windows and then copy it over. Doing this kept the exact file names without changing their names to lower case. Originally I extracted the zip file in ubuntu which automatically renamed Benchmark.php to benchmark.php which caused CI to have some major issues.
- Details
- Written by: Marek
- Category: Programming
- Hits: 1106
Accessing Controllers, Methods and Parameters
index.php/Controller/Method/Parameter1/Parameter2/...
In Controller
$data['variable'];
Then use in view as
<?php echo $id ?>
- Details
- Written by: Marek
- Category: Programming
- Hits: 2497
http://<yoursite>/basic.htm
- Details
- Written by: Marek
- Category: Programming
- Hits: 2580
- Details
- Written by: Marek
- Category: Programming
- Hits: 2708
<?php
setcookie ("CookieName","Value");
//redirect to a main screen
header("Location: main.php");
?>
In the file main.php, test for the value:
<?php
if ($_COOKIE['CookieName'])
{
echo $_COOKIE['CookieName'];
}
else
{
echo "cookie could not be set";
}
?>