Index Page Mod (Use PHP inside Index!)
new indexI really wanted to use some PHP inside my index page, but because it was hooked up to the AdminCP as a custom document, no matter how many modifications I made to CKEditor, I still couldn't get it to work. So... I turned to HoF and asked about it. It turns out, we can just modify our view/indexview.php to be like all the other files in view/, and modify it similarly: working with variablesNow you're free to add php wherever you need to. To print a variable into your html, wrap it inside inside {brackets} and always start with a $. Be sure to set variables before you need to use them, to get the intended results. five random petsFor something more complicated, try adding this inside the index function! It will show you five random pets! |
Thank you <3 I was going to do this myself.
I didn't think of listing pets though! I will be adding news from the news addon onto my front page. That will be fun! I'll share that code when I've got it ^^ |
All times are GMT -5. The time now is 11:22 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.