2 answers
1 vote
Is it possible to use an existing DB?
I currently have a site built, but considering rebuilding/refactoring it using CakePHP for easier maintainability and expandability. However I already have a substantial Database created with a lot of data.
Is it possible to still use this...
1 answer
0 votes
No user permissions?
Hi,
Does cake have an option in shell to lock down the controller?
As in the user can only view,edit, and or delete their own stuff. I find it annoying that cake is so helpful but when I bake something fresh I have to manually go and lock down all...
0 answers
0 votes
Thickbox like library with ajax callbacks
Hello,
what I want is a jquery library like thickbox/facebox, where I could load a custom page and perform some ajax.
For example when adding an article in articles/add I want to have a box which will show a modal window. Inside there will be a...
1 answer
0 votes
1.3 Sessions table schema
Can someone paste an sql dump of the cake_sessions table structure? I'm unable to run the cake console due to lack of permissions on my server.
Ive seen sessions.php but it doesn't tell me the exact sql structure.
var $cake_sessions = array(
'id' =...
1 answer
0 votes
Migrations Plugin
Hello,
I tried to integrate the "Migrations Plugin" from CakeDC in my application.
I followed the instructions on this Guide and get the following error when migrating another dev db to the latest revision.
#php cake.php migration all
Welcome to...
0 answers
0 votes
Pagination.
Hi all,
I am stuck on pagination. I am trying to paginate feePayment records based on certain criteria.
feePayments belongs to Students which in turn belongs YearGroups.
I want to paginate 'unpaid' feePayments for each year group. The problem I am...
0 answers
0 votes
COUNT between two Models
Hi everybody, I have 2 models: Restaurant and Zone
app/models/restaurant.php
<?php
class Restaurante extends AppModel {
var $name = 'Restaurant';
var $belongsTo = array(
'Zone' => array(
'className' => 'Zone',
... 0 answers
0 votes
Jumping to top of page before/after Ajax call
In my Cakephp 1.3.2 app, I successfully use ajax pagination and ajax links, using JQuery, PaginatorHelper and JsHelper.
Currently, once a Js or Paginator link is clicked, the current content is faded out and a busy indicator faded in while the new...
0 answers
0 votes
Problem cakephp 1.3
Problem save function cakephp 1.3;
When controller call model-save, I view sql debug
- with cakephp 1.2
1 DESCRIBE `employers` 36 36 5
2 SELECT COUNT(*) AS `count` FROM `employers` AS `Employer` WHERE `Employer`.`empid` = 10707 1 1 4
3 SELECT... 2 answers
0 votes
Binding models. Problem.
I have three tables in the database.
--------------------
Table: cities
Field 1: id
Field 2: name
Field 3: province_id
(City BelongsTo Province)
--------------------
Table: provinces
Field 1: id
Field 2: name
Field 3: country_id
(Province HasMany City AND...
How does CakePHP Questions work?
CakePHP Questions is easy to use: Register and login or directly login using OpenID and just ask your question!
After you ask your question you just need to wait until you have got some answers and pick the correct answer.
Other users might help you by finding the right answer by voting and giving comments.
