Html help
- Started
- Last post
- 11 Responses
- Raybandana
Hi there -
I have been asked to update some html.
Usually you would find, index.php, about.php and contact.php. Or at least something like that.
This site only has a index.php. And looks like everything is dynamically created - How do I go about edit each page of the site - or making changes?
This is all there is -Thanks!
- orrinward20
Open index.php and see what it spews out. Conditional content for each page may be given there.
- Raybandana0
// absolute filesystem path to the web root
define('WWW_DIR', dirname(__FILE__));// absolute filesystem path to the application root
define('APP_DIR', WWW_DIR . '/../app');// absolute filesystem path to the libraries
define('LIBS_DIR', WWW_DIR . '/../lib');define('DOWNLOAD_DIR', WWW_DIR . '/download');
// absolute filesystem path to this web root
$params['wwwDir'] = dirname(__FILE__);// absolute filesystem path to the application root
$params['appDir'] = realpath(dirname(__FILE__) . '/../app');// load bootstrap file
require $params['appDir'] . '/bootstrap.php';
- Raybandana0
I'm not use to working with dynamic stuff like this... where are the other pages?
- orrinward20
Check in the app directory. Looks like a Ruby site - In app you'll have Models, Views, Controllers and Helpers I reckon.
Views is where the HTML will be.
- Raybandana0
ahh I see...
- Raybandana0
Do the model are my pages I can edit? or my templates?
- Raybandana0
Looks like the HTML is in the template folder.. but they are .latte?
never worked with this kind of thing before...
- Stugoo0
Looks like a bootstrap file, try googling that.
or go in and edit some of the files and see what changes!
- animatedgif0
"Check in the app directory. Looks like a Ruby site"
Ruby is a programming language and not just Rails sites, this is clearly written in PHP not Ruby. What you meant to say was looks like a MVC application.Check things like the .config file and the router code and see if you can figure out what PHP framework it has been written in, judging from .latte files then this is a possibility
http://nette.org/Latte is a templating language from the looks of it, basically with apps written like this the Model/Controller sections are logic and database access then they spit things out to the view which will deal with turning it into HTML. So it looks like you'll be editing those .latte files
- vaxorcist0
I suggest you get into a "tweek/test" loop, where you tweek something, test it, see what changed, surf around for unintended consequences.... then rinse and repeat....
like say you update a header width for one template, it may mess up some other pages, so be careful, and keep version copies so you can "roll back" if you have to....
this can be easy, if you only want to tweek a template, once you figure out how things are organized....
NOTE:this can become suddenly near-impossible if you have to change some sort of structure that was baked-in, and/or something that's depending on something else.