Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access third_party folder with ci

I am trying to access the third_party folder in codeigniter with the following code, but it keeps giving me a 404 not found error

$config['theme']['url'] = trim(config_item('base_url'), '/ ') . '/application/third_party/themes/';

I have also tried removing application

 $config['theme']['url'] = trim(config_item('base_url'), '/ ') . '/third_party/themes/';

What do I need to do to access this, so I can have my theme folders and files in the third_party folder?

BTW

The above code is in a config file config/template.php

The problem is when the stylesheets are called in the folder, they get rejected and return the 404 error......

like image 363
user3367639 Avatar asked May 30 '26 08:05

user3367639


1 Answers

Try,

<?php
    APPPATH.'third_party/myfolder/myfile.ext';
?>
like image 74
ReNiSh AR Avatar answered Jun 01 '26 22:06

ReNiSh AR