Tuesday, November 17, 2015

Call and use helper in controller Cakephp

Somebody said that there would have many ways to call Helper to use in view , but inspire I would show you how to implement it in Controller.php class YourContrller extends Objects{ pubic function yourfunction() { App::import('Helper', 'String'); $string = new StringHelper(new View()); ...

Saturday, November 14, 2015

Monday, November 9, 2015

Get properties from beforefilter in Cakephp to other function

That is just a trick which most of the developers are still wondering that is there a ways to get some properties from beforefilter in Cakephp to use in other function ? so here is the ways to do. AppController.php public function beforeFilter() { $user_id = ($this->Auth->user('id') != ''...

Monday, August 31, 2015

Replace Multiple String with PHP

Replace Multiple String In PHP If you are working with PHP, then you would meet some problem with how to replace multiple string with a line of code. So there I will show you how to replace multiple string to make your url to be friendly. In this case you have to know a PHP function which is call...

Saturday, August 29, 2015

Get Mac Address With PHP

get mac address with php This post is to show you about Getting Mac Address or PC Address using PHP. This script will help you to display the Address of your computer. Based on this function I hope you will like it. Please take a look at live demo and to see your computer address. Function...