Some question about "Showing Next/Previous Month Links" |
[eluser]Unknown[/eluser]
Dear, I am a beginner to CI. I want to tell u the framework is awesome. I love it very much. I want to use it to build my website, so I reading the user guide carefully, but I found some question about "Showing Next/Previous Month Links" in "Calendar Class" section. The following code was copied from "Calendar Class" section: Code: $this->load->library('calendar'); Code: $prefs = array (
[eluser]gtech[/eluser]
Hi I tried it out as well and had the same problem. If you read the generate function in the calender code (system\libraries\calendar.php) you will find that show_next_prev and next_prev_url is retrieved from the config, not the data you pass in to the generate function. the below code will also work: Code: $this->load->library("calendar"); The 'fix' you have in the original post is how the code expects you to set everything up and the documentation example appears to be wrong!.. maybe log a bug about the documentation? (might be worth searching the forums to see if its been logged before). the 3rd parameter on the generate function is used to enable you to set up links on various days, and that does work as the documentation describes.
[eluser]Sumon[/eluser]
I am facing problem in same way. Lets have with example http://localhost/OneHotNanny/index.php/e...stEventCal Code: funciton TestEventCal() http://localhost/OneHotNanny/index.php/e...ar/2008/05 But In Fact it linked http://localhost/OneHotNanny/index.php/e...al/2008/05 Would you guys please help me to resolve it ASAP.
[eluser]obobo[/eluser]
I am using the following and the next / previous links are being created properly: Code: $prefs['show_next_prev']=TRUE; |
Welcome Guest, Not a member yet? Register Sign In |