Category: CakePHP

PHP + SFTP : How to connect SFTP Server using PHP (WAMP)? (upload or download files)

In one of my project, we came to the situation where needed to move/copy and download files to/from SFTP (SSH File Transfer Protocol or Secure File Transfer Protocol) server. That was first time when we were worked with SFTP server, So we started with google and after some trial & error we found that its simple … Continue reading PHP + SFTP : How to connect SFTP Server using PHP (WAMP)? (upload or download files)

CakePHP 2.x : Disable back button after logout

In any web application, We manage session for storing user data when he/she logged in our application. And after login, every page is visible only if the session is active. Once user logout from an application we clear/abandon session and redirect to the login page. After logout, if a user clicks on the back button … Continue reading CakePHP 2.x : Disable back button after logout

CakePHP 2.x: Internationalization, client wise PO files for a single language

"CakePHP makes building web applications simpler, faster while requiring less code." We are working on one large ERP application using CakePHP and having internationalization. We have multiple clients for the same application and every client have their own requests for the naming convention for the labels. We were searching in google for many days and … Continue reading CakePHP 2.x: Internationalization, client wise PO files for a single language

CakePHP 2.x: How to log out / terminate the session when user close browser

Many developers may search for this functionality. When the user closed all tabs of application or close browser and again try to hit our application URL in the browser, We want to logout that User. The browser maintains user session whenever there are cookies related to session and cookies not expired on browser close if … Continue reading CakePHP 2.x: How to log out / terminate the session when user close browser