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’ …
Category: Programming
Read articles, tips & tutorials, news and updates on programming language. I write on mostly all languages and try to share my experience with you so you don’t need to spent too much time to find the solution by yourself. Sharing is the true power of knowledge.
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 …
Sometimes it can make you questioned that to get value and to assign value of a DIV using jQuery can be performed by only one function and that is- $("#ElementID").val() With the same code as above we can assign value for this element in jquery.. $("#ElementID").val("The Value") the difference is to give argument in jquery val() function or not. But remember my last code will only assign value inside jquery operation. But text inside that element will not be changed.
?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 …