Questions tagged [cakephp-2.4]

This tag relates to the 2.4.x branch of the CakePHP MVC framework.

CakePHP 2.4 was released by the end of august 2013.

CakePHP 2.4.0 is now marked as stable. It is a new version in the 2.x series that is API compatible with other releases in the 2.x series. Make sure you read the migration guide before upgrading as there are a few changes you may need to make.

Additionnaly to this tag, you should add the generic one .

Useful links:

345 questions
10
votes
3 answers

Render view to string, then output json in cakephp

I am facing some problems with CakePHP 2.4 in the moment while working with AJAX and JSON. I want to render data with a view, but save the resulting html as a string in a variable. After that, I would like to set an array, containing this html…
zinky
  • 151
  • 1
  • 1
  • 8
9
votes
4 answers

CakePHP 2.4 redirect() with POST data?

I'm looking to send the user to another page via a controller method. The other page expects POST data. Normally, the page is accessed with a postLink(). Is there a way to use this in the controller, perhaps with redirect()?
StringsOnFire
  • 2,726
  • 5
  • 28
  • 50
9
votes
1 answer

Pass Query string to cake style URL in cakephp and give ext of HTML

What I am trying to achieve: When user passes this: /results?val=real&x=1&y=0 it should show: /results/real.html?x=1&y=0 and from Action I should still be able to access $this->request->query['val'] which should be equal to real What I have done…
Keval Domadia
  • 4,768
  • 1
  • 37
  • 64
8
votes
4 answers

cakePHP value for empty option

is there a way to pass a value for the empty option in a select dropdown generated by the FormHelper? I'm creating an input like this: echo $this->Form->input('supplier_id', array('empty'=>true)); with values supplied automatically from the…
Devin Crossman
  • 7,454
  • 11
  • 64
  • 102
7
votes
2 answers

Why is CakePHPs cake_core_method_cache file getting bigger over time?

we're having quite a big CakePHP (currently 2.4.7) SAAS-app. It's pretty mature and until last week we never had any real problems concerning the functionality provided by CakePHPs-core. Last weekend we ran into a very alarming situation, where our…
Johannes N.
  • 2,364
  • 3
  • 28
  • 45
6
votes
3 answers

CakePHP/CakePHP 2.4 app

I am currently developing a CakePHP 2.4 app and trying to manage changes to my database table schemas with the schema manager. I figured out how to generate the schema and restore it, but is there a way to backup the entire database's schema with…
5
votes
1 answer

How is it possible to correctly nest custom fields in a CakePHP find query?

we're often dealing with a code that looks like the following: return $this->find( 'all', [ 'fields' => ['DISTINCT Tag.tag', 'COUNT(Tag.tag) as count'], 'group' => ['Tag.tag'], 'order' => ['count' => 'DESC'] ]); This query leads us to the…
Johannes N.
  • 2,364
  • 3
  • 28
  • 45
5
votes
3 answers

CakePHP - How do I implement blowfish hashing for passwords?

Struggling to find answers to a few basic questions about using Blowfish in Cake 2.4. AppController.php public $components = array( 'Auth' => array( 'authenticate' => array( 'Form' => array( 'fields' =>…
BadHorsie
  • 14,135
  • 30
  • 117
  • 191
5
votes
1 answer

CakePHP - Are these files unnecessary?

When you download CakePHP, these files are present: .editorconfig, .travis.yml, build.properties, and build.xml I have never really had to edit these files before or use them for my applications, but I never deleted them. Are these files important?…
Sameer Anand
  • 311
  • 1
  • 4
  • 11
4
votes
4 answers

CakePHP: Allowed memory size exhausted, increasing memory_limit is not helping

Specs = CakePHP 2.4.6, PHP 5.3.13, Windows 7 x64, Apache Server 2.4.9. I keep getting this error: Allowed memory size xxxx exhausted I have tried everything I could find, increasing memory_limit or max_execution_time inisde php.ini file is not…
salouri
  • 760
  • 1
  • 8
  • 19
4
votes
1 answer

POST request with files and fields in guzzle

Ok I'll give a little background to start. I have system A written in CakePHP that handles ads and products and such. Recently I have been working on another system, written in Laravel, that acts as a self-serve tool for realtors to post and manage…
user3753755
  • 73
  • 1
  • 6
4
votes
6 answers

Typing the command "cake" in console shows no output

Typing the command "cake" in console shows no output, no errors or anything like that. It just prints about 4 blank lines. Has anyone else experience this problem before and how did you fix…
antoniovassell
  • 1,012
  • 14
  • 24
4
votes
1 answer

CakePHP - How to create custom exceptions?

I am trying to throw a custom exception, which then gets rendered by my custom AppExceptionRenderer class (which I've already made). I've read this CakePHP 2.x Cookbook - Creating your own application exceptions but it seems to have various…
BadHorsie
  • 14,135
  • 30
  • 117
  • 191
4
votes
1 answer

Cakephp Paginator Custom Styling

I am using the Paginator Component and Helper. My Code block for Styling is as follows.
4
votes
2 answers

How do I run a CakePHP app in a sub-folder from the root domain?

I'm trying to setup a CakePHP app in a sub-folder but run it from the root domain, eg, user requests domain.co.uk and they get the webroot at {DOCUMENT_ROOT}/version-13/app/webroot. The hosting setup doesn't allow me to change the document root so I…
Tom
  • 224
  • 4
  • 14
1
2 3
22 23