What's in your contacts_controller.php?

Jeremy Burns
Class Outfit

[email protected]
http://www.classoutfit.com

On 10 Jun 2011, at 09:15, heohni wrote:

> Hi,
> 
> I started a project with many static pages which I get working routing
> them in routes.php like
> Router::connect('/aboutus', array('controller' => 'pages', 'action' =>
> 'display', 'aboutus'));
> 
> Fine so far.
> 
> Now I wanted to have a contact page with this math captcha:
> http://bakery.cakephp.org/articles/jnay/2010/01/20/simple-math-question-captcha-component
> 
> So I added
> controllers/contacts_controller.php
> controllers/components/math-captcha.php
> models/contact.php
> views/contacts/index.ctp
> 
> When I call now in my browser: http://localhost/my-project/contacts
> 
> I always get the error
> Undefined property: View::$Html [APP\views\layouts\default.ctp, line
> 4]
> Fatal error: Call to a member function charset() on a non-object in D:
> \SVN-Homes\PHP\trunk\My-project\views\layouts\default.ctp on line 4
> 
> This line 4 is <?php echo $this->Html->charset(); ?>
> 
> Whats wrong here?
> What I am doing wrong?
> I have a model, a controller, a view...
> 
> Why I dont get the right page?
> I am really really lost now...
> 
> -- 
> 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
> [email protected] 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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to