Category: PHP Frameworks
PHP | How to install CakePHP 3.0
These are the steps to install CakePHP 3.0 on Ubuntu machine: Make sure you have PHP 5.5.9 (CLI) or higher installed. Check php version on your system using this command: php -v Run the following commands: 1. Download the composer
Introduction to Heroku
Heroku is an all-in-one cloud based platform which allows software developers to develop and host applications over Heroku cloud. The company was setup in June 2007 which initially supported Ruby programming language. Later on, support for other programming languages such
How to send iCal attachment in the email
Suppose you are sending an email in PHP and want to send iCal attachment. In PHP this can be achieved as below: 1. Create iCal file content and put in a variable (like $iCal here): $iCal = “BEGIN:VCALENDAR\r\n VERSION:2.0\r\n METHOD:PUBLISH\r\n
Salesforce | Please use TLS 1.1 or higher when connecting to Salesforce using https
Salesforce login via PHP Salesforce Toolkit API may throw this exception: Please use TLS 1.1 or higher when connecting to Salesforce using https The reason is Salesforce has provided customers with the Critical Update feature Require TLS 1.1 or higher
How to access Moodle files outside the Moodle?
We can access Moodle outside the Moodle (without login) by passing token in the URL. For example : http://localhost/Moodle_new/webservice/pluginfile.php/26/qtype_match/subquestion/17/5/6/PineApple.jpg?token=6yhg9331af9d9284abb36cyjh0c67114a If token is not be passed into the URL, then it redirects to Moodle’s login screen.
CakePHP bake: SQLSTATE[42S02]: Base table or view not found
While running cake bake command for cakephp 3.0 we got the following error: SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘tablename .columnname’ doesn’t exist The culprit was a column with name test_id in one of the tables. As
Heroku | Change PHP session timeout
In Heroku, there is no way to change HTTP session timeout (or some other php.ini settings) from user interface. For this create a file with name .user.ini and specify the properties in it. This file is to be created in
CakePHP | Redirect from http to https URL
If you want to redirect from http to https in CakePHP, generally redirect method code is like this: $this->redirect(array(“controller” => “myController”,”action” =>t; “myAction”)); But if your site is running on http protocol it will redirect to the url with http
Moodle and Java | Retrieving users’ data from Moodle using External Java Application
Retrieving users’ data from Moodle using External Java Application We can write a basic REST moodle client code using Java to fetch users’ records from moodle. Before writing the code, you need to perform below steps in Moodle which are