Welcome Guest, Not a member yet? Register   Sign In
display the modified date in the footer
#1

[eluser]deco10[/eluser]
Hi
Lets say my page is set up like this

main_view.php
---

$this->load->view('head_view.php');
$this->load->view('mainbody_view.php');
$this->load->view('footer_view.php');

---


I want the footer to print the modified date of whatever file is loaded in the second load->view


Suggestions?
#2

[eluser]Dam1an[/eluser]
Well, the easy part is getting the last modified timestamp of a file, using the filemtime() function.

The not so easy part (at least unless you have some automated way of habdling views) is the not having to have that code in the controller for every function

Can you talk a little more about how you deal with that?




Theme © iAndrew 2016 - Forum software by © MyBB