Welcome Guest, Not a member yet? Register   Sign In
History 1.0b
#1

[eluser]stensi[/eluser]
A while back I saw the Whence library by dcheslow, which is used to temporarily store a users browsing history, and decided to make my own.

Although the Whence library does its job well, I wasn't too happy with the names of the methods or the code itself (no disrespect intended), and felt it lacked in a couple of things. So anyway, here's my version.


<b>History</b>

History is a library that automatically saves the users browsing history into their session. This is useful for a number of situations, the most obvious being:

1. User goes to a page that requires them to be signed in to gain access.
2. User is redirected to sign in page.
3. User signs in.
4. Using History, we send the user back to the page they were originally attempting to access!

<b>Features</b>
* Easy to setup, easy to use.
* Automatic or Manual saving of history.
* Optionally save AJAX requests into history.

As with DataMapper, the History library is fully documented.

History Source Files
History User Guide

Enjoy :-)
#2

[eluser]BaRzO[/eluser]
Hi stensi History is nice one again
Thanks for your effort nice documentation good work
in example i think it sould be like this cuz it's giving header already send error
i will follow this thanks your works...

Code:
function delta()
    {
        // Delete this page from the history
        $this->history->delete();
        
        echo '<h1>Delta</h1>';

        $this->_common();
    }
<h4>edit</h4>
And this one in index function...
Code:
function index()
    {
        // Just for this example, we'll clear the history on this page.
        $this->history->delete($this->history->length);

        echo '<h1>History Example</h1>';

        $this->_common();

        echo "<strong>Note:</strong> We're clearing the history when you go to this page.";
    }
#3

[eluser]Randy Casburn[/eluser]
Like you, I think Whence as OK. I too found the same value you found. I also found the same "rough around the method names" feeling you did too. I stopped using Whence.

Thanks for taking the time to do this stensi. This looks very nice. When I get back from Trinidad I'll take a closer look.

I think this is a real gem and highly valuable.

Randy
#4

[eluser]steelaz[/eluser]
Great job once again stensi, this is great for application usability!
#5

[eluser]stensi[/eluser]
Thanks all :-)

@BaRzO: Thanks for pointing that out. I didn't get that issue but you're right the order should be that way. I'll fix it up in the next version.
#6

[eluser]BaRzO[/eluser]
@stensi i have learned from you to much i am following CI and your topics thanks to all who are here all of you
You are great

<h5>Edit</h5>
History lib does not load history config...
i have changed length in history config file it did not changed...
#7

[eluser]mjsilva[/eluser]
Hi stenci, sorry for diggin up this old thread, but your history links are down, do u still have the source, i was looking forward to test it!


thanks
#8

[eluser]asumaran[/eluser]
somebody have the source files?
#9

[eluser]pmoroom[/eluser]
I would like as well.
#10

[eluser]phpserver[/eluser]
I would like to ave the source file as well




Theme © iAndrew 2016 - Forum software by © MyBB