Questions tagged with add

1 answer

0 votes

Asked by sebb86, on 19/1/10 in

dropdown field (menu) for foreign-key values?!?

Hello,

in my add-view:


<h2><b>add a mac address</b></h2>
<br>

<?php
echo $form->create('MacAddress');
  echo $form->input('hardware_unit_id');
  echo $form->input('description');
echo $form->end('save mac address');
?>

the field...

1 answer

0 votes

Asked by blacksymmetry, on 8/2/10 in

Calling function register with error

Hello,

i have got function with name register, that is used for get values from register form and insert into database.


	function register()
	{


		if (!empty($this->data)) {
				
			$this->User->create();
			if ($this->User->saveAll($this->data))...

1 answer

0 votes

Asked by gmchun83, on 25/2/10 in

Add Image button for form

Hai,

I want to add paypal image at button instead just 'Pay with Paypal' text.

Please refer following for my code:


<?php if(!empty($paypalData)):?>
    <?php echo $paypal->submit('Purchase this package', $paypalData);?>
<?php else:?>
    <?php echo...

1 answer

0 votes

Asked by touchaponk, on 26/2/10 in

Cakephp adding empty record into database

Hi,

I've develope a mobile phone website based on cakephp and after I published the website, I started to have empty record added to my phones' database without knowing where's the source of the problem.

I've tried beforeSave() callback to try to...

3 answers

0 votes

Asked by jamesl, on 11/3/10 in

conditional add

Is it possible to add a condition to the add and update methods?

for example could you add a condition to check that a field value that is about to be added doesnt already exist in the table?

thanks.

0 answers

0 votes

Asked by SeanDowney, on 25/3/10 in

If a user changes their IP address will their session break?

I know there are different security levels, I was curious that if a users IP address changes if they will be logged out. If so on what security level is that

1 answer

0 votes

Asked by fly2279, on 4/5/10 in

What to do when HABTM becomes complicated?

I have a schema similar to the example in the book where Child HABTM Club through a Membership table. I'm using Child hasMany Membership, Club hasMany Membership, and Membership belongsTo Child and Club because I'm saving additional data in the...

1 answer

0 votes

Asked by watchout, on 8/5/10 in

Addformat() site-wide?

Cakephp 1.3 comes with a new method in the NumberHelper called Addformat().

I'd like to use this method to add a new format to display currencies through my website application. The only way I got this to work, is to add the format in each...

1 answer

0 votes

Asked by saavedrajj, on 10/6/10 in

Installing another application inside my CakePHP app

Hi, I have a trouble on my godaddy shared linux hosting account.

I want to install a PHP forum (phpBB3) in a /forum folder *

-app

-cake

-forum *

-plugins

-vendors

and I want to access this forum using this url:

http://www.MyCakeApp.com/forum

but, of...

1 answer

0 votes

Asked by locustmotives, on 14/6/10 in

Edit form validations redirecting to add

When validation fails on an edit form (just a simple 'notempty') the form redirects to {{{

controller/add

}}}

instead of


controller/edit/id

Any idea what gives?

2 answers

0 votes

Asked by saavedrajj, on 26/6/10 in

The Best CakePHP hosting

I'm tired about Godaddy.com I want to change all my projects to a full compatible CakePHP hosting server.

Please recommend me one without problems with subdomains, installing another php aplication inside cakePHP, etc.

THANKS!

0 answers

0 votes

Asked by saeed, on 7/7/10 in

Manipulating Form field's data

Hi,

I am fairly new to cakePHP.

Using Bake I have created my models, controllers and views.

I have a long form on one page which collects data and saves to several models. I have managed to save data into several models from one form using the...

0 answers

0 votes

Asked by Vicky, on 22/7/10 in

Edit image

Hi friends,

I have a form through which i select a image to upload. the uploaded image is stored in webroot/img/images folder and the path of the uploaded image is saved in the database.

My problem is that when i open the same record for editing,...

2 answers

0 votes

Asked by virendradubey123, 2 weeks, 2 days ago in

How to add more column or delete column from table

I need help for dynamically add more column or delete column from table. How can do it.

<< previous next >>