All Questions

RSS

2 answers

0 votes

Asked by clever, 3 days, 19 hours ago in Views

What's the appropriate way to retrieve data to a homepage

So I have a Model, View and Controller all setup for posts and I want to access and display these posts on my homepage. I'm having trouble figuring out the appropriate MVC/CakePHP way of doing this. I understand the homepage should access the...

0 answers

0 votes

Asked by Mohamad, 3 hours, 55 minutes ago in Models

make sure supplied fieldname is available in the Model

Hi,

I am building an API (response is in JSON format).

Suppose I have a Model named "Group". Group has id, name, and description. Now in case of editing a group, if the user sends a request with POST data containing "name" and "description1",...

2 answers

0 votes

Asked by Rathika, 4 days, 16 hours ago in Models

How to avoid header sent already error?

I have created one association coding. But am getting the out put as "information - headers already sent by (output started at C:\xampp\htdocs\cakephp\app\controllers\users_controller.php:102) [CORE\cake\libs\controller\controller.php, line...

1 answer

0 votes

Asked by starchild, 1 day, 1 hour ago in Models

Memcache cache::read(array($keys))

Hi, I am trying to retrieve an array of keys from memcache but only string is available.

Ok, what I'm doing is counting views of products by setting it's id as key to write to cache and using cache::increment() to increment the integer value every...

2 answers

0 votes

Asked by deedee, 1 day, 14 hours ago in Installation / Configuration

from localhost to internet

hi,

I have start with CakePHP and I think it's great. But one last Problem I have.

On my local serve it works great, but after the upload to my web-server I get this error:

Parse error: syntax error, unexpected '{' in...

2 answers

0 votes

Asked by dhel, 3 days, 14 hours ago in Views

Disable the Back Button in the Browser

Hello Everybody:-)

Can you please help me on how to disable a back button in my browser after clicking a logout button. but the

Here's my code like this my logout:

function logout(){

$this-Session-delete('user');

$this-redirect('/');

exit();

}

what im...

1 answer

0 votes

Asked by sirtaptap, 1 day, 9 hours ago in Installation / Configuration

Old versions of cake

I'm upgrading a site from 1.2.0.5427alpha to 1.2 and beyond; before I do my update I want to know anything and everything my client changed from the cake core files in the past, but I can't find a clean version of cake 1.2.0.5427alpha for the...

0 answers

0 votes

Asked by gkluts, 1 day, 14 hours ago in CakeQS

How to use multiple routeClasses

Hi,

I'm using i18nRoute class from cakedc for multilanguage content routes.

But i also want to use a ContentRoute class for checking if the content item excist.

How can i combine these routeclasses?

I think i have to call the i18n Routeclass in the...

2 answers

0 votes

Asked by manzati93, 4 days, 19 hours ago in Models

Retrive only needed columns with recursive = 2

Hi all!

How can I retrive only my specified models with retrive = 2?

That because I will use only 1 field more than retrive = 1, so i'd like to set retrive = 1 ad add this field, because too much data that i don't need.

Hi,

Mattia

my models and...

1 answer

0 votes

Asked by ryrene, 1 week, 5 days ago in Views

What code that display timer in hrs, mins. and secs?

anyone knows what code that display and run the timer in hrs, mins. and secs?

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