Cakephp Blog Tutorial Part 5 – Using the Save Method: Creating New Posts

18 04 2011

In this Cakephp tutorial we cover how to create new posts for our blog. We use the models save method as well as a few other methods for sending flash messages and redirecting and we use the form helper for creating forms. You can download the source code at http://www.andrews-custom-web-design.com

My website: http://www.sugarcharmshop.com as my previous tutorial this one is also an old video I’ve had on my computer for a while, edited and ready to upload ^^”… I believe this one was for some requests for birthday nails, cupcake nails and something with ‘sweet deco nails’. Hope you like it🙂 Don’t forget to check out my etsy shop – polymer clay jewelry. orders of 18$ or more are receiving a free necklace! and all orders support my upcoming contest! ^^ http://www.etsy.com
Video Rating: 4 / 5


Actions

Information

34 responses

18 04 2011
honestguy408

Hi, I am wondering what IDE is andrewperk using?

18 04 2011
honestguy408

Hi, what IDE is andrewperk using?

18 04 2011
honestguy408

Hi, what IDE is andrewperk using?

18 04 2011
andrewperk

@hughmanwho A few of the other $form methods are: hidden, password, radio, submit, select, text, dateTime, button, checkbox, file and a few others. You can use them just by calling $form->dateTime and so on if you’d rather not use the input method and the array to specify its type if you require that customization. Just remember to use the $form->error(‘fieldname’) as well so your validations will display for the appropriate field.

18 04 2011
andrewperk

@hughmanwho Yes its the same function. The input method detects what type of field to make based on its type in the database. You can change its type by passing an array as a second parameter to the input method: $form->input(‘body’, array(‘type’=>’textarea’)); You don’t have to use the input method you can also use $form->textarea(‘body’); but now you have to manually create the errors using $form->error(‘body’); to generate errors. $form->input is just convenient and reduces typing.

18 04 2011
hughmanwho

How did it know to create a text input for the title and textarea for the body?
Seems like we are calling the exact same function, right?

18 04 2011
jamelajohn

thank you man. Helped me a lot.

18 04 2011
Fulfnask

This is just great. Thanks man!

18 04 2011
TheSajntz

Thanks man, it helped me a lot in understanding Cake!

18 04 2011
3TanjaJ3

@sxybuttrfly I havn’t tried but you probably can

18 04 2011
3TanjaJ3

@sxybuttrfly I havn’t tried but you probably can

18 04 2011
sxybuttrfly

can u use regular polish paint over the3d acrylic? i have only 3 shades of acrylic😦

19 04 2011
mnNekogirl

Are u magical…? O.O

19 04 2011
3TanjaJ3

@TheCheema13 please watch my collection video for questions about my supplies🙂 All info in there

19 04 2011
TheCheema13

shit where do you buy the 3D stuff from?BTW there FKN prettay:)♥

19 04 2011
3TanjaJ3

@iSqu3aKs they have no brand on them

19 04 2011
iSqu3aKs

and what is the brand?

19 04 2011
3TanjaJ3

@iSqu3aKs #2 or #4

19 04 2011
iSqu3aKs

what brush are you using?

19 04 2011
DOLLiii3

@3TanjaJ3 ahhh thank u soo much🙂

19 04 2011
3TanjaJ3

@DOLLiii3 please watch my collectiom video for questions about my supplies

19 04 2011
DOLLiii3

where did u get all of those heart things i’ve been looking 4 them every where also what are they called

thx
xox

19 04 2011
Akane1313

@hairnetfetish
I know it’s not a real hand. I was just wondering if it only had three fingers or if she only needed three nails to demonstrate her designs.

19 04 2011
hairnetfetish

@Akane1313 Pst, it’s not a real hand.🙂

19 04 2011
mzladi88

cute

19 04 2011
NeonBreyerHorse101

is that a fake hand?😄

19 04 2011
3TanjaJ3

@iMissHearts acrylic dries within a couple of minutes

19 04 2011
iMissHearts

wudn’t this take ages 2 dry?

19 04 2011
3TanjaJ3

@helenita05 you can make 3D on your real nails as well🙂

19 04 2011
helenita05

3TanJaj3, my bday is coming up and I really really want to get 2 cupcakes made with acrylic powder, but on my real nails….that’s possible, huh? I would have to go to a nail salon since I don’t have any acrylic powders and I’m not talented in the nail art!….

19 04 2011
helenita05

3Tanjaj3,

19 04 2011
obsessedfobfan92

it took me forever to realize those fingers were fake xD

19 04 2011
khodge1999

Is that a fake hand

19 04 2011
sconebloggno

Hvor cute!(: Søde cupcakes😀




%d bloggers like this: