Yeah ok sorry about that...heres my "submitlink.ctp" which is the email i get. I have left the bottom part of the "controller" as i know this is for admin purposes....HOPE YOU CAN HELP,cause ive been looking and cant seem to find anything wrong, but saying that im still fairly new to cake....Cheers for the assistance.
<p><a href="<?php echo $html->url(array('controller' => 'links', 'action' => 'submissions', 'admin' => true), true); ?>"><?php __('Link Submissions'); ?></a></p> <table> <tr> <td><?php __('Category'); ?>:</td> <td><?php echo $link['LinkCategory']['title']; ?></td> </tr> <tr> <td><?php __('Title'); ?>:</td> <td><?php echo $link['Link']['title']; ?></td> </tr> <tr> <td><?php __('URL'); ?>:</td> <td><?php echo $html->link($link['Link']['url'], $link['Link'] ['url']); ?></td> </tr> <tr> <td><?php __('Description'); ?>:</td> <td><?php echo $link['Link']['description']; ?></td> </tr> <tr> <td><?php __('Reciprocal Link'); ?>:</td> <td><?php echo $link['Link']['reciprocallink']; ?></td> </tr> </table> "HERES MY view" <?php echo $form->create('Link', array('action' => 'submit')); ?> <?php echo $form->inputs(array ( 'legend' => false, 'Link.link_category_id' => array ( 'label' => __('Category', true) ), 'Link.title', 'Link.url' => array( 'label' => __('URL', true) ), 'Link.description', 'Link.reciprocallink' )); ?> <?php if (isset($captcha_incorrect)): ?> <p><?php __('You have entered the CAPTCHA incorrectly. Please try again.'); ?></p> <?php else: ?> <p><?php __('Please enter the words you see below:'); ?></p> <?php endif; ?> <?php echo $recaptcha->show(); ?> <?php echo $form->end(__('Submit Link', true)); ?> "AND HERES MY controller" <?php class LinksController extends AppController { var $name = 'Links'; var $uses = array('Link', 'LinkCategory', 'Page'); var $helpers = array('Recaptcha'); var $components = array('Email', 'Recaptcha'); var $paginate = array ( 'limit' => 15, 'page' => 1, 'order' => array ('Link.created' => 'ASC'), 'conditions' => array ('Link.approved' => 1) ); function beforeFilter() { // Set up authentication parent::beforeFilter(); // Allow access to public functions $this->Auth->allowedActions = array( 'index', 'category', 'submit' ); } function index() { // Get community page content $page = $this->Page->find('first', array('conditions' => array ('slug' => 'links'))); $this->set('page', $page); $this->set('title_for_layout', $page['Page']['title']); // Display all categories $link_categories = $this->LinkCategory->find('all'); $this->set('link_categories', $link_categories); } function category($slug) { // Find Category $link_category = $this->LinkCategory->findBySlug($slug); $this->set('link_category', $link_category); // Find Links in Category $this->set('links', $this->paginate($this->LinkCategory->Link, array ('Link.link_category_id' => $link_category['LinkCategory'] ['id']))); // Title $this->set('title_for_layout', $link_category['LinkCategory'] ['title']); } function submit() { // Title $this->set('title_for_layout', __('Submit Link', true)); // Load category list $link_categories = $this->Link->LinkCategory->find('list', array ( 'order' => 'LinkCategory.title' )); $this->set('linkCategories', $link_categories); // Handle form submission if (!empty($this->data)) { // Check CAPTCHA was matched if (!$this->Recaptcha->validate()) { $this->Link->validate['captcha'] = array ( 'rule' => array('comparison', '=', 0), 'message' => 'You did not enter the CAPTCHA correctly.' ); $this->set('captcha_incorrect', true); } // Save and redirect to received message $this->Link->create(); $this->data['Link']['approved'] = 0; if ($this->Link->save($this->data)) { // Send email to admin $this->set('link', $this->Link->findById($this->Link- >id)); $this->Email->from = __('DisneyVillaVacations.com', true) . ' <' . Configure::read('Admin.email') . '>'; $this->Email->to = Configure::read('Admin.email'); $this->Email->subject = __('DisneyVillaVacations.com - Link Submission', true); $this->Email->template = 'submit_link'; $this->Email->sendAs = 'both'; $this->Email->send(); // Redirect back $this->Session->setFlash('Your link has been submitted, and is awaiting approval.'); $this->redirect(array('action' => 'index')); } } } On Apr 17, 8:56 pm, cricket <zijn.digi...@gmail.com> wrote: > On Sun, Apr 17, 2011 at 9:17 AM, dvvbrook79 > > <c...@disneyvillavacations.com> wrote: > > Hi > > > I have alinksubmissionpage, and have just added a reciprocallink > > field...which worked fine, however i cant get to draw this information > > out of the "field" into theemailthat is sent to me when i have a > >linksubmitted....it ends up like this.. > > > URL:http://www.example.com > > Title: example > > Description: Example example.....etc > > ReciprocalLink: "blank" (this is the info im trying to get from the > > new field) > > > Can anyone point me in the right direction. > > There's no way anyone could spot the problem without seeing theemail > template as well as the controller code to see what variables you're > setting for the view (and how you're setting them). -- 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