Cakephp blog tutorial error

2013-11-01 Thread Adnan Rajper
Hi there,

I followed this tutorial, everything is working fine apart from the "edit 
method" when click the edit link it gives following warning message. I am 
new to cakephp and php. 

*Warning* (2): strtolower() expects parameter 1 to be string, array given 
[*CORE/Cake/Network/CakeRequest.php*, line *471*]
Code Context

$type = array(
(int) 0 => 'post',
(int) 1 => 'put'
)
$this = object(CakeRequest) {
params => array(
'plugin' => null,
'controller' => 'posts',
'action' => 'edit',
'named' => array([maximum depth reached]),
'pass' => array(
[maximum depth reached]
)
)
data => array()
query => array()
url => 'posts/edit/2'
base => '/cake_2_0'
webroot => '/cake_2_0/'
here => '/cake_2_0/posts/edit/2'
}

strtolower - [internal], line ??
CakeRequest::is() - CORE/Cake/Network/CakeRequest.php, line 471
PostsController::edit() - APP/Controller/PostsController.php, line 48
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 485
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 186
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 161
[main] - APP/webroot/index.php, line 92

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Cakephp blog tutorial, SQL error when INSERTING into posts.

2013-08-05 Thread Marcelo F Andrade
On Mon, Aug 5, 2013 at 11:51 AM, Greg Sarpy  wrote:
>
> (..) I am trying to *INSERT INTO POSTS* exactly as it is in the manual:
>
>> INSERT INTO posts (title,body,created)
>> VALUES ('The title', 'This is the post body.', NOW());
> (..)
>
> It immediately outputs the following error:
> (..)
>> MySQL said:
>> #1064 - You have an error in your SQL syntax; check the manual that 
>> corresponds to your MySQL server version for the right syntax to use near 
>> 'title’, ’This is the post body.’, NOW())' at line 2

I'm not sure about what is going on.  But I can suppose the
command is using the typographic quotes (“) instead of normal
double quotes (") to delim text.

Did you typed the SQL insert in a Mysql client or just copy-
and-paste the command from the cookbook?

Additionally, check if this tip can help.
http://markmcb.com/2011/11/07/replacing-ae%E2%80%9C-ae%E2%84%A2-aeoe-etc-with-utf-8-characters-in-ruby-on-rails/

Regards.

MARCELO F ANDRADE | Belem, Amazonia, Brazil | http://about.me/mfandrade

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.




Cakephp blog tutorial, SQL error when INSERTING into posts.

2013-08-05 Thread Greg Sarpy
Hi guys, this is my first attempt at CakePHP and so far it seems amazing. 
I'm not a PHP/DB pro but I am learning. 

Anyway, I'm familiarizing myself with the framework by creating the blog in 
the tutorial. So far I've successfully created the table, now I am trying 
to *INSERT INTO POSTS* exactly as it is in the manual:


INSERT INTO posts (title,body,created)
> VALUES ('The title', 'This is the post body.', NOW());
> INSERT INTO posts (title,body,created)
> VALUES ('A title once again', 'And the post body follows.', NOW());
> INSERT INTO posts (title,body,created)
> VALUES ('Title strikes back', 'This is really exciting! Not.', NOW());


It immediately outputs the following error:

Error
> *SQL query:
> *INSERT
>  INTO posts( title, body, created ) 
> VALUES (
> ’The title’, ’This 
> IS
>  the post body.’, 
> NOW
> ( )
> );
> *MySQL said: *[image: Documentation]
>
> #1064
>  
> - You have an error in your SQL syntax; check the manual that corresponds 
> to your MySQL server version for the right syntax to use near 'title’, 
> ’This is the post body.’, NOW())' at line 2 



I am now stuck because I do not see what's wrong here. While my SQL is 
limited, it looks correct.. can anyone see what could be causing this 
error? 


Here's the database info:

Apache/2.2.22
Database client version: libmysql - 5.1.66


Thank you for any help!!

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Is there a "CakePHP blog package"?

2011-07-22 Thread Jeremy Burns | Class Outfit
It's based on Cake, not CodeIgniter, and can handle blogs.

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 22 Jul 2011, at 11:12, Fábio Luciano wrote:

> Croogo is a CMS codeigniter based, and not a blog system. Just for 
> information.
> 
> -- 
> Our newest site for the community: CakePHP Video Tutorials 
> http://tv.cakephp.org Check out the new CakePHP Questions site 
> http://ask.cakephp.org and help others with their CakePHP related questions.
> 
> 
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Is there a "CakePHP blog package"?

2011-07-22 Thread Fábio Luciano
Croogo is a CMS codeigniter based, and not a blog system. Just for 
information.


--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.



To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Is there a "CakePHP blog package"?

2011-07-22 Thread DierRe
Perfect, thank you very much Jeremy.

On 22 Lug, 11:31, Jeremy Burns | Class Outfit
 wrote:
> Have a look athttp://croogo.org/
>
> Jeremy Burns
> Class Outfit
>
> http://www.classoutfit.com
>
> On 22 Jul 2011, at 10:26, DierRe wrote:
>
>
>
>
>
>
>
> > Hi guys! Is there available somewhere a blog app that could be used
> > for free? So I have a base and I can extend what I need. I've looked
> > on the bakery but I din't found anything.
>
> > What I'm looking for is basically "comments moderation" and "user
> > roles".
>
> > --
> > Our newest site for the community: CakePHP Video 
> > Tutorialshttp://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help 
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> > athttp://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Is there a "CakePHP blog package"?

2011-07-22 Thread Jeremy Burns | Class Outfit
Have a look at http://croogo.org/

Jeremy Burns
Class Outfit

http://www.classoutfit.com

On 22 Jul 2011, at 10:26, DierRe wrote:

> Hi guys! Is there available somewhere a blog app that could be used
> for free? So I have a base and I can extend what I need. I've looked
> on the bakery but I din't found anything.
> 
> What I'm looking for is basically "comments moderation" and "user
> roles".
> 
> -- 
> Our newest site for the community: CakePHP Video Tutorials 
> http://tv.cakephp.org 
> Check out the new CakePHP Questions site http://ask.cakephp.org and help 
> others with their CakePHP related questions.
> 
> 
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Is there a "CakePHP blog package"?

2011-07-22 Thread DierRe
Hi guys! Is there available somewhere a blog app that could be used
for free? So I have a base and I can extend what I need. I've looked
on the bakery but I din't found anything.

What I'm looking for is basically "comments moderation" and "user
roles".

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: cakephp blog english

2010-03-12 Thread pzero
Hey cricket thanks a lot. i fixed this issue with your help.

You are the best :)
Now it works i put the hidden field

echo $form->hidden('Post.id');

when i edit a post now it updates and it doens't create a new post.

i wish you a nice weekend!!!
and thanks a lot

On 12 Mrz., 18:29, cricket  wrote:
> On Mar 12, 12:09 pm, pzero  wrote:
>
> > Hallo cricket,
>
> > Thanks a lot, the validation rules works.
> > But i don't had understood where i have to include a hidden form
> > input... Sorry im a newbie.
>
> That's ok. We all start from somewhere. I'm still confused about a lot
> of Cake things.
>
> You put the hidden field in the view. Just after your $form-
>
> >create(...) add this:
>
> echo $form->hidden('Post.id');
>
> What happens is that $this->data = $this->Post->read(null, $id) will
> include the id in the result. FormHelper should then find the id in
> $data inside the view.
>
> If it still doesn't seem to be working, set debug to 2 and try this:
>
> if (!empty($this->data)) {
>     die(debug($this->data));
>
> That is, right before the call to save(). Make sure that the data
> array contains an id. You can also view source when you first load the
> form and ensure that the hidden field is there and that the value is
> correct.

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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: cakephp blog english

2010-03-12 Thread cricket
On Mar 12, 12:09 pm, pzero  wrote:
> Hallo cricket,
>
> Thanks a lot, the validation rules works.
> But i don't had understood where i have to include a hidden form
> input... Sorry im a newbie.

That's ok. We all start from somewhere. I'm still confused about a lot
of Cake things.

You put the hidden field in the view. Just after your $form-
>create(...) add this:

echo $form->hidden('Post.id');

What happens is that $this->data = $this->Post->read(null, $id) will
include the id in the result. FormHelper should then find the id in
$data inside the view.

If it still doesn't seem to be working, set debug to 2 and try this:

if (!empty($this->data)) {
die(debug($this->data));

That is, right before the call to save(). Make sure that the data
array contains an id. You can also view source when you first load the
form and ensure that the hidden field is there and that the value is
correct.

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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: cakephp blog english

2010-03-12 Thread pzero
Hallo cricket,

Thanks a lot, the validation rules works.
But i don't had understood where i have to include a hidden form
input... Sorry im a newbie.


On 12 Mrz., 17:40, cricket  wrote:
> The alphaNumeric rule is equivalent to /[a-A-Z0-9]+/ and is only
> useful for something like a password or other code. For something like
> a title, try 'rule' => array('minLength', 1). It's a lot more
> flexible.
>
> For editing a record, you need to include the id in $this->data for
> the save(). Include a hidden form input with the id so that it is
> included in $data.

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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: cakephp blog english

2010-03-12 Thread cricket
The alphaNumeric rule is equivalent to /[a-A-Z0-9]+/ and is only
useful for something like a password or other code. For something like
a title, try 'rule' => array('minLength', 1). It's a lot more
flexible.

For editing a record, you need to include the id in $this->data for
the save(). Include a hidden form input with the id so that it is
included in $data.

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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: cakephp blog english

2010-03-12 Thread pzero
Hello
Thanks a lot for your quick reply.

this is my edit function

function edit($id = null) {
$actionHeading = 'Post bearbeiten!';
$actionSlogan = 'Bitte alle Felder ausfüllen.';
$this->set(compact('actionHeading','actionSlogan'));

if (!$id && empty($this->data)) {
$this->Session->setFlash(__('Ungültiger Post', true));
$this->redirect(array('action'=>'index'));
}
if (!empty($this->data)) {
if ($this->Post->save($this->data)) {
$this->Session->setFlash(__('Post wurde 
erfolgreich gespeichert',
true));
$this->redirect(array('action'=>'index'));
} else {
$this->Session->setFlash(__('Post konnte leider 
nicht gespeichert
werden. Versuche es nochmal.', true));
}
}
if (empty($this->data)) {
$this->data = $this->Post->read(null, $id);
}
}

and this is my validation rules

array(
'alphaNumeric'=>array(
'rule'=>'alphaNumeric',
'required'=>true,
'message'=>'Bitte ein Titel erfassen',
)
),
'content'=>array(
'alphaNumeric'=>array(
'rule'=>'alphaNumeric',
'required'=>true,
'message'=>'Bitte Kommentar erfassen',
)
)
);
}
?>

but haven't understood what i have to do for editing a post.
thanks a lot for your help

with kind regards

On 10 Mrz., 18:25, cricket  wrote:
> On Mar 10, 4:10 am, pzero  wrote:
>
> > Good Morning together,
>
> > I created a blog with Cakephp and now I have two issues. If i edit a
> > post instead of updating this post my application create a new post,
>
> You need to include a hidden field in the form for the id.
>
> echo $form->hidden('Post.id');
>
> Substitute your model name for Post if different.
>
> When Cake saves, if the id is present in $data, it will try to update
> an existing record in DB.
>
> > and the second issue is by adding a new post. If i write in my title
> > and in my comment box text without blanks it works, but if i write for
> > example title: "my test" with a blank between my and test i receive
> > the message that i must write a title.
>
> You have a validation rule for title that does not allow spaces. Can
> you post the $validate array for the model?
>
> > I can't attached my Blog so if someone can help me write me your mail
> > adress so that i can send you my blog. I hope someone can help me. I
> > have to present this blog at saturday in my shool and I have no idea
> > about this two issues
>
> No need to send the entire thing. Just post that one part of your
> model. Also, you could post the edit() method from the controller.

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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: cakephp blog english

2010-03-10 Thread cricket
On Mar 10, 4:10 am, pzero  wrote:
> Good Morning together,
>
> I created a blog with Cakephp and now I have two issues. If i edit a
> post instead of updating this post my application create a new post,

You need to include a hidden field in the form for the id.

echo $form->hidden('Post.id');

Substitute your model name for Post if different.

When Cake saves, if the id is present in $data, it will try to update
an existing record in DB.

> and the second issue is by adding a new post. If i write in my title
> and in my comment box text without blanks it works, but if i write for
> example title: "my test" with a blank between my and test i receive
> the message that i must write a title.

You have a validation rule for title that does not allow spaces. Can
you post the $validate array for the model?


> I can't attached my Blog so if someone can help me write me your mail
> adress so that i can send you my blog. I hope someone can help me. I
> have to present this blog at saturday in my shool and I have no idea
> about this two issues

No need to send the entire thing. Just post that one part of your
model. Also, you could post the edit() method from the controller.

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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


cakephp blog english

2010-03-10 Thread pzero
Good Morning together,

I created a blog with Cakephp and now I have two issues. If i edit a
post instead of updating this post my application create a new post,
and the second issue is by adding a new post. If i write in my title
and in my comment box text without blanks it works, but if i write for
example title: "my test" with a blank between my and test i receive
the message that i must write a title.

I can't attached my Blog so if someone can help me write me your mail
adress so that i can send you my blog. I hope someone can help me. I
have to present this blog at saturday in my shool and I have no idea
about this two issues

kind regards

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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


cakephp blog

2010-03-10 Thread pzero
Hallo zusammen,

Ich habe ein Blog mit Cakephp erstellt hab aber zwei Probleme die ich
nicht lösen kann.
Und zwar erstellt mein Blog beim editieren eines Posts ein neuer Post
anstatt dass der post editiert wird.
Ein zweites Problem ist wenn ich ein neuer Post erfassen will nur
strings ohne leerzeichen angenommen werden.
Wenn ich z.b "Mein Blog" schreibe bekommt ich die meldung dass ein
titel erfasst werden soll, irgendwie hat er dann das gefühl es ist
kein titel erfasst oder der string ist empty.

Wenn mir jemand helfen kann kann ich ihm mein Blog per e-mail schicken
sodass es nachvollziehen werden kann.

Liebe grüsse

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 unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Got Error when try the tutorial of "The CakePHP Blog Tutorial with SMARTY"

2008-09-18 Thread sho

Do you anywhere where it is explained how to use the View class. That
would be helpful in figuring this out.

You probably specified a $this->view = ''; in the controller class.



On Sep 16, 2:09 pm, Steven <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I just got an error when try the tutorial of "The CakePHP Blog
> Tutorial with SMARTY".
> Tutorial 
> link:http://bakery.cakephp.org/articles/view/the-cakephp-blog-tutorial-wit...
>
> I think I have followed the instructions exactly as what the tutorial
> said, but still comes up with the following error message "Fatal
> error: Class 'SmartyView' not found in C:\Site\phpCake\cake\libs
> \controller\controller.php on line 709".
>
> I have tried to do research to resolve this but not succeed. If anyone
> have similiar experience, could you help me out?
>
> Regards

--~--~-~--~~~---~--~~
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 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
-~--~~~~--~~--~--~---



Got Error when try the tutorial of "The CakePHP Blog Tutorial with SMARTY"

2008-09-16 Thread Steven

Hi,

I just got an error when try the tutorial of "The CakePHP Blog
Tutorial with SMARTY".
Tutorial link: 
http://bakery.cakephp.org/articles/view/the-cakephp-blog-tutorial-with-smarty

I think I have followed the instructions exactly as what the tutorial
said, but still comes up with the following error message "Fatal
error: Class 'SmartyView' not found in C:\Site\phpCake\cake\libs
\controller\controller.php on line 709".

I have tried to do research to resolve this but not succeed. If anyone
have similiar experience, could you help me out?

Regards


--~--~-~--~~~---~--~~
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 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: problem with htmlhelper in cakephp blog tutorial

2007-06-07 Thread Joshua Benner





Many of the HtmlHelper functions moved or reincarnated in FormHelper.

The 1.2 Api has been my primary source of comfort in learning
CakePHP.

Hans wrote:

  New here to CakePhp, really excited since this is exactly what i´m
looking for! (writing endless repititive/boring code became a big
demotivator for building websites)

Installation went perfect, however now i'm coping with some problems
with the Cakephp Blog Tutorial which i can't seem to solve (already
searched extensively for answers)
Viewing the index and example blog posts = no problem, however when i
add the "add posts" and "edit posts" form, i get numerous errors on
these pages (see details below):

Can someone point me in the good direction for solving this?

Thanks,

Hans

=
Title:
Notice: Method input() is deprecated in htmlhelper: see
FormHelper::input or FormHelper::text in [dir]/cake/libs/view/helpers/
html.php on line 610

Notice: Method tagErrorMsg() is deprecated in htmlhelper: see
FormHelper::error in [dir]/cake/libs/view/helpers/html.php on line 676


Body:
Notice: Method textarea() is deprecated in htmlhelper: see
FormHelper::input or FormHelper::textarea in [dir]/cake/libs/view/
helpers/html.php on line 534


Warning (512): Method htmlhelper::submit does not exist [CORE/cake/
libs/view/helper.php, line 148]

Context
 $this	=	htmlhelper object
 $method	=	"submit"
 $params	=	array(0 => "Save")


Code
 function get__($name) {}
 function set__($name, $value) {}
 function call__($method, $params) {
 trigger_error(sprintf(__('Method %1$s::%2$s does not exist', true),
get_class($this), $method), E_USER_WARNING);
  }


htmlhelper::call__() - CORE/cake/libs/view/helper.php, line 148
htmlhelper::__call() - CORE/cake/libs/overloadable_php4.php, line 84
htmlhelper::debug_backtrace() - [internal], line ??
include - CORE/app/views/posts/add.thtml, line 14
view::_render() - CORE/cake/libs/view/view.php, line 779
view::render() - CORE/cake/libs/view/view.php, line 346
postscontroller::render() - CORE/cake/libs/controller/controller.php,
line 654
dispatcher::_invoke() - CORE/cake/dispatcher.php, line 343
dispatcher::dispatch() - CORE/cake/dispatcher.php, line 322
[main] - CORE/app/webroot/index.php, line 83


Cakephp version info:
+---
+ //
// + $Id: VERSION.txt 5165 2007-05-24 04:42:33Z phpnut $
// + Last Modified: $Date: 2007-05-23 23:42:33 -0500 (Wed, 23 May
2007) $
// + Modified By: $LastChangedBy: phpnut $
//
+-
1.2.0.5165alpha




  


--~--~-~--~~~---~--~~
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: problem with htmlhelper in cakephp blog tutorial

2007-06-07 Thread Chris Hartjes

The tutorial is based off of code from the 1.1 branch, hence the
warnings and the errors when using 1.2.

I know it's not easy for a beginner, but follow the warnings about
depricated functions and see if you can make them go away.


On 6/7/07, Hans <[EMAIL PROTECTED]> wrote:
>
> New here to CakePhp, really excited since this is exactly what i´m
> looking for! (writing endless repititive/boring code became a big
> demotivator for building websites)
>
> Installation went perfect, however now i'm coping with some problems
> with the Cakephp Blog Tutorial which i can't seem to solve (already
> searched extensively for answers)
> Viewing the index and example blog posts = no problem, however when i
> add the "add posts" and "edit posts" form, i get numerous errors on
> these pages (see details below):
>
> Can someone point me in the good direction for solving this?
>
> Thanks,
>
> Hans
>
> =
> Title:
> Notice: Method input() is deprecated in htmlhelper: see
> FormHelper::input or FormHelper::text in [dir]/cake/libs/view/helpers/
> html.php on line 610
>
> Notice: Method tagErrorMsg() is deprecated in htmlhelper: see
> FormHelper::error in [dir]/cake/libs/view/helpers/html.php on line 676
>
>
> Body:
> Notice: Method textarea() is deprecated in htmlhelper: see
> FormHelper::input or FormHelper::textarea in [dir]/cake/libs/view/
> helpers/html.php on line 534
>
>
> Warning (512): Method htmlhelper::submit does not exist [CORE/cake/
> libs/view/helper.php, line 148]
>
> Context
>  $this=   htmlhelper object
>  $method  =   "submit"
>  $params  =   array(0 => "Save")
>
>
> Code
>  function get__($name) {}
>  function set__($name, $value) {}
>  function call__($method, $params) {
>  trigger_error(sprintf(__('Method %1$s::%2$s does not exist', true),
> get_class($this), $method), E_USER_WARNING);
>   }
>
>
> htmlhelper::call__() - CORE/cake/libs/view/helper.php, line 148
> htmlhelper::__call() - CORE/cake/libs/overloadable_php4.php, line 84
> htmlhelper::debug_backtrace() - [internal], line ??
> include - CORE/app/views/posts/add.thtml, line 14
> view::_render() - CORE/cake/libs/view/view.php, line 779
> view::render() - CORE/cake/libs/view/view.php, line 346
> postscontroller::render() - CORE/cake/libs/controller/controller.php,
> line 654
> dispatcher::_invoke() - CORE/cake/dispatcher.php, line 343
> dispatcher::dispatch() - CORE/cake/dispatcher.php, line 322
> [main] - CORE/app/webroot/index.php, line 83
>
>
> Cakephp version info:
> +---
> + //
> // + $Id: VERSION.txt 5165 2007-05-24 04:42:33Z phpnut $
> // + Last Modified: $Date: 2007-05-23 23:42:33 -0500 (Wed, 23 May
> 2007) $
> // + Modified By: $LastChangedBy: phpnut $
> //
> +-
> 1.2.0.5165alpha
> 
>
>
> >
>


-- 
Chris Hartjes

My motto for 2007:  "Just build it, damnit!"

@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



problem with htmlhelper in cakephp blog tutorial

2007-06-07 Thread Hans

New here to CakePhp, really excited since this is exactly what i´m
looking for! (writing endless repititive/boring code became a big
demotivator for building websites)

Installation went perfect, however now i'm coping with some problems
with the Cakephp Blog Tutorial which i can't seem to solve (already
searched extensively for answers)
Viewing the index and example blog posts = no problem, however when i
add the "add posts" and "edit posts" form, i get numerous errors on
these pages (see details below):

Can someone point me in the good direction for solving this?

Thanks,

Hans

=
Title:
Notice: Method input() is deprecated in htmlhelper: see
FormHelper::input or FormHelper::text in [dir]/cake/libs/view/helpers/
html.php on line 610

Notice: Method tagErrorMsg() is deprecated in htmlhelper: see
FormHelper::error in [dir]/cake/libs/view/helpers/html.php on line 676


Body:
Notice: Method textarea() is deprecated in htmlhelper: see
FormHelper::input or FormHelper::textarea in [dir]/cake/libs/view/
helpers/html.php on line 534


Warning (512): Method htmlhelper::submit does not exist [CORE/cake/
libs/view/helper.php, line 148]

Context
 $this  =   htmlhelper object
 $method=   "submit"
 $params=   array(0 => "Save")


Code
 function get__($name) {}
 function set__($name, $value) {}
 function call__($method, $params) {
 trigger_error(sprintf(__('Method %1$s::%2$s does not exist', true),
get_class($this), $method), E_USER_WARNING);
  }


htmlhelper::call__() - CORE/cake/libs/view/helper.php, line 148
htmlhelper::__call() - CORE/cake/libs/overloadable_php4.php, line 84
htmlhelper::debug_backtrace() - [internal], line ??
include - CORE/app/views/posts/add.thtml, line 14
view::_render() - CORE/cake/libs/view/view.php, line 779
view::render() - CORE/cake/libs/view/view.php, line 346
postscontroller::render() - CORE/cake/libs/controller/controller.php,
line 654
dispatcher::_invoke() - CORE/cake/dispatcher.php, line 343
dispatcher::dispatch() - CORE/cake/dispatcher.php, line 322
[main] - CORE/app/webroot/index.php, line 83


Cakephp version info:
+---
+ //
// + $Id: VERSION.txt 5165 2007-05-24 04:42:33Z phpnut $
// + Last Modified: $Date: 2007-05-23 23:42:33 -0500 (Wed, 23 May
2007) $
// + Modified By: $LastChangedBy: phpnut $
//
+-
1.2.0.5165alpha



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---