InimistTech Blogs

Web & Mobile App Tech Weblog

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

Category: CakePHP

An example of CakePHP complex find conditions

Arvind KumarCakePHPLeave a Comment on An example of CakePHP complex find conditions

Setting complex ‘find’ conditions in CakePHP can be tricky. I picked an example of Cakephp complex find conditions from one of my CakePHP projects. I wanted to list all auctions which are “not closed” and whose’ end date/time is greater…

Read More→

Installing PHPUnit in wamp in Windows7

Arvind KumarCakePHP, PHP, WindowsLeave a Comment on Installing PHPUnit in wamp in Windows7

Installing PEAR package manager Add php directory to your Windows’ Environment Variables PATH, if it is not already added. My wamp php path is “C:\wamp\bin\php\php5.3.13”. Check Adding to Environment Variables Path if you are not sure how to add a…

Read More→

Setting id of input wrapper div in cakephp and hiding by default

Arvind KumarCakePHP5 Comments on Setting id of input wrapper div in cakephp and hiding by default

It might be a simple thing for most of CakePHP pro’s but at the same time it could be a tricky thing for CakePHP newbies. I just caught one newbie CakePHP developer of my team spending time on figuring this…

Read More→

How to get current theme name or theme working in cakephp

Arvind KumarCakePHP2 Comments on How to get current theme name or theme working in cakephp

Making theme set and available by setting theme related properties in controller Prior to cakephp 2.0 class UserController extends AppController {     var $view = ‘Theme’; //tells controller to use “ThemeView” class instead of the default “View” class     var $theme =…

Read More→

Conditional skip for a field from model validation in a cakephp controller

Arvind KumarCakePHPLeave a Comment on Conditional skip for a field from model validation in a cakephp controller

In a controller, a table field could be skipped from model validations by editing the “validate” property of a model. For example, i have a “date” validation for “dob” (date of birth) field set in my “User” model.

A note on $form->dateTime(‘field_name’) generating offset warning in CakePHP

Arvind KumarCakePHPLeave a Comment on A note on $form->dateTime(‘field_name’) generating offset warning in CakePHP

This is a note on $form->dateTime(‘field_name’) generating offset warning i.e. “Notice (8): Undefined offset: 1 [CORE/cake/libs/view/helpers/form.php, line 1836..“. If your “date” form field in a view is generating a similar warning you may need to look into the following scenario.

A tip on CakePHP find list with related model conditions

Arvind KumarCakePHP4 Comments on A tip on CakePHP find list with related model conditions

You will need to add recursive=>(value) to the $params when you need to get a ‘list’ of table items using related model conditions. Referring to the example depicted here, http://book.cakephp.org/view/1022/find-list let’s say you perform the following query:

An example of Google Checkout Integration in CakePHP

Arvind KumarCakePHP6 Comments on An example of Google Checkout Integration in CakePHP

NOTE: You will have to make changes into the component code in order to get it working with you application. This is only a sample component and it should not be taken as a plug-and-play kind of component. NOTE: Download…

Read More→

Cakephp important facts you must know – Part 3

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

You load a plugin model like this: $this->loadModel(“Forum.Topic”) You output requestAction result using $this->requestAction(array(‘controller’ => ‘articles’, ‘action’ => ‘featured’), array(‘return’)); // see array(‘return’)

A note on difference between app:import and loadmodel in CakePHP

Arvind KumarCakePHPLeave a Comment on A note on difference between app:import and loadmodel in CakePHP

Posting for, someone searched for terms “cakephp what is the difference between app:import model and loadmodel” and “cakephp what is the difference between app:import and loadmodel” and landed on my blog page but unfortunately i could not provide the answer…

Read More→

Posts navigation

Previous 1 … 3 4 5 … 7 Next
  • Useful Linux Commands
  • Enlighter Example - CSS
  • Disk Space Usage Commands
  • Top Directory Linux commands

Recent Posts

  • The Role of $wpdb for Custom Queries in WordPress
  • React Context API vs. Redux: Which One Should You Use?
  • Build Reusable Components in React
  • Introduction to Node.js for Beginners
  • Getting Started with the MERN Stack: A Beginner’s Guide

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