Breaking News
Home / Web / PHP / PHP Howto

PHP Howto

How to initialize Yii for development environment?

mini:yii2 user$ pwd /Users/user/workspace/projects/web/root/yii2 mini:yii2 user$ cd apps/advanced/ mini:advanced user$ ls -lt total 80 -rw-r–r– 1 user staff 1622 May 21 21:47 -rw-r–r– 1 user staff 5616 May 21 21:47 drwxr-xr-x 11 user staff 374 May 21 21:47 backend drwxr-xr-x 7 user staff 238 May 21 21:47 common …

Read More »

How to setup pretty urls in Yii?

For web applications, the bootstrap file is typically index.php. The same is the case of Yii framework too. The following snippet can be added to apache.conf or defined in .htaccess depending on your hosting setup. This redirect rule convert the routing patterns into pretty urls. RewriteEngine on # prevent httpd …

Read More »
Advertisment ad adsense adlogger