From a4d5926d1f40ca9f275a3e26626ac6c8fb605d31 Mon Sep 17 00:00:00 2001
From: Eric Barnes
Date: Mon, 21 Mar 2011 21:00:16 -0400
Subject: Removed closing php in creating libraries. Fixes: #129
---
user_guide/general/creating_libraries.html | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
(limited to 'user_guide/general')
diff --git a/user_guide/general/creating_libraries.html b/user_guide/general/creating_libraries.html
index 3aedd723f..6d65f6599 100644
--- a/user_guide/general/creating_libraries.html
+++ b/user_guide/general/creating_libraries.html
@@ -101,11 +101,11 @@ they are initialized.
class Someclass {
- function some_function()
+ public function some_function()
{
}
}
-?>
+/* End of file Someclass.php */
Using Your Class
@@ -140,7 +140,7 @@ $this->load->library('Someclass', $params);
class Someclass {
- function __construct($params)
+ public function __construct($params)
{
// Do something with $params
}
@@ -243,7 +243,7 @@ class MY_Email extends CI_Email {
class MY_Email extends CI_Email {
- function __construct()
+ public function __construct()
{
parent::__construct();
}
--
cgit v1.2.3-24-g4f1b