I've installed codeigniter on my server and made Tank auth work fine, too. now I want to know how to access Tank auth from my php pages. do I have to use include function so the login is placed inside my original php page or there is a better way how to do that??
I also want to show the login and log out buttons on my php pages.
any idea or clue to achieve that?
Thanks
Update #1
I believe that I can't create Tank auth session out of codeigniter, so how can I integrate my php pages in this CMS? please correct me if I was wrong.
Ok, I'm also this time going to answer my own question since I found the solution. maybe it is not the best answer, but I made it work in my side. To make the Tank Auth system work on other pages, the pages have to be placed in View folder in codeigniter framework so that an admin can gives permissions to do whatsoever in order to access the pages. Also, from the controller folder pages have to be identified in the same Tank Auth controller page so that the system works together wih any new page. I tried to place the pages out of the framework, but it didn't work Codeiginiter can't define out source variables. I get a lot of error as a result of that. I hope anyone find this useful. Thanks.
Related
I'm currently building a Vue front end for a current PHP application page. I'm curious if I can build the view in Vue-CLI first then include it in the PHP application? If so, how could I accomplish this?
I currently have most of the view done but I'm including a Vue CDN link and just doing the work in page. Which can pile up pretty fast! I would also be able to work faster working through Vue-CLI.
The reason I need to also include this into a PHP page is because of the user session throughout the app. Need to know the user currently logged in. I already have that variable being used, so no issues there. In case anyone was curious as to why PHP.
Any tips would be appreciated.
I am new to backend coding but I am getting the hang of codeigniter. I have deployed the simple task board application hosted on github and everything is fine. As it stands this application uses sessions to create a single dashboard that can be shared by multiple users. I would like to be able to set this up so that a user could register and start their own dashboard. For simplicity it would be good if this new instance or session (not quite sure if I have the terminology right) could share the same database.
So my question is can someone tell me what I need to research in order to develop this? I dont think I have the right terminology to ask google or manuals for what I need.
I prefer you to use codeigniter session library and for dashboard, you may be stored much data in session, so use "Saving Session Data to a Database"
check this link : http://ellislab.com/codeigniter/user-guide/libraries/sessions.html
We have a site where we are intending to sell access to video tutorials. I have set up Joomla ACL to limit access to those pages only to those users who have been given the relevant access permissions and access is being sold through shopping cart called MijoShop.
This setup is working okay at the moment, but there is bit of an issue with user experience. At the moment it seems I can only stop people from viewing a page, but I can't see an easy way to show them alternative content with Joomla ACL. Ideally, if a logged-in user does not have access to a certain video tutorial page, when they click on the link to the page they will instead see a page giving them an opportunity to buy access to the tutorial. This means that I need a method for showing different content on the same page depending on which Joomla user groups a user is assigned to. Is this possible with vanilla Joomla ACL, or am I going to have to find a content management extension that can add the ability to do this?
You should be able to do that with the Vanilla ACL. IIRC you can setup various groups with access to different tutorials/pages/things - then you can make a member a part of multiple groups - thus giving them access to those things as needed.
If unable to do something like that - then I think George Wilsons comment would suffice for a while and you could implement some if/then/else type statements into the code of the article which would work.
Your best bet however is to try the ACL solution first and foremost as that allows you to keep things generally more easy to manage from a backend perspective.
I am trying to implement openid selector into my website, I wonder what is the try_auth file that I need for my openid selector to work?
All I want user to login into my website is using only their google account, so could anyone help me out? I have been doing alot of research and I didn't find a successful way of doing so. I am using PHP for my back end development.
Perhaps if someone could help explain how everything works that will be great, as well I didn't plan to use DB to store any user login. I know I have to have a session variable to check in every page whether user have login or not.
openid-selector is just a nice front-end for choosing which OpenID provider to use for signing in.
You also need a library that does the according back-end stuff. In your case this missing file is part of php-openid: https://github.com/openid/php-openid
I am developing a ZF application and I am using wordpress as the CMS. The problem I have is I have two logins right now one for my application and one for wordpress. Is there a way that I can have the user login to my application and pass to wordpress the users authentication so that the user does not have to login to wordpress also?
Here's a blog post that goes over the process exhaustively. Although slightly older, it should point you in the right direction. I came across it while attempting (unsuccessfully) the same thing.
My blog post about creating a single login when integrating wordpress into an admin area may help you out.
http://www.robjstanley.com/zend-framework-wordpress-single-admin-login/
Hope it helps.