All Questions

RSS

0 answers

0 votes

Asked by sonnygauran, 1 hour, 31 minutes ago in Models

How can I do a better implementation for a no-db Cake APP using the DBs found by the database config?

I'm creating a simple interactive courseware for MySQL using CakePHP w/ jQuery.

The APP doesn't need it's own database, but rathar use what's provided on config/database.php. Providing a root user, all databases/tables can be used. Specifying...

0 answers

0 votes

Asked by Sumit, 1 hour, 44 minutes ago in Installation / Configuration

How start with cakePHP

Hi,

I am new to cakePHP. I have configured cakePHP. I want to know how to start building website using it. One application that I saw that was in cook book, made me put my view file in app folder of chakePHP., Do I need to put my index page in...

1 answer

0 votes

Asked by manuels, 9 hours, 11 minutes ago in Models

Reading nested data

Hi,

if I'm using a table setup like this:

Persons

  • ID
  • Surname
  • Forename

Groups

  • ID
  • Title
  • Admin_ID (is a Person's ID)

Memberships

  • ID
  • Group_ID
  • Person_ID

How is it possible to load

  • one Person's data,
  • his Groups' titles and,
  • the Admin's data of the groups,
  • but NOT all...

1 answer

0 votes

Asked by ABCoder, 10 hours, 10 minutes ago in Views

Ajax pagination using JSON data

Cake has default ajax pagination feature, but the output is in html which is not a good idea and huge amount of data transfer.

I want to use JSON to reduce data transfer. Is there any "ready-made" stuff for pagination using json (and jQuery).

2 answers

0 votes

Asked by JacopKane.myopenid.com, 15 hours, 50 minutes ago in Models

I can't get a user data condition requested with a null and spesific id


<?php
function someController()
{
	$user_id = $this->Session->read('Auth.User.id');
	
	$this->Announcement->recursive = 1;
	$this->paginate = array
	(
		'conditions' => array
		(
			'Announcement.user_id' => array($user_id,null)
		),
		'limit'...

1 answer

0 votes

Asked by jamesl, 15 hours, 57 minutes ago in Views

iterate and echo array elements

Hi,

I have an in dex method with a find to select all distinct user id's in my user table;

$userId = $this-Order-find('all', array('fields'=array('DISTINCT(Order.user_id) AS user')));

which sends back the lovely array:

[userId] = Array([0] =...

2 answers

0 votes

Asked by asimzaidi, 16 hours, 32 minutes ago in Models

The default views

I am new to cakephp and I used bake to make the views. I didnt use $scaffold in the controllers. But now I want to get rid of the default query that it shows on the bottom and the heading it shows on the to. How can I do that. Thanks for your help!

1 answer

0 votes

Asked by blacksymmetry, 16 hours, 40 minutes ago in Models

Hashing input values from form.

Hello,

I validating form input password:

but values doesnt matching:

I think, that password_confirm is hashed , and password value not.

How could i hashed password value from input?

Thanks for any reply..


  'password' => array(
            'empty' =>...

1 answer

0 votes

Asked by blacksymmetry, 18 hours, 8 minutes ago in Models

Form validating values doesn't work correctly

Hello i have got one questions

If i click on the form button, with any empty field, this field does not marked as

bad filled.

Only firstname and surname working correctly.

Where can be problem?

Thanks for any reply.


<?php
echo...

1 answer

0 votes

Asked by blacksymmetry, 18 hours, 50 minutes ago in Controllers

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