InimistTech Blogs

Web & Mobile App Tech Weblog

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

Tag: CakePHP

Contain and selected fields of model with User _attachAttributes

Arvind KumarCakePHPLeave a Comment on Contain and selected fields of model with User _attachAttributes

I am in a Task model. I build following options to load the Task and associated User model data.

Form Helper: custom decimal field format in number field

Arvind KumarCakePHPLeave a Comment on Form Helper: custom decimal field format in number field

I have a database table field defined as decimal(10,5). I want to use it for various purposes so I don’t want to change the datatype. In most of the forms however I want to keep this field showing none or very…

Read More→

Containable with mixed arguments, the CakePHP Beauty!

Arvind KumarCakePHPLeave a Comment on Containable with mixed arguments, the CakePHP Beauty!

Here’s an example of CakePHP Containable behaviour. Although, it was not a very complex find call but the beauty of the containable is this that you can fetch records using “tricky ways” which normally may not be possible with straight…

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→

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:

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→

SQL dump file for CakeDC comments plugin for CakePHP

Arvind KumarCakePHP3 Comments on SQL dump file for CakeDC comments plugin for CakePHP

If they (CakeDC people) don’t have complaint of any kind or whatsoever i would like to post the SQL dump code for comments table used in CakeDC comments plugin. Especially, those having problems with generating database table or query through…

Read More→

Auto linking text string having image tags using Text Helper in CakePHP

Arvind KumarCakePHPLeave a Comment on Auto linking text string having image tags using Text Helper in CakePHP

Recently I found that auto linking urls and emails of a string having image tags within was not possible using text helper in CakePHP. It would try to autoLink url of image src and thus it is broken. I am…

Read More→

Field type tinyint(1) would not save values other than 0 and 1 in CakePHP

Arvind KumarCakePHPLeave a Comment on Field type tinyint(1) would not save values other than 0 and 1 in CakePHP

Just a quick note. I had a “is_active” field in my users table which i had been using to store boolean 0 and 1 values. Later, i mean today, i decided to save a new value -1 to this field…

Read More→

Posts navigation

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

Recent Posts

  • 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
  • Introduction to Node.js for Beginners

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