Monthly Archives: September 2010

How to use ftp on Ubuntu 4.3 (vsftp installation)


When you upload a website, ordinarily you use sftp, but the need to create a restricted user appears, so note that way to make it in ubuntu. Now as an example, in order to use ftp, we will create a new user called “iwaking”. Add user.# useradd iwaking Setup password.# passwd iwaking Set up to [...]
Posted in Server | 1 Comment

[CakePHP]How to make random id in Model


[CakePHP1.3.3] Sometimes, we want to save random unique id to database. Then, please add this method.
Posted in CakePHP | Leave a comment

[CakePHP]How to get View file name in element or layout


[cakephp 1.3.3]I introduce how to get to know view name in element or layout that is specified by $this->render in controller.For example, with the contact form, as seen below, many times with one action the view is specifed.   But depending on the value of the view, there are times when I want to change [...]
Posted in CakePHP | Leave a comment