gauravgs
Questions Asked
2 answers
How do I write a subquery in cakephp
Hello everyone,
I am totally lost in implementing the following sql using cakephp ORM
SELECT... 1 answer
Virtual Field is not compatible with search criteria
Hello everyone,
I have declared a virtual field in the 'user' model (user.php) which is a...
1 answer
custom cakephp error messages not showing
I have created a custom page for error messages in my web application.
I have created these two...
Answers
1
control-list selection
In your 'view' write the following code:
<?php echo $this->Html->script('jquery'); ?>
populateSelectBox = function(elementId,method,url,data){
var $element = $('#'+elementId+'');
... 0
Why is $data cleared on save/update?
You probably need to do it like this:
function view($id = null)
{
//set the id like this
$this->User->id = $id;
//then call saveField method
... 0
back-end controller
whatever method you define in the file app_controller.php , all those methods will be available to every controller in the controllers directory (if they are inherited from AppController class)







I have already tried that link, and mentioned it in while posting my question. Please post only if you know the answer. Thanks
'linkable' is an excellent behavior. Thanks for your valuable answer. It helped me too... :-)
Thanks mehlah for your answer. Yeah everything else is working. I had problems only with this error messages. As the site was configured in production mode these error messages were not showing up correctly. This problem is now solved with a...
No the admin cannot access other functions, You will need to create separate (duplicate) functions for "admin".
How do you update a select box using the CakePHP 1.3 Js helper and Jquery?
I am not very much familiar with using the JS helper, but I can tell you how to do this using jQuery only. If you want to know then let me know by posting a reply to this comment.New Questions
Hot Questions
Just answered
Powered by Inq © 2010-2012 Cake Development Corporation
Ask website © 2010-2012 Cake Software Foundation, Inc.