Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Renaming The Protected Folder

$
0
0
Hi Everyone

I want to rename the protected folder, so

I set the $config in index.php to
$config = dirname(__FILE__) . '/myprotected/config/main.php';


Everything works ok except an issue
Trying to include a file like this

Yii::import('application.vendors.myvendor.*');
require_once('myExt.php');


An error occurs

include_once(C:\wamp\www\myproject\protected\vendors\myvendor\myExt.php)


Although the 'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' in config file is correct, the above message indicates that the folder continues to be the "protected" folder.

what I missed ?

Thanks

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>