Thursday, 18 October 2018

Problems Encountered During Cloning


Laravel server 500

Laragon Virtual Host Restart

Sunday, 5 August 2018

Codeigniter - fetch_class( ) and fetch_method ( )

It looks like the following is working in CI 2.1.0
To get the name of the controller in CodeIgniter:
To get the name of the method in CodeIgniter:
Are these methods consider private? Should they be documented if they are public?

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"

Friday, 13 July 2018

array_push() merging multiple array

That's because you're adding a non-object to the last element of the array.
Here i suppose you get an array of objects with the name property
$competition_all = Competition::all();
Here you add a key=>value pair to the last element of the objects array
$newCompete = array('name'=>'Others');
array_push($competition_all, $newCompete);
Here you walk through the array of objects and when it comes to the last element the "$competition_games->name" has no name property
foreach ($competition_all as $competition_games) {
            $this->competition_games[$competition_games->name] = $competition_games->name;
Try something like including a stdclass for it like :
$newCompete = new StdClass();
$newCompete->name = 'Others';
array_push($competition_all, $newCompete);

Merging into New Laravel Collection

resources :

Wednesday, 11 July 2018

Interview Training

connect mysql from cli :

cd  "C:\wamp64\bin\mysql\mysql5.7.21\bin"

C:\wamp64\bin\mysql\mysql5.7.21\bin > mysql.exe -u root

Microsoft .Net  utilities :

1. Entity Framework
2. LinQ .(Net Integrated Query)