Questions tagged [cakephp-2.6]

CakePHP is a php framework to building web applications simpler, faster and require less code. This tag is about version 2.6 of CakePHP.

CakePHP is a php framework to building web applications simpler, faster and require less code. This tag is about version 2.6 of CakePHP.

136 questions
6
votes
1 answer

CakePHP 2.6.7 hasMany Data is not saved

I'm using CakePHP 2.6.7. A user will be able to add to his profile multiple cars and multiple addresses. He will also be able to link multiple addresses to one car, and link one address to multiple cars. I then have a User model with : class User…
3
votes
2 answers

CakePHP: FlashComponent could not be found

I am using CakePHP 2.6 and trying to follow along with the simple authentication tutorial. I am using another model Account for my Auth->User. After adding in the Flash component in my AppController - I'm seeing the error message on all of my…
user2836292
  • 305
  • 2
  • 5
  • 13
3
votes
2 answers

Session->flash is not showing session message in CakePHP

I'm using CakePHP 2.6.7 and copied the code to show flash messages from one controller to another, but it's not working in the second controller. In AdminsController: function login() { $this->loadModel('Admin'); $this->layout =…
3
votes
4 answers

How to define FlashHelper/Component element for general authError message

After updating CakePHP from 2.6.2 to 2.7.2 I get an missing key error when the auth flash message is created. How can I define the element template for the default authError? Since SessionComponent::setFlash() has been deprecated I added the…
Oops D'oh
  • 941
  • 1
  • 15
  • 34
3
votes
1 answer

Modify $this->request->data in model CakePHP?

How can I modify $this->request->data from model in CakePHP. I tried it with code in model User : public function beforeValidate($options = array()) { unset($this->request->data['User']['birthday']); } But it return errors : Notice (8):…
user3209287
  • 219
  • 4
  • 14
3
votes
4 answers

CakePHP 2.6.0 is not loading CSS and JS files

I just uploaded my website to the server but is not loading the css and js files, only I can see the site just like text and after put the .htaccess files in their places I got this message in the site: Internal Server Error The server encountered…
Hail Hydra
  • 472
  • 6
  • 19
2
votes
1 answer

Upgrade cakephp 2.6 to 2.8 to work php 7

I have a cakephp website on 2.6 and want to run it on php 7. Will it work if I upgrade cakephp to 2.8? I have shared server therefore I cannot have php 5.*.
Xic Om
  • 53
  • 2
  • 11
2
votes
1 answer

Converting MySql query to Cakephp 2.6

Hello friends I am new to Cakephp 2.6, I need to convert MySql query to Cakephp 2.6 . I am getting the desired output, I am fetching the last conversation between client and consultant group by task ID. I don't want to write the Model:query() as I…
Amuk Saxena
  • 1,521
  • 4
  • 18
  • 44
2
votes
2 answers

add multiple endpoints of solr unsing solarium

when I add multiple solr server as endpoint and using a single solarium client to fire query on any solr server; I add replication master/slave to solr. for now I taste when the server for onecore(master or slave) is failed the client/solarium must…
MedKostali
  • 223
  • 1
  • 5
  • 16
2
votes
0 answers

How to set up web.config for CakePHP 2.6 on windows server?

I want to setup cakephp website on windows server and I have checked that URL Rewrite module is installed. As suggested here, IIS7 does not natively support .htaccess files. While there are add-ons that can add this support, you can also import…
Bharat Jain
  • 500
  • 3
  • 15
2
votes
2 answers

Edit in CakePHP creates new entry instead of updating old one

I tried to follow the CakePHP blog tutorial (http://book.cakephp.org/2.0/en/tutorials-and-examples/blog/blog.html) and everything works fine, except for the edit method. The edit function as specified in the tutorial seems to work, but instead of…
Kora K
  • 425
  • 1
  • 4
  • 15
2
votes
2 answers
2
votes
2 answers

Email Validation in cakephp Model

I have the below setup of validation rules. For some reason, 'on' => 'create' block doesn't work. The conditions to be implemented are standard create / modify regarding email. Also, in edit section, I'm getting the error from 'on' => 'create'…
Sp0T
  • 284
  • 8
  • 23
2
votes
2 answers

What is the proper way of setting the page title in CakePHP 2.6?

I am new to Cakephp and searching for how to set page titles and meta keywords,desc. for best SEO management. I have checked any tutorials and question , I would like to ask that is it necessary to set up title in controller page and then fetch in…
Helping Hands
  • 5,292
  • 9
  • 60
  • 127
2
votes
2 answers

Cakephp input dateFormat

I am using CakePHP 2.6.x to create a simple input for type date:- echo $this->Form->input('datetest', array( 'label' => false, 'type' => 'datetime', 'dateFormat' => 'YMD', 'minYear' => date('Y') - 70, 'maxYear' => date('Y') +…
1
2 3
9 10