...

World Wide Web Server 2012-07-04 16:06:30 -07:00
parent 8d01b34561
commit 8d6224cc69

@ -16,8 +16,7 @@ $this->load>view('action.json.php', $view_data);
If a different extension than [b]json[/b] is required, it can optionally be configured in the file.
[[File:Unobtrusive_XHR.zip]]
[b]To use:[/b] Copy and Paste the code below and save it to ~/system/application/libraries/MY_Loader.php
[code]
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
@ -30,6 +29,7 @@ If a different extension than [b]json[/b] is required, it can optionally be conf
* @author Daniel Ott
* @version 0.1
* @link http://codeigniter.com/wiki/Unobtrusive_XHR/
* @todo Optional fourth parameter that would override this functionality
*
* In a default implementation of CodeIgniter, just drop this file in
* ~/system/application/libraries/, and it will be completely ready to work.
@ -62,11 +62,11 @@ class MY_Loader extends CI_Loader {
* Example $this->load->view('home/create_event') would originally load
* home/create_event.php, now it would open home/create_event.json.php
*
* @access public
* @access public
* @param string
* @param array
* @param bool
* @return void
* @return void
*/
function view($view, $vars = array(), $return = FALSE)
{