Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 06-15-2017, 08:41 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 682,871
Hall of Famer is on a distinguished road
Default

To achieve this, you can add this line to your constructor method for the controller:

Code:
 public function __construct(){       
    parent::__construct("member");         
    // The rest of constructor code if any      
}
This will mark the controller and its subsequent actions accessible only to logged in users, it is used in the account controller(http://yourdomain.com/account). If you want certain actions to be accessible by members only, you can add these lines to the action methods instead:

Code:
    $this->access = "member";        
    $this->handleAccess();
If you dont understand terms such as controller and actions, please let me know and I will explain further.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:12 PM.

Currently Active Users: 2501 (0 members and 2501 guests)
Threads: 4,081, Posts: 32,043, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636