Re: get render output

2009-01-12 Thread mmm
what i want to do is to make Swift Component work with 1.2 http://bakery.cakephp.org/articles/view/swiftmailer-component-tutorial unfortunately requestAction() is not exactly what i need.. it has a nice feature to assign layouts to HTML emails, currently this is not working with 1.2(stable).

get render output

2009-01-09 Thread mmm
hi group, i wounder how can i render content to buffer, what i have so far is: ob_start(); $this->controller->render(null, $this->layout, $view); $html_msg = ob_get_contents(); ob_end_clean(); however $this->controller->render() always prints content directly to the browser. my cakephp version i

how to return a json object from a controller?

2008-11-20 Thread mmm
Hi group, i used the following code in my view: $ajax->submit() which generated something like: //

Re: need help with forms and ajax

2008-11-19 Thread mmm
already found a solution to it! thanks anyway! On 19 Nov., 13:15, mmm <[EMAIL PROTECTED]> wrote: > hi group, > i'm missing something really simple and i need your help, i have a > simple form in my view, when a user presses submit button i want to > send form data to contr

need help with forms and ajax

2008-11-19 Thread mmm
hi group, i'm missing something really simple and i need your help, i have a simple form in my view, when a user presses submit button i want to send form data to controller( or view) and get the result back in the ajax callback, updating one singe div on the view. how can actually do that? pleas

url parameters in cake1.2

2008-11-17 Thread mmm
hi group. i'm new to cake, just installed 1.2 rc3 and found it really cool! what i'm trying to find out know is how can i processes custom parameters in URL, for example if i pass: http://myhost.com/app/posts/view/711?myparam=1 is it possible for me to ready this "myparam"? or another example: