Thank you Andras - I did fiqure that out, I also saw that when I transfered
my helper folder from previous cake it was labeled "helpers" - now on every
page I have the same error if you could help me on this I would be most
grateful.
here is the code:(see highlighted in red) the error is *Parse error*:
syntax error, unexpected '$this' (T_VARIABLE), expecting function
(T_FUNCTION) in
*/home/dallasrosie/public_html/musicthatjumpedtheshark.com/app/Controller/GroupsController.php*
on line *43 - can you tell me how this is wrong?*
<?php
include_once 'includes/defines.php';
require_once('includes/recaptchalib.php');
include_once 'includes/base_app_controller.php';
include('includes/functions.php');
/**
* page descriptions
*
* /index - public: home page
* /admin - administration: home page (list and add groups)
* /glist - administration: displays a list of groups
* /gedit - administration: edit/delete a single group
// function ggenres($id = null)
// function goptions($group_id = null, $action = null, $option_id = null)
// function gcomments($group_id = null, $action = null, $comment_id =
null)
*
*/
class GroupsController extends BaseAppController
{
public $name = 'Groups';
public $helpers = array('Html', 'Form', 'Session' );
public $components = array('Session', 'RequestHandler');
public $uses = array('Group', 'Genre', 'GenreGroup', 'Option',
'Comment', 'Blog', 'BlogComments');
public $query;
public $top_ad_links;
public $side_ad_links;
// Pass through the request and response objects
// AND declare the visibility of the method
public function __construct($request = null, $response = null)
{
parent::__construct($request, $response);
}
$this->Layout = 'home';
$this->PageTitle = 'Music That Jumped the Shark ~ groups';
// get the random ad links
include('includes/ad_selection.php');
$this->set('top_ads', $_ads_top_link);
$this->set('side_ads', $_ads_side_link);
$this->top_ad_links = $_ads_top_link;
$this->side_ad_links = $_ads_side_link;
}
// DEBUG
public function under_construction()
{
$this->layout = 'temp';
}
On Saturday, August 23, 2014 5:47:08 PM UTC-4, Dallas wrote:
>
> does anyone know how this should be
>
> <?php e($html->image('index_01.jpg'));?></td>
>
> and
> <?php e($html->css('shark')); ?>
>
> shark being my stylesheet. when I removed the above css line, my
> background came up. So I do not know if I no longer need these lines or if
> the language has changed. They were calling for undefined functions in the
> error messages.
>
> Thanks for any help
>
Dallas
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.