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
4
votes
1 answer

CakePHP: best way to remove a field from the admin scaffold

When I admin-scaffold the Users model, everything works great. However, it also has the "password" field. Which is a hash of the actual password. When you save a user in the admin console, it saves the hashed password, which screws everything up.…
vinhboy
  • 8,542
  • 7
  • 34
  • 44
4
votes
3 answers

Replace
in a textarea with a line separator ( Javascript )

I guess this will be answered in two minutes but I am not able to google out a solution. Tried: this, this I have a textarea which first recieves some data from the server (dynamically using AJAX). The text in the textarea may look like…
Igor L.
  • 3,159
  • 7
  • 40
  • 61
4
votes
1 answer

CakePHP 2.1 find using contain with condition

I have the following models. Industry(id, name) Movie(id, name, industry_id) [Industry has many movies] Trailer(id, name, movie_id) [Movie has many trailers] I need to find 6 latest trailers for each Industry. Every movie does not need to have a…
Sanganabasu
  • 943
  • 7
  • 21
  • 39
4
votes
2 answers

cakephp admin login as another user without using password

i am creating a cakephp application that should allow admin to login as any user in the site without knowing the password. Basically if admin wants to login as a manager, he can simply click a button to login as a manager. thank you
harikrish
  • 2,009
  • 3
  • 19
  • 37
4
votes
2 answers

class 'CakeLog' not found error in cakephp 2.1

I have installed cakephp 2.1 in windows server 2008 and it gives me following error Fatal Error: Class "CakeLog" not found in "C:\wamp\www\foldername\app\Config\bootstrap.php" on line 172 Fatal Error: Class "CakeLog" not found in …
Rashi Goyal
  • 933
  • 9
  • 15
4
votes
2 answers

How to send ajax response to Jquery from CakePhp?

I have this script in a view: