The Blog
Can anyone help me please? im having trouble with the blog. actually i want to extent the blog from the cakePHP's blog tutorial.how can i add a cancel button near the save in the adding form so that it can returned back to index if it is canceled? Please help me.. Thanks in advance.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: The Blog
It woks now! It's a good thing that there's still someone who can manage to help beginners like me. Thanks so much! Happy New year! On Dec 30, 10:16 pm, Robby Anderson [EMAIL PROTECTED] wrote: I looked at the form helper in the 1.2 API for a button, and it currently triggers an error (heh, Don't use me yet), so instead of using a nifty helper, you could just use basic HTML for it. Something like this: input type=button value=Button Text ONCLICK=window.location.href='http://www.linkhere.com' or using a cake built URL: input type=button value=Button Text ONCLICK=window.location.href='?php echo $html-url('index'); ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Blog Tutorial
Thanks.. On Dec 29, 8:41 pm, Trencavel [EMAIL PROTECTED] wrote: On Samstag, 29. Dezember 2007 wrote cookiejar_3: Hi, Hi, [... some error messages ...] The blog tutorial was written for cake 1.1. Some input tags are deprecated in version 1.2. (You can read it in the error messages and warnings.) Have a look at the 1.2 api on:http://api.cakephp.org/1.2/search.php?query=input A more up to date tutorial you can found here:http://www.davidgoldingdesign.com/newbie-cakephp.pdf But beware. In latest 1.2 pre-beta are new changes once again. trenc --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Blog Tutorial
Thanks everyone.. On Dec 29, 9:02 pm, Sharan [EMAIL PROTECTED] wrote: Form related functions have been moved to form helper in cake1.2 instead of html helper. Read this article to make the blog tutorial work for you in cake 1.2 :http://ahsanity.wordpress.com/2007/08/31/making-the-blog-tutorial-run... Regards, Sharan. On Dec 29, 4:15 pm, cookiejar_3 [EMAIL PROTECTED] wrote: Hi, I'm having a problem with the blog tutorial, I followed the steps on how to create a blog. The viewing of the title and the message was good but adding a blog does not work well. when I run thehttp://www/posts/add It gives me a message: Notice: Method input() is deprecated in HtmlHelper: see FormHelper::input or FormHelper::text in C:\apache\htdocs\cake\cake \libs\view\helpers\html.php on line 652 Notice: Method tagErrorMsg() is deprecated in HtmlHelper: see FormHelper::error in C:\apache\htdocs\cake\cake\libs\view\helpers \html.php on line 718 Body: Notice: Method textarea() is deprecated in HtmlHelper: see FormHelper::input or FormHelper::textarea in C:\apache\htdocs\cake\cake \libs\view\helpers\html.php on line 576 Warning (512): Method HtmlHelper::submit does not exist [CORE\cake\libs \view\helper.php, line 148] I'm using a Cake 1.2.0 stable version and my posts_controller.php is: ?php class PostsController extends AppController{ var $name = 'Posts'; function index(){ $this-set('posts', $this-Post-findAll()); } function view($id = null){ $this-Post-id = $id; $this-set('post', $this-Post-read()); } function add(){ if (!empty($this-data)){ if ($this-Post-save($this-data)){ $this-flash('Your post has been saved.','/posts'); } } }} ? My add.thtml is: h1Add Post/h1 form method=post action=?php echo $html-url('/posts/add')? p Title: ?php echo $html-input('Post/title', array('size' = '40'))? ?php echo $html-tagErrorMsg('Post/title', 'Title is required.') ? /p p Body: ?php echo $html-textarea('Post/body', array('rows'='10')) ? ?php echo $html-tagErrorMsg('Post/body', 'Body is required.') ? /p p ?php echo $html-submit('Save') ? /p /form Somebody please help me.. Thanks in advance.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Blog Tutorial
Hi, I'm having a problem with the blog tutorial, I followed the steps on how to create a blog. The viewing of the title and the message was good but adding a blog does not work well. when I run the http://www/posts/add It gives me a message: Notice: Method input() is deprecated in HtmlHelper: see FormHelper::input or FormHelper::text in C:\apache\htdocs\cake\cake \libs\view\helpers\html.php on line 652 Notice: Method tagErrorMsg() is deprecated in HtmlHelper: see FormHelper::error in C:\apache\htdocs\cake\cake\libs\view\helpers \html.php on line 718 Body: Notice: Method textarea() is deprecated in HtmlHelper: see FormHelper::input or FormHelper::textarea in C:\apache\htdocs\cake\cake \libs\view\helpers\html.php on line 576 Warning (512): Method HtmlHelper::submit does not exist [CORE\cake\libs \view\helper.php, line 148] I'm using a Cake 1.2.0 stable version and my posts_controller.php is: ?php class PostsController extends AppController{ var $name = 'Posts'; function index(){ $this-set('posts', $this-Post-findAll()); } function view($id = null){ $this-Post-id = $id; $this-set('post', $this-Post-read()); } function add(){ if (!empty($this-data)){ if ($this-Post-save($this-data)){ $this-flash('Your post has been saved.','/posts'); } } } } ? My add.thtml is: h1Add Post/h1 form method=post action=?php echo $html-url('/posts/add')? p Title: ?php echo $html-input('Post/title', array('size' = '40'))? ?php echo $html-tagErrorMsg('Post/title', 'Title is required.') ? /p p Body: ?php echo $html-textarea('Post/body', array('rows'='10')) ? ?php echo $html-tagErrorMsg('Post/body', 'Body is required.') ? /p p ?php echo $html-submit('Save') ? /p /form Somebody please help me.. Thanks in advance.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---