Welcome Guest, Not a member yet? Register   Sign In
a couple of questions
#1

[eluser]newbie110[/eluser]
It may seem foolish sine i am new to CI, there a couple of questions in my mind.
1. why do we have to replace [removed] tag with <scri+pt> tag
2. when can we use a _(underscore) for a class and waht are it's advantages.

Thanks in advance.
#2

[eluser]Otemu[/eluser]
Hi,

1. why do we have to replace [removed] tag with <scri+pt> tag
Script tag is not allowed on the forum as a user could then write/reference malicious JavaScript code.

2. when can we use a _(underscore) for a class and waht are it’s advantages.
When you use _(underscore it makes the class private, explanation from the guide:

Quote:Private Functions

In some cases you may want certain functions hidden from public access. To make a function private, simply add an underscore as the name prefix and it will not be served via a URL request. For example, if you were to have a function like this:
private function _utility()
{
// some code
}

Trying to access it via the URL, like this, will not work:
example.com/index.php/blog/_utility/

http://ellislab.com/codeigniter/user-gui...ml#private




Theme © iAndrew 2016 - Forum software by © MyBB