Re: post title as parameter for view action... how?

2007-07-22 Thread Laburno
=null); > then call it that way: > $html->link('/posts/view/'.$data['Post']['id'].'///'.$data['Post'] > ['title']); > and so. > Hope that's what You were looking for > > On Jul 21, 7:47 pm, Laburno <[EMAIL

post title as parameter for view action... how?

2007-07-21 Thread Laburno
About the Blog tutorial, how can i call the view action from a url like this? http://example.com/posts/view/id/my-post-title/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group,

Ajax update div, cakephp 1.2

2007-07-19 Thread Laburno
Hi all! Could someone explain to a total noob like me, what is the best method to simply update a div with ajax, using cake 1.2? I wish to have a link that call a search function and update a div with the results. Thank you --~--~-~--~~~---~--~~ You received this

Re: radio button

2007-07-18 Thread Laburno
Hi again! I was trying, just for learning purpose, to make the form work with ajax. The idea is to update a div with different search results from the database. This is in my view: A B C submit('Search', array('url' => 'search', 'update'=>'results')); ?> And this is the action Search, in the

Re: radio button

2007-07-17 Thread Laburno
> one set to default checked > > Then in your action you can test with > > if (!empty($this->data) && isset($this->data['my_action'])) { > switch ($this->data['my_action']) { > // case statements - or you could use if..elseif...else &g

radio button

2007-07-16 Thread Laburno
Hi, i'm a total newbie to Cakephph, so please don't be rude :). I'm trying to make a form with a radio button with 3 values (the radio is not linked to any database attribute). Depending on the value selected, the controller function invoked will perform different tasks... the mess is that i don't