Related Articles
REMEMBER LOGIC IN LOGIN
On Login: if(isset($_POST[‘remember’])) { $month = time() + ( ( 3600 * 24 ) * 30 ); setcookie(‘remember_me’, $user_id, $month); } else { $past = time() – 100; setcookie(‘remember_me’, ”, $past); } On Logout: $past = time() – 100; setcookie(‘remember_me’, ”, $past); if( isset($_COOKIE[‘remember_me’]) AND trim($_COOKIE[‘remember_me’] ) != “” ) { //Store the sessions which […]
ADD A COOKIE CONSENT FEATURE
?php%20echo%20SITE_URL;%20?js/jquery.min.js?php%20echo%20SITE_URL;%20?js/jquery.cookieMessage.min.js $.cookieMessage({‘mainMessage’: ‘This website uses cookies. By using this website you consent to our use of these cookies. For more information visit our “>Privacy Policy. ‘,‘acceptButton’: ‘Got It!’,‘fontSize’: ’16px’,‘backgroundColor’: ‘#222’,});
CALL PHP API IN ANGULAR
.ts=controllerhtml inside component 1. npm install -g @angular/cli>> some bugs come so installed noje , node js, npm 2. create one folder : angular-php-app 3. ng new frontend 4. cd frontend 5. ng serve>> Now default angular screen will display 6. import HttpClientModule, and FormsModule>> Open the src/app/app.module.ts file>> add this 2 lines :import { […]
