All Questions

RSS

0 answers

-1 votes

Asked by shahid, 1 week, 3 days ago in Helpers

Prototype.js Ajax submit is not working in Safari..

Ajax submit is not working in Safari

This is code:

$ajax->submit('Submit',array("class"=>"btnSaveForum")

);

Thanks

in advance

0 answers

0 votes

Asked by joaquin, 1 week, 3 days ago in Controllers

Using Controller tests to find warnings

I'm doing some refactoring that affect all controllers and wanted to make sure I covered everything by looking at my controller tests and watching for errors and warnings raised with trigger_error. The problem comes that when I run a test that is...

2 answers

0 votes

Asked by michaelbeecken, 1 week, 4 days ago in Models

how to start

Hi community,

just having a first contact to cake.

I tried an example from a magazin and cannot get it startet.

I extracted the cakePHP files to //localhost/test/ in a way, that the folder /app/ appears directly under ...test/...

/test/index.php in...

1 answer

-6 votes

Asked by takcakephp, 1 week, 4 days ago in Models

i want ajax shoping cart-source code

i want ajax shoping cart-source code

1 answer

0 votes

Asked by silverskull, 1 week, 4 days ago in Controllers

Accessing my variables


echo $html->link( "SOME TEXT" , array('controller'=>'modules', 'action'=>'grade', $varOne,$VarTwo), array('class'=>'button'));

Hi i am trying to pass two variables to my controller when my user clicks a link.

Is that possible?

usually when i put a...

2 answers

0 votes

Asked by iyapsse, 1 week, 4 days ago in Models

Custom Form validation with fields in array

This is my form: I want to make sure that all the fields are properly validated and how do I validate since the fields are in array.

<input id=“Friend0Name” name=”data[Friend][0][name]”

<input id=“Friend1Name” name=”data[Friend][1][name]”

<input...

2 answers

0 votes

Asked by Hunnie, 1 week, 4 days ago in Controllers

Create 'most read' panel

Hi,

I'm new to cakePHP (and the MVC model as implemented) and have been tasked with supporting a cakePHP site.

Our client would like a 'most read' box listing the top 5 articles that have been read on their website.

I'm thinking that the easiest way...

1 answer

0 votes

Asked by takcakephp, 1 week, 4 days ago in Plugins

cakephp vendors -help me

i need use cakephp vendors

please help me

my code:

App::import('Vendor', 'jcart/jcart');

$cart =$this-Session-read('jcart'); if(!is_object($cart)) $cart = new jcart();

this code work fine. but i need use

this: <?php $cart-display_cart($jcart);?

in some...

1 answer

0 votes

Asked by blacksymmetry, 1 week, 4 days ago in Models

How to add relation from friend_id to User.id ?

Hello,

I would like to ask, how can i manually make relationship between column

friend_id to User.id.

I need to get information about user with ID ,which is presented in column friend_id.

Thanks very much for any advice.

2 answers

0 votes

Asked by dimis283, 1 week, 4 days ago in Models

error reading tables

I create a cakephp application with existing tables but I have the error

Error: Database table CUSTOMERS for model Customer was not found.

Warning (2): mysql_query() [function.mysql-query]: Unable to save result set...

5   6   7   8   9   10   11   12   13

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.