Re: Blog example not working - need edit in View

2011-02-03 Thread david tan
On 2 Feb., 17:50, ibejohn818 john.c.ha...@gmail.com wrote: What version of PHP/Server/Operating system are you running on? This very well could be the issue. On Feb 2, 4:38 am, Huy Nguyen nvquang...@gmail.com wrote: I'm totally new to CakePHP so I followed the Blog example

Blog tutorial not working!

2011-02-03 Thread lebert
a link with an explanation of how to do that, it would be very helpful though) I decided to follow the Blog tutorial to get in touch with CakePHP. Well, I didn't get very far... At the step 11.7.1 Create a Post controller (http://book.cakephp.org/ view/1531/Cake-Database-Configuration#!/view/1535

Re: Blog tutorial not working!

2011-02-03 Thread Jeremy Burns | Class Outfit
(if anyone knows a link with an explanation of how to do that, it would be very helpful though) I decided to follow the Blog tutorial to get in touch with CakePHP. Well, I didn't get very far... At the step 11.7.1 Create a Post controller (http://book.cakephp.org/ view/1531/Cake-Database

Re: Blog tutorial not working!

2011-02-03 Thread lebert
with the appropiate path. So I guess something else needs to be done. Regarding the Blog tutorial, I just deleted everything and did it again, and now works! So who knows... but I'm sure I only had one PostController, I strictly followed the tutorial... Well it's time to keep fighting with CakePHP, thank you

Blog example not working - need edit in View

2011-02-02 Thread Huy Nguyen
I'm totally new to CakePHP so I followed the Blog example up to this point and get error because $this-Html not found in View. http://book.cakephp.org/view/1536/Creating-Post-Views I believe the right way is $html instead of $this-Html (as pointed out by another person on Stackoverflow) http

Re: Blog example not working - need edit in View

2011-02-02 Thread andy_the ultimate baker
clarify ur error clearly On Feb 2, 5:38 pm, Huy Nguyen nvquang...@gmail.com wrote: I'm totally new to CakePHP so I followed the Blog example up to this point and get error because $this-Html not found in View.http://book.cakephp.org/view/1536/Creating-Post-Views I believe the right way

Re: Blog example not working - need edit in View

2011-02-02 Thread Huy Nguyen
I followed the Blog example up to this point and get error because $this-Html not found in View. http://book.cakephp.org/view/1536/Creating-Post-Views I believe the right way is $html instead of $this-Html (as pointed out by another person on Stackoverflow) http://stackoverflow.com

Re: Blog example not working - need edit in View

2011-02-02 Thread Jeremy Burns | Class Outfit
, andy_the ultimate baker anandghaywankar...@gmail.com wrote: clarify ur error clearly On Feb 2, 5:38 pm, Huy Nguyen nvquang...@gmail.com wrote: I'm totally new to CakePHP so I followed the Blog example up to this point and get error because $this-Html not found in View.http

Re: Blog example not working - need edit in View

2011-02-02 Thread Huy Nguyen
...@gmail.com wrote: I'm totally new to CakePHP so I followed the Blog example up to this point and get error because $this-Html not found in View. http://book.cakephp.org/view/1536/Creating-Post-Views I believe the right way is $html instead of $this-Html (as pointed out by another person

Re: Blog example not working - need edit in View

2011-02-02 Thread andy_the ultimate baker
the Blog example up to this point and get error because $this-Html not found in View. http://book.cakephp.org/view/1536/Creating-Post-Views I believe the right way is $html instead of $this-Html (as pointed out by another person on Stackoverflow) http://stackoverflow.com/questions

Re: Blog example not working - need edit in View

2011-02-02 Thread Jeremy Burns | Class Outfit
On Feb 2, 5:38 pm, Huy Nguyen nvquang...@gmail.com wrote: I'm totally new to CakePHP so I followed the Blog example up to this point and get error because $this-Html not found in View.http://book.cakephp.org/view/1536/Creating-Post-Views I believe the right way is $html instead

Re: Blog example not working - need edit in View

2011-02-02 Thread Huy Nguyen
I just downloaded and installed from http://cakephp.org/ within a few hours ago. 1.3.7 Yeah I tried $html-link instead of $this-Html. It works now. I just thought someone might clarify and amend the example for those who attempt at it later on? :) Huy -- Our newest site for the community:

Re: Blog example not working - need edit in View

2011-02-02 Thread Huy Nguyen
totally new to CakePHP so I followed the Blog example up to this point and get error because $this-Html not found in View. http://book.cakephp.org/view/1536/Creating-Post-Views I believe the right way is $html instead of $this-Html (as pointed out by another person on Stackoverflow

Re: Blog example not working - need edit in View

2011-02-02 Thread andy_the ultimate baker
good for u On Feb 2, 5:58 pm, Huy Nguyen nvquang...@gmail.com wrote: I just downloaded and installed fromhttp://cakephp.org/within a few hours ago. 1.3.7 Yeah I tried $html-link instead of $this-Html. It works now. I just thought someone might clarify and amend the example for those who

Re: Blog example not working - need edit in View

2011-02-02 Thread Jeremy Burns | Class Outfit
That doesn't sound right to me - the convention is $this-Html and it works like a peach. If it didn't, there'd be a revolution. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 2 Feb 2011, at 12:58, Huy Nguyen wrote: I just downloaded and installed from

Re: Blog example not working - need edit in View

2011-02-02 Thread Ryan Schmidt
On Feb 2, 2011, at 06:38, Huy Nguyen wrote: I'm totally new to CakePHP so I followed the Blog example up to this point and get error because $this-Html not found in View. http://book.cakephp.org/view/1536/Creating-Post-Views I believe the right way is $html instead of $this-Html

Re: Blog example not working - need edit in View

2011-02-02 Thread ibejohn818
What version of PHP/Server/Operating system are you running on? This very well could be the issue. On Feb 2, 4:38 am, Huy Nguyen nvquang...@gmail.com wrote: I'm totally new to CakePHP so I followed the Blog example up to this point and get error because $this-Html not found in View.http

Re: Blog example not working - need edit in View

2011-02-02 Thread euromark
: What version of PHP/Server/Operating system are you running on? This very well could be the issue. On Feb 2, 4:38 am, Huy Nguyen nvquang...@gmail.com wrote: I'm totally new to CakePHP so I followed the Blog example up to this point and get error because $this-Html not found

Re: Blog example not working - need edit in View

2011-02-02 Thread Jeremy Burns | Class Outfit
am, Huy Nguyen nvquang...@gmail.com wrote: I'm totally new to CakePHP so I followed the Blog example up to this point and get error because $this-Html not found in View.http://book.cakephp.org/view/1536/Creating-Post-Views I believe the right way is $html instead of $this-Html

Re: Blog example not working - need edit in View

2011-02-02 Thread Huy Nguyen
I am using PHP 5.3.5 and Apache 2.2.17 bundled in wampserver, running on Windows 7. CakePHP 1.3.7 And no I don't declare any $html variable in the view. I was just following suit the Blog tutorial on CakePHP Book. On Thu, Feb 3, 2011 at 11:10 AM, Jeremy Burns | Class Outfit jeremybu

Re: Blog example not working - need edit in View

2011-02-02 Thread AD7six
On Feb 2, 1:58 pm, Huy Nguyen nvquang...@gmail.com wrote: I just downloaded and installed fromhttp://cakephp.org/within a few hours ago. 1.3.7 Yeah I tried $html-link instead of $this-Html. It works now. I just thought someone might clarify and amend the example for those who attempt at it

Re: Problem with Cake PHP blog tutorial..Can't add

2010-11-25 Thread John Maxim
Hi I'm not sure what was it, I installed WAMP and it now works. Thank you... On Nov 24, 5:04 pm, Amit Badkas amit.sanis...@gmail.com wrote: Hi, The error message says *output started at C:\xampp\htdocs\cakephp\app\controllers\posts_controller.php:1* It means the first line of

Re: Problem with Cake PHP blog tutorial..Can't add

2010-11-25 Thread AD7six
On Nov 25, 3:05 pm, John Maxim sunway...@gmail.com wrote: Hi I'm not sure what was it, Perhaps it was that your posts controller had ?php (or something else of the likes) on line 1 - like it says in the error message and as others already pointed out. I installed WAMP and it now works. a

Re: Problem with Cake PHP blog tutorial..Can't add

2010-11-25 Thread John Maxim
I see... maybe that was it, thanks guys ! this is a fantastic community... first I thought there were no replies... On Nov 25, 10:40 pm, AD7six andydawso...@gmail.com wrote: On Nov 25, 3:05 pm, John Maxim sunway...@gmail.com wrote: Hi I'm not sure what was it, Perhaps it was that your posts

Re: Problem with Cake PHP blog tutorial..Can't add

2010-11-24 Thread Amit Badkas
Hi, The error message says *output started at C:\xampp\htdocs\cakephp\app\controllers\posts_controller.php:1* It means the first line of posts_controller.php has some type of output, maybe a space or an empty line, please check. Amit Badkas PHP Applications for E-Biz: http://www.sanisoft.com

Re: Problem with Cake PHP blog tutorial..Can't add

2010-11-24 Thread pave2009
Try this in your index.ctp file : h1Blog posts/h1 table tr thId/th thTitle/th thCreated/th /tr !-- Here is where we loop through our $posts array, printing out post info -- ?php echo $this-Html-link('Add Post', array('controller' = 'posts', 'action' = 'add')); foreach ($posts as $post): ?

How should my blog look like ?

2010-11-23 Thread John Maxim
I'm going through a tutorial set up by cake PHP, where creating a blog. I mean after creating it successfully, why is there query numbers, error messages at the bottom of the view page ? I wonder if my XAMPP is working correctly I have checked my httpd.conf file and it seems to be fine

Problem with Cake PHP blog tutorial..Can't add

2010-11-23 Thread John Maxim
?php class PostsController extends AppController { var $name = 'Posts'; function index() { $this-set('posts', $this-Post-find('all')); } function view($id = null) { $this-Post-id = $id; $this-set('post', $this-Post-read()); } function

Re: How should my blog look like ?

2010-11-23 Thread Leow
This confusion has been solved, I read another tutorial which there were snapshots and found that my installation was correct. On Wed, Nov 24, 2010 at 12:01 AM, John Maxim sunway...@gmail.com wrote: I'm going through a tutorial set up by cake PHP, where creating a blog. I mean after creating

Re: Problem with Cake PHP blog tutorial..Can't add

2010-11-23 Thread Jeremy Burns | Class Outfit
That's the error message PHP delivers when something is printed to screen before the actual output (the headers referred to in the error message). Check you code for debug statements or other errors that could be doing this. Jeremy Burns Class Outfit jeremybu...@classoutfit.com

Re: can't add post for blog tutorial

2010-10-20 Thread cricket
On Tue, Oct 19, 2010 at 10:36 PM, Huan Yao yao_h...@yahoo.com wrote: I use cakephp 1.2, and follow the procedure of 1.2 blog tutorial. Now I cannot add post even I input string. Any idea? My system is Ubuntu 8.10 http://ryan.ifupdown.com/2008/08/24/delimiter-must-not-be-alphanumeric

Re: 15 minute Blog Tutorial? Really?

2010-10-11 Thread Jos Gerrits
ehm, did you change *function index.php { }* to *function index.ctp{ }* ? it should be * function index{ }* and have app/views/posts/index.ctp greetings. 2010/10/10 Jeff jeffri...@gmail.com Fran - Gracias, esta perfecto! (SP?) Jeff On Oct 10, 4:02 pm, Fran Iglesias

Re: 15 minute Blog Tutorial? Really?

2010-10-11 Thread Jos Gerrits
sry, typo on my side. function index(){ } ^^ 2010/10/11 Jos Gerrits josgerrit...@gmail.com ehm, did you change *function index.php { }* to *function index.ctp{ }* ? it should be * function index{ }* and have app/views/posts/index.ctp greetings. 2010/10/10 Jeff

15 minute Blog Tutorial? Really?

2010-10-10 Thread Jeff
webserver, then I went to the url as described in the tutorial - and Cake doesn't seem to be the least bit interested in the blog stuff - it just wants a whole new set of files NOT pointing at Posts, but pointing at Missing Method in PostsController Error: The action index.php is not defined

Re: 15 minute Blog Tutorial? Really?

2010-10-10 Thread Renato de Freitas Freire
in the tutorial - and Cake doesn't seem to be the least bit interested in the blog stuff - it just wants a whole new set of files NOT pointing at Posts, but pointing at Missing Method in PostsController Error: The action index.php is not defined in controller PostsController Error: Create

15 Minute Blog Tutorial - not quite 15 minutes

2010-10-10 Thread Jeff
Not sure why, but I'm the lucky guy that gets to spend WA more than 15 minutes on a 'simple' demo. Admittedly I'm a noob, but one would think that something this basic should work. I dutifully copied and pasted the code from the tutorial examples in to php files and uploaded them to my

Re: 15 minute Blog Tutorial? Really?

2010-10-10 Thread Ma'moon
in the blog stuff - it just wants a whole new set of files NOT pointing at Posts, but pointing at Missing Method in PostsController Error: The action index.php is not defined in controller PostsController Error: Create PostsController::index.php() in file: app/controllers/ posts_controller.php

Re: 15 minute Blog Tutorial? Really?

2010-10-10 Thread Jeff
interested in the blog stuff - it just wants a whole new set of files NOT pointing at Posts, but pointing at Missing Method in PostsController Error: The action index.php is not defined in controller PostsController Error: Create PostsController::index.php() in file: app/controllers

Re: 15 minute Blog Tutorial? Really?

2010-10-10 Thread Jeff
doesn't seem to be the least bit interested in the blog stuff - it just wants a whole new set of files NOT pointing at Posts, but pointing at Missing Method in PostsController Error: The action index.php is not defined in controller PostsController Error: Create PostsController

Re: 15 Minute Blog Tutorial - not quite 15 minutes

2010-10-10 Thread jsalonen
The URL you should access is http://click-2-run.com/cakephp/app/posts/index - without .php file name extension. In CakePHP you're accessing actions defined in controller, not files. For this reason there are no file name extensions. They can be enabled in the router configuration though:

Re: 15 minute Blog Tutorial? Really?

2010-10-10 Thread Ma'moon
to be the least bit interested in the blog stuff - it just wants a whole new set of files NOT pointing at Posts, but pointing at Missing Method in PostsController Error: The action index.php is not defined in controller PostsController Error: Create PostsController::index.php() in file

Re: 15 minute Blog Tutorial? Really?

2010-10-10 Thread Jeff
bit interested in the blog stuff - it just wants a whole new set of files NOT pointing at Posts, but pointing at Missing Method in PostsController Error: The action index.php is not defined in controller PostsController Error: Create PostsController::index.php() in file: app

Re: 15 minute Blog Tutorial? Really?

2010-10-10 Thread Ma'moon
. I dutifully copied and pasted the code from the tutorial examples in to php files and uploaded them to my webserver, then I went to the url as described in the tutorial - and Cake doesn't seem to be the least bit interested in the blog stuff - it just wants a whole new set

Re: 15 minute Blog Tutorial? Really?

2010-10-10 Thread Ma'moon
in the blog stuff - it just wants a whole new set of files NOT pointing at Posts, but pointing at Missing Method in PostsController Error: The action index.php is not defined in controller PostsController Error: Create PostsController::index.php() in file: app

Re: 15 minute Blog Tutorial? Really?

2010-10-10 Thread Jeff
files and uploaded them to my webserver, then I went to the url as described in the tutorial - and Cake doesn't seem to be the least bit interested in the blog stuff - it just wants a whole new set of files NOT pointing at Posts, but pointing at Missing Method

Re: 15 minute Blog Tutorial? Really?

2010-10-10 Thread Fran Iglesias
Hi Jeff El 10/10/2010, a las 22:58, Jeff escribió: Debug already IS '2' http://click-2-run.com/cakephp/posts/index.php Try http://click-2-run.com/cakephp/posts/index without the extension The url is /controller/action and action name in the controller doesn't include extensions. --- Fran

Re: 15 minute Blog Tutorial? Really?

2010-10-10 Thread Jeff
Fran - Gracias, esta perfecto! (SP?) Jeff On Oct 10, 4:02 pm, Fran Iglesias cakephpi...@gmail.com wrote: Hi Jeff El 10/10/2010, a las 22:58, Jeff escribió: Debug already IS '2' http://click-2-run.com/cakephp/posts/index.php Try http://click-2-run.com/cakephp/posts/index without

Re: 15 Minute Blog Tutorial - not quite 15 minutes

2010-10-10 Thread Jeff
Thanks Joni - working MUCH better now! Jeff On Oct 10, 3:11 pm, jsalonen joni.salo...@gmail.com wrote: The URL you should access ishttp://click-2-run.com/cakephp/app/posts/index - without .php file name extension. In CakePHP you're accessing actions defined in controller, not files. For

blog tutorial Html-link problem

2010-10-06 Thread J. Argyl Plath
Hello. I am following along on the blog tutorial and I can't get my first view to work. I set up the database just fine and created my model and controller. I copy/pasted in the view code but I get this error: Notice (8): Undefined property: View::$Html Fatal error: Call to a member function

Re: blog tutorial Html-link problem

2010-10-06 Thread Jeremy Burns | Class Outfit
to be updated - perhaps I'll take that on when a get a bit of time. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 4 Oct 2010, at 20:45, J. Argyl Plath wrote: Hello. I am following along on the blog tutorial and I can't get my first view to work. I set

Re: Starting a programming blog, should I use CakePHP or wordpress?

2010-09-15 Thread LunarDraco
and a blog system, I would say your best effort would be in learning how to integrate and use an existing blogs API For my clients I'm usually being asked to solve a problem. More often than not that problem is an integration problem between already implemented and heavily used systems. I

Re: Starting a programming blog, should I use CakePHP or wordpress?

2010-09-15 Thread Tilen Majerle
look now...if u want a PROGRAMMING blog...then u should use CakePHP or any other framework / script (whatever) else if u want use a already PROGRAMMED wordpressthen is this not a programming -- Tilen Majerle http://majerle.eu 2010/9/15 LunarDraco mdc...@gmail.com True

Re: Starting a programming blog, should I use CakePHP or wordpress?

2010-09-15 Thread j.blotus
@tilen That is not any sense. On Sep 15, 1:36 pm, Tilen Majerle tilen.maje...@gmail.com wrote: look now...if u want a PROGRAMMING blog...then u should use CakePHP or any other framework / script (whatever) else if u want use a already PROGRAMMED wordpressthen is this not a programming

Re: Starting a programming blog, should I use CakePHP or wordpress?

2010-09-14 Thread LunarDraco
If you want to really do anything with cake and a blog system, I would say your best effort would be in learning how to integrate and use an existing blogs API For my clients I'm usually being asked to solve a problem. More often than not that problem is an integration problem between already

Re: Starting a programming blog, should I use CakePHP or wordpress?

2010-09-14 Thread j.blotus
as been quite interesting and helpful. On Sep 14, 1:02 pm, LunarDraco mdc...@gmail.com wrote: If you want to really do anything with cake and a blog system, I would say your best effort would be in learning how to integrate and use an existing blogs API For my clients I'm usually being asked

Re: Starting a programming blog, should I use CakePHP or wordpress?

2010-09-12 Thread Crazy
CakePHP is a framework, so you have to write the blog yourself. Wordpress is a blog, no need to do anything. For my blog I use wordpress as I find it kind of stupid to reinvent the wheel. Wordpress has tons of themes, plugins and is configurable enough for a blog. If you don't like something

Re: Starting a programming blog, should I use CakePHP or wordpress?

2010-09-12 Thread and
j.blo...@gmail.com wrote: I have been programming in nothing but CakePHP for the last year, and I wanted to start a little blog just to share some of my observations and tips. I thought about building my own, which would be almost trivial to do in CakePHP, but then I kept thinking that I

Re: Starting a programming blog, should I use CakePHP or wordpress?

2010-09-12 Thread j.blotus
knowledge do it by yourself! On Sep 11, 10:46 pm, j.blotus j.blo...@gmail.com wrote: I have been programming in nothing but CakePHP for the last year, and I wanted to start a little blog just to share some of my observations and tips. I thought about building my own, which would be almost

Re: Starting a programming blog, should I use CakePHP or wordpress?

2010-09-12 Thread Moe Sweet
Definitely Wordpress bro. CakePHP is a general MVC. Wordpress is dedicated blog CMS. There's no reason you need to re-invent the wheel. And there's nothing about blog there isn't but should be there in Wordpress. Just download the wordpress core, choose a free theme (or paid one if you like

30 day expiration on blog posts and displays days to expiration in view?

2010-09-12 Thread Lance
I'm trying to create a expiration field for blog posts that will display something like 25 days to expiration. I added an expiration DATETIME field in my database. I want to make it 30 days from the created DATETIME field in my database. Can anyone steer me in the right direction. I imagine

Re: Starting a programming blog, should I use CakePHP or wordpress?

2010-09-12 Thread cricket
On Sat, Sep 11, 2010 at 10:46 PM, j.blotus j.blo...@gmail.com wrote: I have been programming in nothing but CakePHP for the last year, and I wanted to start a little blog just to share some of my observations and tips. I thought about building my own, which would be almost trivial to do

Re: 30 day expiration on blog posts and displays days to expiration in view?

2010-09-12 Thread cricket
On Sun, Sep 12, 2010 at 3:12 PM, Lance lance3...@gmail.com wrote: I'm trying to create a expiration field for blog posts that will display something like 25 days to expiration.  I added an expiration DATETIME field in my database.  I want to make it 30 days from the created DATETIME field

Re: 30 day expiration on blog posts and displays days to expiration in view?

2010-09-12 Thread Lance
; } Thanks again! Lance On Sep 12, 6:17 pm, cricket zijn.digi...@gmail.com wrote: On Sun, Sep 12, 2010 at 3:12 PM, Lance lance3...@gmail.com wrote: I'm trying to create a expiration field for blog posts that will display something like 25 days to expiration.  I added an expiration

Re: Starting a programming blog, should I use CakePHP or wordpress?

2010-09-12 Thread Miles J
wrote: I have been programming in nothing but CakePHP for the last year, and I wanted to start a little blog just to share some of my observations and tips. I thought about building my own, which would be almost trivial to do in CakePHP, but then I kept thinking that I was trying to write

Re: Starting a programming blog, should I use CakePHP or wordpress?

2010-09-12 Thread Jamie
To be blunt: don't waste your time. Just use WordPress - it takes 5 minutes to set up and has a ton of features, plugins, themes, etc. I use WordPress for my CakePHP blog and I love it - so easy to maintain, in that I don't have to maintain it at all. :) The last thing I have time to worry about

Re: Starting a programming blog, should I use CakePHP or wordpress?

2010-09-12 Thread Jeremy Burns | Class Outfit
result, in the right timeframe, at the right price. If I were thinking of hiring you and you were proud of the fact that you spent your time building a blog system when there is an industry standard out there (let's make that quantum leap a moment) that you could have deployed for free in half

Starting a programming blog, should I use CakePHP or wordpress?

2010-09-11 Thread j.blotus
I have been programming in nothing but CakePHP for the last year, and I wanted to start a little blog just to share some of my observations and tips. I thought about building my own, which would be almost trivial to do in CakePHP, but then I kept thinking that I was trying to write something

Re: Starting a programming blog, should I use CakePHP or wordpress?

2010-09-11 Thread nurvzy
http://www.webtechnick.com/blog I wrote mine from scratch with CakePHP, but I'm a DIY kind of guy. It's kind of an even split between the CakePHP bloggers I respect and follow. I know Matt Curry (http://www.pseudocoder.com/) uses Croogo (http://croogo.org/) which is a CakePHP CMS but started

Re: Starting a programming blog, should I use CakePHP or wordpress?

2010-09-11 Thread j.blotus
:24 am, nurvzy nur...@gmail.com wrote: http://www.webtechnick.com/blog I wrote mine from scratch with CakePHP, but I'm a DIY kind of guy. It's kind of an even split between the CakePHP bloggers I respect and follow.  I know Matt Curry (http://www.pseudocoder.com/) uses Croogo (http

Re: Blog tutorial: Missing argument 1 for PostsController::delete()

2010-08-23 Thread psybear83
i think problem is here.your link should look like controller/action/params so in your case: posts/delete/post_id Thanks, this works! However, I didn't write the code myself but it was generated using bake. So I guess there's some bug in the current Cake version... The code that it's using

Re: Blog tutorial: Missing argument 1 for PostsController::delete()

2010-08-23 Thread Mike Karthauser
On Mon, August 23, 2010 11:56 am, psybear83 wrote: i think problem is here.your link should look like controller/action/params so in your case: posts/delete/post_id Thanks, this works! However, I didn't write the code myself but it was generated using bake. So I guess there's some bug in

Blog tutorial: Missing argument 1 for PostsController::delete()

2010-08-20 Thread psybear83
Hi everybody I'm learning CakePHP and I'm reading through the Blog tutorial. So far everything works well, except the delete action. When clicking on Delete, I get the following errors: Warning (2): Missing argument 1 for PostsController::delete() [APP \controllers\posts_controller.php, line 24

Re: Blog tutorial: Missing argument 1 for PostsController::delete()

2010-08-20 Thread Tilen Majerle
psybea...@gmail.com Hi everybody I'm learning CakePHP and I'm reading through the Blog tutorial. So far everything works well, except the delete action. When clicking on Delete, I get the following errors: Warning (2): Missing argument 1 for PostsController::delete() [APP \controllers

Re: Problem with blog example - Cake 1.3.3 PHP version?

2010-08-09 Thread cricket
On Sat, Aug 7, 2010 at 11:48 AM, nick nkhan@gmail.com wrote: This seems very basic but I am trying the blog example line by line. I am using Cake version 1.3.3 When I try the add post basically adding functionality to add the post, everything works fine until I try to save the new record

Problem with blog example - Cake 1.3.3 PHP version?

2010-08-08 Thread nick
This seems very basic but I am trying the blog example line by line. I am using Cake version 1.3.3 When I try the add post basically adding functionality to add the post, everything works fine until I try to save the new record. I get the error - Fatal error: Cannot access empty property in /home

Re: Problems with blog tutorial Warning (512): SQL Error: 1064:

2010-07-12 Thread Andy H
Hi, The first line of you edit function has a mistake. should be $this-Post-id = $id; Good luck! On Jul 9, 11:13 pm, BlaineRumsey bla...@blainerumsey.com wrote: Hello,  I am new to cake and I am trying to complete the blog tutorial in the manual for 1.3  for getting started.  I am

Re: Problems with blog tutorial Warning (512): SQL Error: 1064:

2010-07-11 Thread BlaineRumsey
Umm yeah, your right it was not in the blog tutorial and I have no idea why or where my head was at... thanks. Blaine On Jul 10, 1:41 am, nurvzy nur...@gmail.com wrote: It's possible what you meant to do was this: $this-Post-id = $id; Because you're doing a blind read() after the fact

Problems with blog tutorial Warning (512): SQL Error: 1064:

2010-07-09 Thread BlaineRumsey
Hello, I am new to cake and I am trying to complete the blog tutorial in the manual for 1.3 for getting started. I am at the edit post section and I am having a problem. When I click edit I get and sql syntax error. 1064: You have an error in your SQL syntax; check the manual that corresponds

Re: Problems with blog tutorial Warning (512): SQL Error: 1064:

2010-07-09 Thread nurvzy
to cake and I am trying to complete the blog tutorial in the manual for 1.3  for getting started.  I am at the edit post section and I am having a problem.  When I click edit I get and sql syntax error. 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL

Re: Problems with blog tutorial Warning (512): SQL Error: 1064:

2010-07-09 Thread nurvzy
...@blainerumsey.com wrote: Hello,  I am new to cake and I am trying to complete the blog tutorial in the manual for 1.3  for getting started.  I am at the edit post section and I am having a problem.  When I click edit I get and sql syntax error. 1064: You have an error in your SQL syntax; check

Re: Beginner: Blog Example

2010-05-16 Thread John Andersen
links, can you? Enjoy, John On May 14, 7:32 pm, Sze Chan sze.m.c...@gmail.com wrote: Environment: PHP v5.2.13 MySQL 5.0.51a Hello everybody, I followed the Blog Tutorial lesson using CakePHP v1.3.  One question remains after I went through this tutorial. I can Add a Blog Post, but I cannot

Beginner: Blog Example

2010-05-14 Thread Sze Chan
Environment: PHP v5.2.13 MySQL 5.0.51a Hello everybody, I followed the Blog Tutorial lesson using CakePHP v1.3. One question remains after I went through this tutorial. I can Add a Blog Post, but I cannot Delete or Edit Blog Posts. Am I missing something? Thanks, Sze Check out the new

Re: Newbie problem with 15 minute blog in Cake 1.3

2010-05-06 Thread JasonFX
I confirm that Matt isn't doing anything wrong. I am having the same issue, I installed a fresh copy of cake and followed the tutorial but stumbled on an error as described by Matt. The issue seems to be with cake 1.3 On May 4, 4:01 am, WebbedIT p...@webbedit.co.uk wrote: @Matt: When starting

Re: Newbie problem with 15 minute blog in Cake 1.3

2010-05-06 Thread WebbedIT
At the risk of being wrong again, how's the issue with 1.3? The 1.3 tutorial rightly includes links to edit and delete blog posts NOT using named parameters. It's the 1.2 tutorial that wrongly, IMO, uses named parameters even though in the view section of the tutorial it clearly states to pass

Re: Newbie problem with 15 minute blog in Cake 1.3

2010-05-05 Thread WebbedIT
Well I stand corrected, sort of :) Thanks to an email reply sent direct to me, by mistake, by JasonFX I decided to look at the blog tutorial a little closer and whilst what I say above is right on the page I supplied a link for, I was unaware that further on in the tutorial when dealing

Re: Newbie problem with 15 minute blog in Cake 1.3

2010-05-04 Thread WebbedIT
@Matt: When starting with CakePHP the main rule you should ALWAYS follow is stick to the conventions. You have deviated from the tutorial by changing urls from the conventional format (explained within the tutorial on http://book.cakephp.org/view/336/Creating-Post-Views) of

Re: Newbie problem with 15 minute blog in Cake 1.3

2010-05-03 Thread calvin
http://yourapp/foos/bar/id:1/ will not work when Cake is expecting http://yourapp/foos/bar/1 Cake doesn't know the name of your function variables (I don't even think there's a way to determine that in PHP). So it wouldn't know that the 'id' named param is supposed to be the first argument in

Newbie problem with 15 minute blog in Cake 1.3

2010-05-02 Thread Matt
Well, the release said stable' but I am trying to figure out if it is me, my configuration or what. I am using Apache2 on Windows Vista and PHP 5.2.10. I seem to have a possible mod_rewrite problem but I am not sure. It is obvious that the ID portion of the URL is not being handled correctly

Re: Newbie problem with 15 minute blog in Cake 1.3

2010-05-02 Thread Don Drake
The controller has the 'params' property. If you output this: debug($this-params); //from your view I believe you should see your id showing in the 'pass' array if everything is working. If it's there, this will confirm the value is getting all the way in to your controller or not. If it's there,

Re: Newbie problem with 15 minute blog in Cake 1.3

2010-05-02 Thread Matt
The controller has the 'params' property. If you output this: debug($this-params); //from your view I believe you should see your id showing in the 'pass' array if everything is working. If it's there, this will confirm the value is getting all the way in to your controller or not. If it's

Re: Newbie problem with 15 minute blog in Cake 1.3

2010-05-02 Thread Sam Sherlock
you can access it $this-params['named']['id'] your view action may take it as argument (in controller) .. function view($id) { ... } .. You can alter posts routes should you want to use slugs rather than ids with Syrup.Sluggable (syrup is a cake plugin that has a few behaviours) - S

Re: NewBie Help Creating a simple Cake Blog, Return 404 Error

2010-04-22 Thread netpumber
Why i cant post here ? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To

Re: NewBie Help Creating a simple Cake Blog, Return 404 Error

2010-04-22 Thread netpumber
I cannot post here Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To

Re: NewBie Help Creating a simple Cake Blog, Return 404 Error

2010-04-22 Thread netpumber
Here is what i want to post and google doesnt let me.. and returnes me this error: We were unable to post your message If you believe this is an error, please contact Google Support. Anyway here is my answer..! http://pastebin.com/YbpLNvq1 Check out the new CakePHP Questions site

Re: NewBie Help Creating a simple Cake Blog, Return 404 Error

2010-04-22 Thread netpumber
Here is what i want to post and google doesnt let me.. and returnes me this error: We were unable to post your message If you believe this is an error, please contact Google Support. Anyway here is my answer..! http://pastebin.com/YbpLNvq1 Check out the new CakePHP Questions site

Re: NewBie Help Creating a simple Cake Blog, Return 404 Error

2010-04-22 Thread Sam Sherlock
In config/core.php near the top of the file you can find instructions for making cake work using its own internal rewrite. but its worth trying the ,htaccess again like this RewriteBase is used once per .htaccess Here are the blog/webroot/.htaccess IfModule mod_rewrite.c RewriteEngine

Re: NewBie Help Creating a simple Cake Blog, Return 404 Error

2010-04-22 Thread netpumber
Ok now worked with the changes in .htaccess files :D Thanks a lot for your time and your answers!! +1 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups

Re: NewBie Help Creating a simple Cake Blog, Return 404 Error

2010-04-21 Thread netpumber
So the debug as you can see is already in 2. Configure::write('debug', 2); I delete handmade controllers , models and view and bake them as you say...with cake bake M/C/V command.. I add then the code and still returns me not found error :S Whats going on ? I have to use -app parameter ?

Re: NewBie Help Creating a simple Cake Blog, Return 404 Error

2010-04-21 Thread Sam Sherlock
does it return a cake error 404 or an apache gen error 404? what code do you add after baking. Bake should generate all you need to be able to add, edit,delete and view posts - S On 21 April 2010 16:25, netpumber r00f...@gmail.com wrote: So the debug as you can see is already in 2.

Re: NewBie Help Creating a simple Cake Blog, Return 404 Error

2010-04-21 Thread netpumber
It returns apache not found error. So my web root dir is /var/www then in it i bake a blog so i have /var/www/blog directory now..where is the root dir for my cake php project. Then i bake Controller / Model / View Here are the codes : Model: (Noting added) [code] ?php class Post extends

<    1   2   3   4   5   6   7   >