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'));
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 ' ';
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
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
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
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
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"
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'];
> >
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
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
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
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
12 matches
Mail list logo