Sunday 5 August 2018

Codeigniter - fetch_class( ) and fetch_method ( )

Hi,
It looks like the following is working in CI 2.1.0
To get the name of the controller in CodeIgniter:
$this->router->fetch_class();
To get the name of the method in CodeIgniter:
$this->router->fetch_method();
Are these methods consider private? Should they be documented if they are public?
thanks.

Thursday 2 August 2018

site_url and base_url

Oftently or occasionally way of using site_url and base_url variable

1. site_url

when including inside of "application" folder dealing with accessing view and controllers in codeigniter

2. base_url

when to include assets like js, css and images file from root project folder

Visual Code (Goto Definition) using Php IntelliSense

files > preferences > settings

In user settings :



{
    "php.validate.executablePath": "C:\\wamp64\\bin\\php\\php7.2.4\\php.exe",
    "php.executablePath": "C:\\wamp64\\bin\\php\\php7.2.4\\php.exe"
}