How to Clean URL in CakePHP with Route

Clean URLs are needed to help a website achieve high position in search engines. WordPress has a very good clean URLs. If you create a web application with CakePHP, the resulting URL is not too clean and does not contain elements of SEO. To that end, the CakePHP has what is called a route Route in […]

Custom Error Handling for CakePHP 2.xx

The main problem with CakePHP is error handling that hard to do. You need a lot of lines of code. This is in contrast with laravel, where the framework requires only 2 lines of code and everything is finished. For CakePHP, finally I was able to find the proper error handling (for the moment), so […]

New Jquery Snippet Code for Designer and Developer

Jquery is most javascript framework used by developer and designer in the world. Jquery is very important to all web development and design. Its would be basic, fondation of web app, mobile app and more. This is my jquery snippet collection that help me alot when coding jquery. Maybe its also help you. 1. Loading […]

Snippet : How to Build Better URL CakePHP Pagination Just Like on WordPress

Here is best cakephp snippet to build and rewrite pagination URL. You can build url like this (such as wordpress pagination) example.com/page/1 example.com/page/2 example.com/page/3 Here is the superb snippet for it Add this on AppController.php function beforeFilter(){ if (isset($this->request->params[‘page’])) { $this->request->params[‘named’][‘page’] = $this->request->params[‘page’]; } } Add this code to route.php Router::connect(‘/page/:page’, array(‘controller’ => ‘controller’, ‘action’ […]

[Solved] Change The Default Font Size in WP Editor

If the font size in wordpress editor is small enough for you, perhaps it is time to enlarge the font size. For an author and blogger, convenience when writing is the important thing. And perhaps, inspirationwill come when convenient to write. Moreover, if and write using a mini laptop, 10 inch screen and low resolution. Of course this is not comfortable for the eyes.

Adding Custom Class When Upload or Insert Image in WordPress

If you used a bootstrap to build a wordpress template, you might encounter this issue. How to automatically insert custom class when uploading an image, this also applieswhen inserting images, e.g. images from other web (via URL) In the bootstrap, so that the image looks responsive, it needs a class img–responsive.Read the explanation here. This time there was a snippet to make that a reality, without having to insert the class manually. The code as below

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top