Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #5517
| From | deuteros <deuteros@xrs.net> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Getting date URLs and prev/next links working in Codeigniter |
| Date | 2012-04-13 15:08 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <jm9fh0$f13$1@dont-email.me> (permalink) |
I can get the prev/next links working and I can get make every date a
clickable URL, but I can't seem to get both working at the same time. Can
anyone help?
function generateCalendar()
{
$date = (!isset($_GET['month']) && !isset($_GET['year'])) ? time() : strtotime($_GET['month'] . '/1/' . $_GET['year']);
$day = date('d', $date);
$month = date('m', $date);
$year = date('Y', $date);
$this->load->helper('url');
//$template['template'] = '{cal_cell_no_content}<div class="day_num"><a href="/'.$year.'/'.$month.'/{day}">{day}</a></div>{/cal_cell_no_content}';
$this->conf['template'] = '{cal_cell_no_content}<div class="day_num"><a href="/'.$year.'/'.$month.'/{day}">{day}</a></div>{/cal_cell_no_content}';
$prefs = array
(
'show_next_prev' => TRUE,
'next_prev_url' => '/CodeIgniter/index.php/CalendarTest/generateCalendar'
);
//$this->load->library('calendar', $template);
$this->load->library('calendar', $prefs);
echo $this->calendar->generate($this->uri->segment(3), $this->uri->segment(4));
}
Back to comp.lang.php | Previous | Next — Next in thread | Find similar | Unroll thread
Getting date URLs and prev/next links working in Codeigniter deuteros <deuteros@xrs.net> - 2012-04-13 15:08 +0000
Re: Getting date URLs and prev/next links working in Codeigniter Captain Paralytic <paul_lautman@yahoo.com> - 2012-04-13 08:36 -0700
Re: Getting date URLs and prev/next links working in Codeigniter deuteros <deuteros@xrs.net> - 2012-04-13 23:52 +0000
Re: Getting date URLs and prev/next links working in Codeigniter Jerry Stuckle <jstucklex@attglobal.net> - 2012-04-15 09:06 -0400
Re: Getting date URLs and prev/next links working in Codeigniter Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-04-15 11:59 +0200
Re: Getting date URLs and prev/next links working in Codeigniter Jerry Stuckle <jstucklex@attglobal.net> - 2012-04-15 08:52 -0400
Re: Getting date URLs and prev/next links working in Codeigniter "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-04-16 00:13 +0200
csiph-web