• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
control based action in anchor tag not showing in server

#1
In my windows system working, but in server this will not be working
Code:
 <?php
$actionbutton = $row['status'] == 'success' ? anchor('Users/getpdf/'.$row['appno'],'Generate Pdf','class="btn btn-success"') : anchor('Users/validate/'.($row['appno']),'Pending','class="btn btn-warning"')  ;
?>
<td align="center" ><?= $actionbutton;?></td>


need help.
Reply

#2
Maybe it is case sensitive Windows doe's care if its upper or lower case!

Your server is case sensitive so your Users should be users.

If I were you I would go to Udemy and get some course's on PHP.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply

#3
(09-20-2018, 10:53 AM)InsiteFX Wrote: Maybe it is case sensitive Windows doe's care if its upper or lower case!

Your server is case sensitive so your Users should be users.

If I were you I would go to Udemy and get some course's on PHP.

i changed but no result . is ther any other way to check.

dashboard:146 Uncaught ReferenceError: $ is not defined

i thing this is the error i got in console .

My controller is : Users
Function name : getpdf

I changed Users/getpdf to users/getpdf . nothing will be display
Reply

#4
(09-23-2018, 10:46 PM)kvanaraj Wrote: dashboard:146 Uncaught ReferenceError: $ is not defined
i thing this is the error i got in console .

If it's your browser console, sounds like issue loading jQuery properly before it's used, not PHP issue.

If your jQuery file loads successfully, you probably should look into ready function - if jQuery isn't loaded by the time you are trying to use any of the $ functions, it'll give you error you stated before, so you must wait for document to be ready (all scripts/css loaded) before running any of your JS code.
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.