Category: PHP

CakePHP 2 download link from view using alternative file name

Hi Aero Coding:I have a project written in CakePHP 2 that provides pdf storage and sharing service to end users. The pdf name of download links are same as is the hash name in s3, and pdf file name wa

SOLVED #aws #s3 #pdf
1 Answers
Betts
Betts

2

Category: PHP

Create dropdown list in CakePHP

I use CakePHP's form helper to generate <form></form> columns, but I didn't see a helper that is able to create dropdown list. I use foreach to list all possible options..<!-- in view /

SOLVED #select #htmlhelper
2 Answers
Lara
Lara

4

Category: PHP

Problem when reading an associative array form Cookie

Cakephp returns an error when reading an associative array from Cookie. I have an CRM application that stores some clients data in cookie. <?php class ClientsController extends AppControll

#json #cookie
0 Answers

Category: PHP

Update all records using updateAll() and SQL IN clause

I am using Cakephp 3 latest version and I want to update a gender column for multiple rows. I have studied the ORM documentation and I have no idea how to NOT use foreach loop to update multiple rows

SOLVED #sql #updateall
2 Answers
achao
achao

9

Category: PHP

How to Hash::extract value from JSON data (utility class)

Accroding to Hash::extract() method, to retrieve data from arrays or object implementing with "Hash Path Syntax". For example:// Common Usage: $users = [ ['id' => 1, 'name' => 'mark']

#hash #extract #json
1 Answers
usabob
usabob

2

Category: PHP

Cakephp 3 read config value in helper class

I want to read domain's settings (usually hostname) from app.php config file in DomainHelper. How to read a value from cakephp's config file? I need to get config settings to build up urls for publish

SOLVED #helper #configuration
1 Answers

Category: PHP

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: PHP

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: PHP

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: PHP

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

Welcome to Aero Coding!

Aero Coding is a CakePHP-focused Q&A community for professional and enthusiast cake bakers. It's built and run by you as part of the community.


Join Now Tour

Download Cakephp

Start baking your own CakePHP application!


Cakephp All Versions