Author Archives: admin

8 habits to study English efficiently


I am currently studying English. I always try to learn effectively, probably as much as most people do. However, there are people who become able to speak well while the others don’t, although they’ve been spending the same amount of time. I wonder what makes that difference. I’m still not sure exactly why but I [...]
Posted in English, Knowhow | 6 Comments

[CakePHP]How to check SQL queries in Shell and Controller


[CakePHP1.3.3] When you debug, within Controller and Model there is often something like SQL from the instant you’ve done $this->find(). At that time, either put the function below into vendor or if you read it in bootstrap you can confirm it in SQL any time. Incidentally, within Shell things stripped of HTML are output so [...]
Posted in CakePHP | 4 Comments

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