Questions tagged [cakephp-2.9]

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

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

35 questions
0
votes
1 answer

Trying to display a user with the specific role in cakephp 2x

I am trying to display table Users, and I want it to display the user with the role "Moderator" only. public function moderators() { $this->set('users', $this->paginate()); $this->User->find('all', array( 'conditions' =>…
0
votes
1 answer

Prevent Composer from installing a second copy of CakePHP/2

I'd like to use Composer to install some libraries inside my app directory but the src/app/composer.json lists CakePHP as non-dev dependency: "require": { "php": ">=5.3.0", "ext-mcrypt": "*", "cakephp/cakephp": "~2.9" }, "require-dev":…
Álvaro González
  • 142,137
  • 41
  • 261
  • 360
0
votes
0 answers

How to create Date explorer in cakephp

Blockquote I need some help in cakephp 2.9. So my query is I have to create date explorer in such a way that year(2017) --Month(Jan) --Month(feb) --Month(March) …
Ajay
  • 13
  • 7
0
votes
1 answer

CakePHP running in subdirectory creates problems with URLs in shell, web and unit-tests?

I am using CakePHP 2.9.7 and am trying to write a shell which is supposed to send mails with links (Router::url()) in them. The link will point to a page in my CakePHP application which will send another mail with another link. So we have one mail…
Livia
  • 3
  • 3
0
votes
0 answers

CakePHP afterRender callback gets called before page is rendered

I'm upgrading a CakePHP 1.3 application to CakePHP 2.9.6. Our ExtendedFormHelper (extends AppHelper) contains an afterRender function which is used to append scripts once the content has been rendered. In the 1.3 version, all of this works…
PDx
  • 1
  • 2
1 2
3