User Profile

Collapse

Profile Sidebar

Collapse
richardevans
richardevans
Last Activity: Jul 25 '14, 04:51 PM
Joined: Jul 24 '14
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Hiya,

    I've now got the following error:

    Code:
    Notice: Use of undefined constant authorid - assumed 'authorid' in /html/addons/altcover01/custom_layout/partial/cover.phtml on line 359
    
    Notice: Object of class stdClass could not be converted to int in /html/addons/altcover01/custom_layout/partial/cover.phtml on line 359
    Array Posts
    Any clue?
    See more | Go to post

    Leave a comment:


  • richardevans
    started a topic GetIdentity Function for PHP giving Fatal Error
    in PHP

    GetIdentity Function for PHP giving Fatal Error

    Hi All,

    I'm having a bit of a dumb moment. I cannot get this function to work, so any help would be appreciated.

    Thanks

    Code:
    <?php
    	 $authorID = Zend_Auth::getInstance()-getIdentity()-author_id;
    $posts = new Application_Model_Posts();
    $numPosts = $posts->getPostsByAuthor($authorID);
    ?> <div><?php echo $numPosts; ?> Posts</div>
    See more | Go to post
    Last edited by Rabbit; Jul 24 '14, 10:49 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.
No activity results to display
Show More
Working...