All Questions

RSS

0 answers

0 votes

Asked by ryantxr, 6 minutes ago in Controllers

Is there a way to redirect to a form and auto populate fields?

Is there a way to redirect to a page with a form an auto populate the fields on that form with some values? I came up with three solutions.

1. Store the values in the session. Both pages are within my app so this would work. However, if a user...

0 answers

0 votes

Asked by dlink, 2 hours, 34 minutes ago in Installation / Configuration

What is redirecting URL?

Hi,

I have cloned a site from a live system to a development system. But when I bring it up in a browser I get redirected to the live site.

If I stick text in at the beginning of app/webroot/index.php I an not redirected.

What is causing that?

I...

0 answers

0 votes

Asked by blacksymmetry, 5 hours, 55 minutes ago in Views

Change charset in $javascript->link ?

I would like to ask, is possible change charset in:


echo $javascript->link('source/source.js'); ?

I need to set here iso-8859-1 charset.

Thanks for any advice.

1 answer

0 votes

Asked by whoami, 5 hours, 56 minutes ago in Controllers

beforeFilter breaks redirect

If you have declared the beforeFilter method in one of your controllers and try to do a redirection using the controllers redirect method in some other method say index, you might get the following error:


Warning (2): Cannot modify header...

2 answers

0 votes

Asked by blacksymmetry, 6 hours, 30 minutes ago in Views

Is possible inlude Css from JS directory?

Hello,

I would like to ask:

If i have got a olugin, for example niceform.

And this plugin have CSS and JS files in one folder.

Is possible include i default.ctp CSS and JS files from one folder.

Instead:


echo...

1 answer

0 votes

Asked by foxroberts, 7 hours, 31 minutes ago in Controllers

Action called list (predefined PHP function name)

I would like to use list as the name of an action.

Example: test.com/products/list

That means that I would have to declare the function

called list in my Controller. Of couse PHP doesn't

allow that: "syntax error, unexpected T_LIST"

Is there a way to...

0 answers

0 votes

Asked by jole, 7 hours, 59 minutes ago in Controllers

validate, save and print

Intro: To print some report in second window is not difficult.

On a form I have a link and this link with target=’blank’ opens a new window an there come a print-view.

Problem: On a form I have a save button

and I'd like to have a save & print...

1 answer

0 votes

Asked by jole, 8 hours, 11 minutes ago in Models

Standard ajax library

Well I read a lot, and now I have too much…

I need clarifying, and I hope I’m not only one.

Cake 1.2.6 standard ajax lib is prototype, and on this lib is based also ajax helper.

In some mailings/blogs I have read that this will be changed in further...

1 answer

0 votes

Asked by jole, 8 hours, 20 minutes ago in Helpers

dialogs

dialogs in application, actualy modal dialog

There are many Ajax dialogs solution. Mostly for a showing a pictures or video.

I’m not experienced Ajax programmer, so I need example, on wicht I can build upon.

wih Ajax helper I done a update of a div,...

2 answers

0 votes

Asked by cshinnimin, 11 hours, 11 minutes ago in Views

Embedded PHP/HTML attack in Forum

Hi everyone.

I am designing a forum for a site right now and it crossed my mind that someone could maybe enter some PHP or HTML in to a post to do malicious things. I therefore tried it myself as a test and it appears not to render anything. Does...

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