It looks like you're new here. If you want to get involved, click one of these buttons!
Since i cant make proxyconnect work , (noone is replying to my thread) i decided to give jsconnect a try. But prob is that i am using Codeigniter. So my function.jsconnect.php is in views folder. How to access it in require_once path?
Answers
Why don't you place function.jsconnect.php in the same folder as the file where it is required?
dirname(__FILE__)basically finds that directory, so the path would be relative to that.Really people should know relative and absolute paths if they are don't stuff like this. Obviously if you re developing with jsConnect, then you need basic php knowledge. We can help with vanilla specific stuff, code in general or code igniter stuff you have to learn yourself.
Don't PM about development, I'm not currently taking on clients.
grep is your friend.
- Spam
- Abuse
0 · Insightful Awesome LOL ·Yup i had that initially, but it wont access the file.. Thats why i changed function.jsconnect.php to a dir outside my cideigniter app directory. But how to verify its working? It shows blank page when i click on the link directly.
Or can you help me with proxy connect @x00 ? After logging from my login app, it redirects to my index.php and not vanila home page. !
- Spam
- Abuse
0 · Insightful Awesome LOL ·Seriously I have no idea what it is you are tying to do or where you are calling it from. If you are a little less vague I might be able to help.
One thing is for sure is three is no substitute for actually knowing about how a request is handled, the file that is initially run, MVC pattern, etc.
If you don't know that then why are you dabbling in something like this?
It is a simple include.
Don't PM about development, I'm not currently taking on clients.
grep is your friend.
- Spam
- Abuse
0 · Insightful Awesome LOL ·I have my own cms, with its own table and users. Now i wanna integrate vanilla and my cms so that i have common users table. Thats all i am trying to do. I have configured proxyconnect by giving auth url/sign in url and all. When i try login from vanilla, it redirects me to my cms login page which is correct but then after logging in, it takes me to cms homepage and not vanilla homepage.
I hope it helped you understand?
- Spam
- Abuse
0 · Insightful Awesome LOL ·From code ingiter docs: http://codeigniter.com/user_guide/general/helpers.html
put function.jsconnect.php in
application/helpers/but rename it to
jsconnect_helper.phpthen you should be able to load it like so
$this->load->helper('jsconnect');instead of the require.
Don't PM about development, I'm not currently taking on clients.
grep is your friend.
- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·Well if an error has occurred it is being suppressed, you need to look at your error logs, or turn on debug.
these are all code igniter related questions not vanilla questions.
Don't PM about development, I'm not currently taking on clients.
grep is your friend.
- Spam
- Abuse
0 · Insightful Awesome LOL ·Can you tell me which file saves error log? M a newbie :(
- Spam
- Abuse
0 · Insightful Awesome LOL ·Don't PM about development, I'm not currently taking on clients.
grep is your friend.
- Spam
- Abuse
0 · Insightful Awesome LOL ·Here are some lines of code you can put at the top of your file to show what errors are happening:
- Spam
- Abuse
0 · Insightful Awesome LOL ·