PHP - Fatal Error: Call to undefined method - but method exist -


I am currently making a ticket handler system, however, when I try to call someone, a very surprising Receiving the error is my class The error is:

  Fatal error: Call the undefined methodTatics :: Submit Nautilica () /home/shortcut/public_html/MyDOMAIN/explore/account/tickets.php on line 68 in  

However, the method I am attempting to use is definitely defined in my class, and it is being printed in get_class_methods ... what do I do if I am hurt Here is the main code to call this method.

  need_once ('app / makeTickets.php'); $ Attics = New Make Ticket ($ Log In User); Print_r (get_class_methods ($ etickets)); $ Etickets- & gt; SubmitNewTicket ();  

Here's the actual square.

  & lt ;? Php class maketickets {public $ id; Public $ user; Public function __ conversion ($ user) {$ this- & gt; User = $ user; $ This- & gt; Id = $ user- & gt; User_id; } Public Function View Nautical (?) {? & Gt; & Lt; Div class = "card" & gt; & Lt; Div class = "default full-width warning" & gt; & Lt; H3 class = "default alert" & gt; & Lt; I class = "fa file-file-text-o" & gt; & Lt; / I & gt; Create new ticket & lt; / H3 & gt; & Lt; Form class = "field" action = "& lt ;? php echo $ _SERVER ['PHP_SELF'] ;? & gt;" Method = "post" & gt; & Lt; Input type = "text" class = "title-editor" placeholder = "ticket title" name = "title" /> & Lt; Textarea id = "content" name = "content" & gt; & Lt; / Textarea & gt; & Lt; / Form & gt; & Lt; Script & gt; CKEDITOR.replace ('content') & lt; / Script & gt; & Lt; / Div & gt; & Lt; / Div & gt; & Lt ;? Php Returns; } Public Function sumbitNewTicket () {// Todo Constructor foreach (Globe (* * .json) as $ item) echo 'echoed'. $ Item '& lt; Br> & # 39; & # 39; } Return; }}? & Gt;  

For output, here is the result of my code: Enter the image here Description As you can see, the Class Math I'm trying to call is printed, so I'm not sure what's wrong. Thanks for any / all help!

Please replace sumbitNewTicket for submitting nuqtq.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -