Questions tagged [cakephp-2.3]

CakePHP is a rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications. It uses commonly known design patterns like MVC and ORM within the convention over configuration paradigm. Use this tag for questions about CakePHP version 2.3.*

CakePHP is a rapid development framework for that provides an extensible architecture for developing, maintaining, and deploying applications. It uses commonly known design patterns like and within the convention over configuration paradigm.

Hints:

  1. To get start learning this framework, there are some tutorials included in its documentation . Especially the blog tutorial is a very good introduction to the basics of CakePHP.

  2. You should mention the version of CakePHP that meant by your question

Current stable branches are , , , , , , , , and .

Additional resources:

1113 questions
15
votes
2 answers

Google Recaptcha is not showing after click on radio button

I have two radio buttons. When I click into one of them to change the form fields, the captcha version 1 does not show anymore. So, I have to click the refresh button to generate a new captcha image.
Ângelo Rigo
  • 2,039
  • 9
  • 38
  • 69
10
votes
1 answer

CakePHP : Difference between " $this->fetch('css') & $this->Html->css('cake.generic') in cake php

Can Someone please Explain this two line used in CakePHP layout.ctp file. It seems both line used for adding css .Then what is the difference ? How they works. $this->Html->css('cake.generic') $this->fetch('css')
Asfaq Tamim
  • 5,677
  • 5
  • 22
  • 29
10
votes
5 answers

CakePHP 2.3.8: Calling Another Controller function in CronController.php

For CakePHP 2.3.8 How can I call Another Controller function in CronController.php Any ideas?
Aditya P Bhatt
  • 21,431
  • 18
  • 85
  • 104
9
votes
4 answers

file upload in cakephp 2.3

I'm new in cakephp and i'm trying to create a simple file upload with cakephp 2.3 here is my controller public function add() { if ($this->request->is('post')) { $this->Post->create(); $filename = WWW_ROOT. DS .…
Hovo
  • 93
  • 1
  • 1
  • 7
8
votes
5 answers

how to use common function in helper and component In Cakephp

We are familiar with Components and Helpers in CakePHP. I have an ABC Component and XYZ helper and both have same function (around 2000 lines total 4000 lines). there is any way to use same function in Controller and .CTP files. it's not good to use…
Yogesh Saroya
  • 1,401
  • 5
  • 23
  • 52
8
votes
4 answers

PHPStorm autocomplete for CakePHP custom helpers in view files

I use PhpStorm 6.0.2 and CakePHP 2.3. In my controller file I define this and get autocomplete for my custom components: /** * @property MysuperComponent $Mysuper */ Regarding to this, in my view files I define this to reach Cake's core helpers…
trante
  • 33,518
  • 47
  • 192
  • 272
8
votes
1 answer

breadcrumbs are not added on cached views

in my Layouts default.ctp I have Html->getCrumbs(' / ', 'Home'); ?> Inside a view called rules.cpt I have Html->addCrumb('Rules', '/rules'); ?> When first…
Gundon
  • 2,081
  • 6
  • 28
  • 46
7
votes
3 answers

Delete multi level in cakephp ( chain delete )

I want to delete all dependent rable record My association Branch Model var $hasMany =array( 'Dealbranch' => array( 'className' => 'Dealbranch', 'foreignKey' => 'DLB_BR_ID', 'dependent' =>true ) ); Dealbranch…
Er.KT
  • 2,852
  • 1
  • 36
  • 70
7
votes
5 answers

CakePHP security component blackholing login (data[_Token][key] field not generated)

When I try to login, the request gets blackholed by teh Security component. How can I make it work right? I have a simple login form
7
votes
2 answers

Using virtual fields in cakePHP 2.x

I've read through the documentation and struggled to understand what to do. Also, I've read through the questions here on stackoverflow, and nothing that I tried helped. I've got a drop down that I want to list all employees in the company. The list…
Bird87 ZA
  • 2,313
  • 8
  • 36
  • 69
6
votes
2 answers

how to test braintree webhooks with different notification types

I want to test my webhook functionality with different notifications. Right now I am able to test it only for canceling subscriptions (by cancelling the subscription from the backend of braintree). $webhookNotification =…
user2971353
  • 67
  • 1
  • 6
6
votes
2 answers

Saving spatial data in CakePHP

I have a problem saving spatial data in CakePHP with saveAll(). I really dont want to write the query manually (Handling spatial data in CakePHP) because there are number of models being saved. Also I read this CakePHP and MySQL Spatial Extension…
user2074884
5
votes
1 answer

Cakephp db query result without tables's names, just plain result as in MySQL?

I am using cakephp and I have a model $db = $this->getDataSource(); $result = $db->fetchAll( 'SELECT table1.id, table1.title, table1.buy_url, table2.image_file as image, table3.category_id…
BlackBishop
  • 737
  • 1
  • 7
  • 18
5
votes
1 answer

cakephp paginator helper shows error when delete the last record from the last page

I just want to redirect that to the last index if the last record is deleted from the last page. please help me to do this. Paginator->prev ($this->Html->image('prev.png'), array('escape' =>…
Sunny Kumar
  • 823
  • 6
  • 14
5
votes
0 answers

CakePHP request data limits

When I try to send a large amount of data from a CakePHP (v2.3.3) form, the $this->request->data array contains only some of the data (approximately the first 1000 values). Does CakePHP truncate this array? What can I do to get the rest of the…
seqal
  • 63
  • 5
1
2 3
74 75