InimistTech Blogs

Web & Mobile App Tech Weblog

  • Home
  • Laravel
  • React
  • Javascript
  • Linux
  • PHP
  • git
  • WordPress
  • Hindi to Unicode

Category: CakePHP

Passed arguments routing and custom ajax pagination url in cakephp

Arvind KumarCakePHP3 Comments on Passed arguments routing and custom ajax pagination url in cakephp

While working in my recent “charity project” i had to list all charities found in a particular region or state. I created a regions_controller and an index function in it to fetch and set records and index.ctp as a view…

Read More→

An alternate to paginator counter showing page in cakephp

Arvind KumarCakePHP3 Comments on An alternate to paginator counter showing page in cakephp

An ordinary yet useful piece of hack to the way the cakephp pagination’s pages “showing page” parameter is displayed. As default, we are used to use $paginator->counter() method which gives us a counter string for the paged result set like…

Read More→

Cakephp important facts you must know – Part 2

Arvind KumarCakePHPLeave a Comment on Cakephp important facts you must know – Part 2

CakePHP comes with a bunch of useful helpers and components which provide user handy tools to process and manipulate data. These helpers are not only the valuable assets for the framework user, but can be of great help to someone…

Read More→

Error handling in cakephp

Arvind KumarCakePHP1 Comment on Error handling in cakephp

Error handling in CakePHP is pretty simple and straight forward. While developing in CakePHP with debug value set to > 0 (Configure::write(‘debug’, 1); in app/config/core.php) you might have encountered error messages something similar to this:

How to use multiple validation rule sets per model in cakephp

Arvind KumarCakePHP5 Comments on How to use multiple validation rule sets per model in cakephp

As default we have single var $validate rule set in the model class which is triggered on each save() method call while saving form data. This is quite logical and sufficient for single form fields to validate but what if…

Read More→

How to apply search filters in cakephp ajax pagination

Arvind KumarCakePHP2 Comments on How to apply search filters in cakephp ajax pagination

Sometimes we need to filter records via custom query while using ajax pagination in a cakephp application. An easy way to achieve this is to store query in a session varibale and to check it whenever an ajax call is…

Read More→

Cakephp important facts you must know – Part 1

Arvind KumarCakePHP2 Comments on Cakephp important facts you must know – Part 1

Mininal use of $uses variable to load models CakePHP loads all models specified in var $uses array when a controller action is called. By loading a model cakephp creates the schema/structure of the table and also caches it for further…

Read More→

Multiple validation rules for a single field in cakephp

Arvind KumarCakePHPLeave a Comment on Multiple validation rules for a single field in cakephp

Cakephp framework provides a strong model validation mechanism. Here is the quick overview of multiple validation rules applied to a single field. Let say we are using “User.password” and “User.password2” fields to accept/confirm password while registering to a site. We…

Read More→

TinyMce and Captcha collide in my cakephp application

Arvind KumarCakePHP1 Comment on TinyMce and Captcha collide in my cakephp application

I was struck in a very strange problem today. I was using captcha component to create and set a captcha session and image for view section. Next is the snippet of create function which i used to load component. I…

Read More→

Posts navigation

Previous 1 … 6 7
  • Useful Linux Commands
  • Enlighter Example - CSS
  • Disk Space Usage Commands
  • Top Directory Linux commands

Recent Posts

  • How to Create a Custom Gutenberg Block in WP (Step-by-Step)
  • How to Create User Roles and Permissions in Laravel 8
  • Creating a Wp Angular Theme for WordPress with Gutenberg
  • Understanding Cookies in PHP
  • How to Create a PHP Session

About Arvind

Arvind Thakur is a Full Stack Web Developer. He founded and runs a Software Development company by the name Inimist Technologies in Chandigarh, India. >> know more
Copyright © All rights reserved.
Blog Kit by WP Charms
Facebook
fb-share-icon
LinkedIn
Share
WhatsApp
Follow by Email
Twitter
Post on X
Reddit
Pinterest
Instagram
RSS
Telegram