0 answers
0 votes
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
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
1 answer
0 votes
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
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
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
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
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
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
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))... 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.
