Questions about the 2.0.x branch of the CakePHP MVC framework. If your question applies to CakePHP in general, use the tag [cakephp].
18
votes
10answers
8k views
CakePHP 2.0 with Twitter Bootstrap
Is there a way to configure CakePHP for it to work well with Twitter Bootstrap?
I realize this question has already been asked here, but the answer wasn't really complete.
There are also quite a few ...
12
votes
3answers
7k views
Migrating from Cake 1.3 to 2.0 and beyond - migrate existing, or only use for new?
I'm nearling completion of my first CakePHP-driven website and just saw they're already working on CakePHP 2.0 (not the stable release yet).
My questions:
Is it incredibly time consuming to move to ...
11
votes
4answers
6k views
CakePHP 2.0 - How to make custom error pages?
I read that the AppError class is now for backwards compatibility and that Exceptions should be used instead. How does one go about creating custom error pages for things like 404 errors, or ...
11
votes
3answers
1k views
Cakephp auth component with two models session
I have two cakephp2 applications running on same database, but having different Auth tables and different $this->Auth->userModel values accordingly.
Authentication works well and users from one app ...
10
votes
1answer
2k views
Using SQLite3 with CakePHP 2.0
I'm trying to run SQLite3 with CakePHP 2.0
In these questions I saw that it's possible to do that in CakePHP 1.3:
- Using Sqlite3 with CakePHP
- CakePHP SQLite
However, the solutions are not valid ...
9
votes
1answer
9k views
Loading Vendor Files in CakePHP 2.0
I'm currently upgrading one of our projects to CakePHP 2.0. Unfortunately the "first line" of code makes problems, and I can't find a solution to that problem.
In CakePHP 1.3 I had an ...
9
votes
4answers
5k views
CakePHP with Bootstrap (from Twitter)
I am new to CakePHP and I want to know a way to use Boostrap from Twitter in layouts combined with cake.
My main concern is to make the Form Helper continues to function normally, because I think ...
9
votes
1answer
543 views
From Rails 3.2 to Cake PHP 2.0. How to do some Rails common tasks?
My intention is not to make comparisons or discuss which framework is better. I know the power from both CakePHP and Rails. I'm sure that there's a way to do similar things in both of them.
So, this ...
8
votes
7answers
2k views
Efficient way to Pass variables from PHP to JavaScript
From time to time I have to pass some variables from PHP to JS script.
For now I did it like this:
var js-variable = "<?php echo $php-variable; ?>";
But this is very ugly and I can't hide my ...
8
votes
4answers
10k views
Simple tutorial for file uploads in cakephp 2.0?
Is there any tutorial out there that is NOT a tutorial on how to use Plugin X to upload images in cakephp, specifically 2.0? I am not interested in using a plugin or behavior or component, and I'm ...
8
votes
2answers
3k views
CakePHP 2.0.0-RC2 Console baking error
I originally thought this error had to do with my path setup - I had
separated the core from the app so I could work more easily with git
submodules, so I ignored it. I just did a fresh checkout from ...
7
votes
2answers
10k views
Best way to load models in CakePHP 2.0
I'm not sure of the best way to load models in CakePHP 2.0 now.
Question 1
I have a model where more than one database field is related to another model.
customers table has the fields ...
7
votes
1answer
67 views
How to use aggregate function SUM in cakephp?
I have this query, i want to order by with the sum of quantity. i have to use this result in paginate, Please help me..
SELECT (SUM( OrderItem.quantity )) AS qty, `OrderItem`.`item_name` ,
...
7
votes
2answers
413 views
Does CakePHP automatically deal with mass assignment vulnerabilities when saving modified data?
Edit:
After receiving more information from DCoder, the phrase I was searching for here is a "mass assignment vulnerability." That is to say, taking advantage of the convenience of methods that ...
7
votes
1answer
393 views
What is the best way to process complex datatypes in CakePHP?
My Goal: Replace the Default Cake Datepicker
I hate the default CakePHP FormHelper date-picker select elements and I'd like to use jQuery UI Datepicker widget instead. In order to degrade ...