Access Parent Directory in CodeIgniter

How to access the parent directory from the sub directory, in other words you can access or include the files from parent directory into your sub-directory folder in codeigniter.

During development of applications sometimes we create asset directory separately to isolate them from the major code. In this condition we have to access the files with the path of parent directory.

If we take example of PHP core, you have to know that we can simply include any file within or main file by using include keyword like the code below.

You will get clear Idea by viewing the following image.

File Directory

But if this file is in the parent directory then you have to change the above code like the below one to access that file from parent directory.

By using this code you will get access the above or parent directory.