Unsolved Questions

RSS

2 answers

1 vote

Asked by GrumpyBear, 3 days, 9 hours ago in Installation / Configuration

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

Asked by ckdarby, 3 days, 10 hours ago in Shells

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

Asked by gong, 3 days, 12 hours ago in Views

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

Asked by jay, 4 days, 8 hours ago in Installation / Configuration

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

Asked by AxlF, 4 days, 10 hours ago in Shells

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

Asked by saeed, 4 days, 11 hours ago in Components

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

Asked by saavedrajj, 4 days, 11 hours ago in Models

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

Asked by baskerville, 4 days, 15 hours ago in Helpers

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

Asked by microvnn, 4 days, 22 hours ago in Models

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

Asked by lbanegas, 6 days, 7 hours ago in Models

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...

1   2   3   4   5   6   7   8   9

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.