Questions tagged [cakephp-2.5]

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

CakePHP 2.5 was released on May 12, 2014.

CakePHP 2.5 is a fully API compatible upgrade from 2.4.

You should add the generic tag in addition to this one.

Useful links:

238 questions
1
vote
2 answers

CakePHP session lost in Safari and IE between pages on Facebook

I'm developing a Facebook app on CakePHP framework and I'm trying to do one simple thing: // get user $user = $this->Facebook->api('/me'); // store the user id into session $this->Session->write('User.id', $user['id']); But as soon as I change…
J.T.
  • 135
  • 11
1
vote
1 answer

CakePHP - extending FormHelper causes error in it

I want to extend the FormHelper and used this part of a method's code to be called in the view. $out = parent::input($fieldName, $opts); return parent::output($out); Error: Call to a member function useTag() on a non-object File: …
Sven Mäurer
  • 715
  • 1
  • 9
  • 19
0
votes
0 answers

Upload images in Cakephp old framework

I'm using Framework CakePHP 2.5 with Postgresql and I'm trying to upload images and save it. Table name: Documentos. view:
form->create('Documento',['type'=>'file']);?>
Mawui66
  • 3
  • 1
0
votes
0 answers

I am throwing exception in Cakephp 2.5 from a condition, using PHP 7.2, it throwing nothing, why?

I have updated the php version in my cakephp 2.5 application, here what i see the exception is not working in my application. haven't get any solution yet to try anything if (count($suborgs)== 0) { throw new InternalErrorException("User…
Harish
  • 51
  • 13
0
votes
1 answer

How to display a stored session list of posts in index.ctp in CAKEPHP 2.10.15

I want to store my saved session "POSTS" in an array so I can display them in Index.ctp. I save my posts in session by clicking on a link from Index.ctp. I don't know how to display all my saved posts from session in Index.ctp. I made the link "…
Alina Ali
  • 39
  • 1
  • 8
0
votes
0 answers

Cakephp2 column comparison in where clause

I have to fetch data from attendances table where status=1 and printed < allowed_prints i tried few things,current code is given below but not working $attendances = $this->Attendance->find('all',array( 'conditions'=>array( …
Fakhr Alam
  • 27
  • 5
0
votes
0 answers

MPDF7 not displaying PDF

My MPDF is not properly displaying PDF. I'm currently developing in Cakephp 2.x and I encountered an error on MPDF 7 when I tried to install it. I've already updated my composer dependencies but it still didn't work. My view/layout:
0
votes
0 answers

Call to undefined method PaginatorComponent::paginate() cakephp2

I'm upgrading my cakephp1.x project to cakephp2.10.12. I got below error when I try to apply pagination to my view Error Call to undefined method PaginatorComponent::paginate() My controller code like this App::uses('Controller',…
Shamon S
  • 135
  • 1
  • 10
0
votes
0 answers

Ajax/cakephp 2. Click into one checkbox, and populate two different select boxes

I´m trying to click into one checkbox and populate two diferent select boxes. I have to populate the brand select box and the model select box. If the given car is the same car from the last visit for a given client person, returning into an car…
Ângelo Rigo
  • 2,039
  • 9
  • 38
  • 69
0
votes
1 answer

CakePhp 2.5 $belongsTo in two models

Right now I have this: Groups Inside Groups we have Subgroups Inside Subgroups we have Comments Subgroups belongs to Groups 1, 2, 3 ; subgroups table have group_id field Comments belongs to Subgroups A, B, C ; comments table have subgroup_id…
zeflex
  • 1,487
  • 1
  • 14
  • 29
0
votes
1 answer

Model data in schema create with custom connection

I've an AppSchema where I insert some rows into MySQL. So far so good: $foo = ClassRegistry::init('Foo'); $foo->create(); $foo->saveMany(/*...*/); I've learnt that --connection switch is intentionally overridden by each Model::$useDbConfig: If you…
Álvaro González
  • 142,137
  • 41
  • 261
  • 360
0
votes
1 answer

Process post action with another action within controller

I have a terribly designed app where the index action displays a form in a JavaScript-based dialogue that's submitted to process action and then redirects to index (either on success or on error). The process action does not even have a view: class…
Álvaro González
  • 142,137
  • 41
  • 261
  • 360
0
votes
0 answers

cakePHP: Major lag issue

We’re having major lag issue while updating production status and updating production quantity. We’re using JQUERY AJAX post method to do that work. Things work smartly and with good speed, when we comment-out the function “recalculateProduction()”…
user2136790
  • 61
  • 1
  • 2
  • 6
0
votes
1 answer

Cakephp 2.5 and memcached expiration

I am switching my website cache system to use Memcached engine instead of using Files engine. I know when I am using Files, the cached files were deleted when expiring. It seems it's not the case with Memcached. Can you confirm this? If it's the…
zeflex
  • 1,487
  • 1
  • 14
  • 29
0
votes
0 answers

CakePHP override Auth in Controller to use BasicAuthenticate getUser() function

My "Auth" is set in the AppController (to use Form) for all of my controllers. I have one "special" controller which needs to use BasicAuthenticate and then getUser(). With this in the controller: public $components = array( 'Auth' => array(…
tgurske
  • 35
  • 5