Re: Updating a select box using ajax in cake php

2008-03-08 Thread Salam Fall
Here is the piece of Code and link to the tutorial http://www.grahambird.co.uk/cake/tutorials/ajax.php '; print ' '; print '' . $item['title'] . ''; print $ajax->link('Delete', 'delete/' . $item['id'], array('update'=>'tasks_done'));

Re: using $ajax->link to update a div

2008-03-08 Thread Salam Fall
Here is one method Check out this piece of code from this link http://www.grahambird.co.uk/cake/tutorials/ajax.php It will help you, if this confuses you, please paste enough of your code here that can be understood, and will make suggestions based on that. '; print ' ';

Re: $form->submit("submit"); question

2008-03-08 Thread Salam Fall
My question is why does it wrap this tag in a div? because it's the default. Is it possible to prevent cake from doing this? yes.. here is how. Try using $form->submit('Submit', array('div' => false)); That should disable the div around submit and the lable for it. Hope it helps On Mar 8, 6:52

Re: How can include another page

2008-03-08 Thread Salam Fall
create filename.thtml in the /app/views/elements/ then use it in your Use renderElement("filename"); ?> // please notice that the filename extention is not included in the quotes Use can use .thtml or .ctp I hope it helps On Mar 8, 5:59 am, sushil <[EMAIL PROTECTED]> wrote: > Hi, > > I want to

RequestAction with pagination ?

2008-03-08 Thread Salam Fall
Hello All, I have a controller action named listclients and here is the code Conroller class ClientsController extends AppController { function listclients() { Configure::write('debug', '0'); $this->Relation->recursive = 0; $this->set('clients', $this->pa

ajax helper select combo box

2008-02-20 Thread Salam Fall
Hello All, I was wondering how I can use the ajaxhelper to generate a form select combo box and then update a DOM ID / DIV when one of the item in the combo list box is selected. Any help on how to achieve this will be helpful. Thanks --~--~-~--~~~---~--~~ You rece

Class Integration

2008-02-18 Thread Salam Fall
ciate any help on this because I have many classes I would like to use, or if someone could point me to a tutorial that shows this. Thanks Salam Fall --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP"

Re: Question about finding last record in the database

2008-02-10 Thread Salam Fall
t; > function getHighestID() > > { > > $res = $this->query("Select `{$this->name}.id` from `{$this->name}` > > ORDER BY `{$this->name}.id` DESC LIMIT 1"; > > return $res[$this->name]['id']; > >

Re: Question about finding last record in the database

2008-02-09 Thread Salam Fall
tc Now my other question is how do i create my own classes and make them available in the controller and the view?? On Feb 9, 5:34 pm, Salam Fall <[EMAIL PROTECTED]> wrote: > Here is what i have done so far but it's not working > $branch="SEN

Re: Question about finding last record in the database

2008-02-09 Thread Salam Fall
te(); if ($this->Client->save($this->data) etc On Feb 9, 5:31 pm, Salam Fall <[EMAIL PROTECTED]> wrote: > Nubee here > > How do I find the last record in the database and have it's ID value > in the controller and be able to manipulate it m

Question about finding last record in the database

2008-02-09 Thread Salam Fall
Nubee here How do I find the last record in the database and have it's ID value in the controller and be able to manipulate it mathematically. Because all i want to do is put the ID of the last record of the Clients table add 1 to it and append the result to a string that will be used to create

How is the ID value passed to the controller then the view

2008-01-31 Thread Salam Fall
I am new to Cake, coming from RubyOn Rails I am traditionally a PHP developer. here is my question :from a turorial I was able to view an article by typing www.mysite.com/articles/view/1 works great, but how is the id passed to the view action I thought I would have