I have the auth.php file being called from my ‘Gateway’ web app.
This will check the domain and make sure the user is logged in and has access. Once they are The Gateway app should allow them through to the main app. At the minute Yii is loaded still when the main app is called and this is calling me issues.
I need to be able to continue with the page load to the main app as if the Gateway app was never loaded.
I cant exit or the main app will never load.
If i try and let the main app load after not destroying reference to the Gateway all. Otherwise I will end up with error like: Yii application can only be created once.
And other problems with projects created in zend etc.
Create new yii project call authproject (or anything)
Add the following to your httpd.conf
<Directory "/Library/WebServer/Projects/">
Php_value auto_prepend_file /path to your projects/authproject/index.php
</Directory>
Open another yii project in your broswer. First it will run authproject/index.php. You will see that you cannot just load in the following Yii project without error. This is what I am after.