To add .ctp view file of CakePHP in PHPStorm editor you simply you just follow the following steps and you are done. Step 1 Just go to File -> Settings to open editor’s settings panel. Step 2: Just click ‘IDE Settings’ -> ‘File Types’ From the above image now just select ‘PHP Files’ from ”Recognized File Types’ and now from the ‘Registered Patterns’ section just click on ‘+’ icon add add *.ctp (according to the following image Now just ‘Apply’ …
Tag: PHP
CakePHP template file usually have their default extension .ctp. And some modern browser can treat them as PHP file by default some are not. While I was working on NetBeans long time ago I faced some problem where I was supposed to do the design part. But without syntax highlighting it was taking too much of time to do the PHP code inside .ctp file. So at last I came up with a solution to introduce .ctp file in NetBeans …
?TIMEZONE SET IN ZEND FRAMEWORK? To set Timezone in Zend Framework. You should place the following code in Bootstrap.php file. protected function _initAutoload(){ date_default_timezone_set('Asia/Dhaka'); } So that from now your application’s timezone will be set in Asia/Dhaka.
Sometimes it’s very essential to test email transaction from localhost in raw PHP or in CakePHP. Today I will show you how to send email from localhost in CakePHP using CakeEmail Component. You must follow the following steps to make it done.. Step 1: Open your localhost php.ini file. It is located inside your server’s PHP directory. Step 2: Inside php.ini please add?the following code and save your modified php.ini file. extension=php_openssl.dll Step 3: Now need to configure your CakePHP …
OOP Concepts (This is a CS108 handout on the basics terminology and structures of OOP.) Object Oriented Programming, OOP, is the must influential paradigm of our time. This handout summarizes the very basic style, elements, and vocabulary of OOP that are common to all OOP languages. OOP languages can have their obscure features, but the basic ideas of OOP are pretty straightforward. Pre-OOP In a classical compiled language like Pascal or C, data-structures and their operations are arranged logically, but …