Category: Models & ORM

What is the best way to load Models in Controller, Cakephp 2?

I would like to ask you all how to speed up/load models in the best way? Take my contacts controller for example:<?php App::uses('AppController', 'Controller'); App::uses('Sanitize', 'Utility')

#memory #models
1 Answers
Harper
Harper

5

Category: Security

Cryptographic nonce plugin in Cakephp 2

I want to add nonce security to block from un-authorized connections for my restful application. I did not see a feature via Cake official documentation, so is there a nonce plugin I can rely on? In s

#nonce
0 Answers

Category: Routing

Cakephp 3 create sub-domain routing like username.domain.com

I want to create sub-domain routing for my Cakephp 3 application. The user profile url is:http://domain.com/profile/{username}I would like to have sub-domain {username} pointing to ProfileController,

#subdomain
1 Answers

Category: Authentication

How to prevent multiple logins on same browser/computer in Cakephp?

I just finished my work on registration and login of my latest Cakephp application (Auth Component). Does anyone knows how to prevent multiple logins on the same browser or computer in Cakephp 3? I ha


3 Answers

Category: Models & ORM

Cakephp counting occurrence of duplicate values in find();

This is my code:$ids = $this->Match->find('all', array('fields' => array('category_id'), 'conditions' => array('event_id' => $event_id, 'sort > ' => 0, 'finished' => 0, 'create

SOLVED #duplicate
2 Answers
Pidara
Pidara

4

Category: Models & ORM

Model fields created and modified are not saved to mysql

Model fields `created` and `modified` should be saved to database on Model.save. Every fields expect for `created` and `modified` are working fine (not null), which should be working on every save or

#save
3 Answers

Category: Installation

Upgrade CakePHP from 3.2 to 3.3

I have an application that was built by CakePHP 3.2. I'd like to upgrade to v3.3.{ "name": "cakephp/app", "description": "CakePHP skeleton app", "homepage": "http://cakephp.org", "

SOLVED #composer #upgrade
3 Answers
Lara
Lara

4

Category: Routing

Get base_url in controller

I need to fix one of my client's cakephp application (version 2.4). And in most web applications we need base_url to get current path for link building. Now I want to build a link to image so:$base_ur

SOLVED
2 Answers
Pidara
Pidara

4

Category: Utility Classes

In Cakephp 3, how to get client's IP address?

Hi,How can I get client's true IP address in Cake 3? $clientIp = $_SERVER['REMOTE_ADDR']; //the php wayI always get output:::1Please help, thanks!

SOLVED #ip
2 Answers

Category: Site Feedback

Can I ask CakePHP-related HTML/CSS/Javascript question in Aero Coding?

As title, can I ask CakePHP-related front-end (HTML/CSS/Javascript) questions in Aero Coding? I love this site and I wish to contribute more to the community. Anyone?

SOLVED #html #css #javascript
1 Answers