Questions tagged [cakephp-2.1]

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

CakePHP is a rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications. Using commonly known design patterns like MVC and ORM within the convention over configuration paradigm, CakePHP reduces development costs and helps developers write less code.[1]

The release of CakePHP 2.1 beta was announced on CakePHP official site on 2012-01-23.

The latest CakePHP stable version is 2.1.5 Security Release resolving security issues related to the XML class.

[1] From the CakePHP home page.

1009 questions
-1
votes
1 answer

layout in layout

I have a general layout. (default) But for users pages, I should add a panel to each page. I tried $this->renderLayout('panel_code', 'default');, but didn't work; and printed default layout view view content! with no panel_code! Where's my mistake?
mrdaliri
  • 7,148
  • 22
  • 73
  • 107
-1
votes
1 answer

CakePHP 2.x - query error - how to see details

How can I see details for THIS: Query is GREAT but I don't know why it won't log in so, how can I see details why ERROR AFFECTED is 1? Thank you!
user1509885
-1
votes
1 answer

Cakephp 2.1 encrypt and decrypt a string

I'm using Cakephp 2.1. How can I encrypt and decrypt a string.
Vijay
  • 53
  • 2
  • 10
-1
votes
1 answer

associated models not loaded in code generated by cake php console

I used the cakephp console to generate some CRUD operations. The generated code was buggy as the model of an associated model was not loaded by default in the controller. For instance: $programs = $this->Chantier->Program->find('list'); would not…
L. Sanna
  • 6,482
  • 7
  • 33
  • 47
-2
votes
1 answer

Undefined index: usertypename in cakephp

Controller part code $Viewcustomer=$this->Viewcustomer->query("SELECT GROUP_CONCAT(usertype_name SEPARATOR ',') as usertypename, customer_name FROM `pre`.`customer` AS `Viewcustomer` WHERE `Viewcustomer`.`customer_status` = 0 AND…
disha
  • 11
  • 1
  • 2
-2
votes
1 answer

Error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual

Error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@g.com, 'User'.'phone' = 87665r5,…
Paul
  • 437
  • 1
  • 5
  • 16
-2
votes
1 answer

What does this code do in CakePHP

I am a total rookie in CakePHP. I have this code in the index file of my CakePHP project $Dispatcher->dispatch( new CakeRequest(), new CakeResponse() ); What does this code do? Is it calling the content of the index.php file? I want to…
gegham
  • 462
  • 1
  • 10
  • 15
-2
votes
1 answer

convert unix timestamp to gmt in Cakephp or php

i am working on a Cakephp 2.x ..i am getting a date in a UNIX timestamp ..i want to convert this Unix timestamp into GMT and then want to save into the database in GMT format .. don't know how to do that neither in cakephp nor in php .. if some one…
hellosheikh
  • 2,929
  • 8
  • 49
  • 115
-2
votes
3 answers

Equivalent mysql_real_escape_string in cakephp

I want to upload a file with blob Field I use a cake framework But I cant use mysql_real_escape_string function Please help me!
user1798056
  • 29
  • 2
  • 4
-2
votes
1 answer

CakePHPform checkbox validation error not shown, but input error

I have a form with required fields, one field is a checkbox. All validation errors will be shown, but no error from checkbox field. I installed DebugKit-Plugin and see, that there will be a validation error, but the message wouldn't shown. class…
mrn_baker
  • 73
  • 6
-2
votes
1 answer

cakephp 2.0 not working after uploaded on my server

In my localhost cakephp is working fine as like joomla i have uploaded by using filezilla but it is not working can any one tell me how to install it on server.
shajis001
  • 3
  • 3
-2
votes
1 answer

Cakephp routing (in PHP too)

I am using Cake, but how do I make the routing like: Router::connect('/', array('controller' => 'homes', 'action' => 'index')); case insensitve? For instance: Router::connect ( '/:user', array('controller' => 'teachers', 'action' =>…
cdub
  • 24,555
  • 57
  • 174
  • 303
-2
votes
1 answer

Convert all values in html file to MS-Word using PHP

I have the HTML and PHP code as below. I have code one file html2word.php:
user1629258
  • 39
  • 2
  • 7
-2
votes
1 answer

Get data from csv file using php

I have the csv file mail.csv I have the text as below: d,2012-08-24 00:00:57+0200,2012-08-24 00:00:45+0200,noreply@news.camera-factice.com,... d,2012-08-24 00:00:57+0200,2012-08-24…
user1606816
  • 381
  • 1
  • 3
  • 6
-3
votes
3 answers

how to give CAKEPHP validation?

If condition is true it should show an error message "already exits" or else a message "successful" should be displayed. Is it possible to add a validation like this to the model part: $name = $_POST["name"]; $validation_sql = "SELECT COUNT(*) > 0…
user12342
  • 107
  • 2
  • 12
1 2 3
67
68
Convert html to doc