edit website built in codeigniter
Posted: Mon Jun 16, 2014 7:41 am
i have been handed a site that was built in codeigniter, what is the best way to edit this?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
yeah sorry, it was wasnt it. is it better to get codeigniter installed and use it like that? i havent used it before so need to know how easy it is to set up and useCelauran wrote:With a text editor.
Seriously, your question is vague to the point of being meaningless. What are you asking? The more specific you can make your question, the better we'll be able to answer.
no what has happened is i have just been giving the ftp details, downloaded the content and am editing by hand at the moment.Celauran wrote:Was CI not included in the package you inherited? If not, you'll definitely need to install it before the site will even run. Do you know which version of CI the site was built against? You'll need to know if you end up having to download CI as a site built on 1.x will likely give you problems if you try to run it on 2.x
oh really, i already have started adding content. so what do i do? download CI then import the site into it?Celauran wrote:Check the directory structure. CI may be in public_html, or it may be a sibling directory. Either way, I'd download the whole thing, get it up and running locally, and get it under version control if it isn't already. You definitely don't want to be making changes on the live server, especially if you aren't familiar with CI.
ok looks like it is already on there. how do i access it? sorry for all the questionsCelauran wrote:If you've got FTP access, then CI is already available to you and you don't need to worry about which version to download. Just grab whatever is on the server. Like I said, directory structure can change, so the framework may or may not be inside public_html.
What do you mean?jonnyfortis wrote:how do i access it?
because i have never used it before i have no idea how it works, do i edit the webpages using CI? if so how do i use it. i have never seen it working so am a bit blind on it.Celauran wrote:What do you mean?jonnyfortis wrote:how do i access it?
ok so i take it i just need to go to the site and use their help. I dont want to edit anything in the core i just want to edit the website. and i presume i need to edit it with CICelauran wrote:CodeIgniter is a framework. It's just PHP. You don't really want to touch the core. You'll be working in your application directory, mostly in models, views, and controllers. If you feel you need to edit anything outside of application, stop and reevaluate what you're trying to do.
yes ok, i am following something on youtube at the moment, that should help...i hopeCelauran wrote:CI isn't an application, it's a PHP framework. You edit the site using the same tools you normally would -- SublimeText, Netbeans, whatever. CI uses an MVC (model-view-controller) structure, so you'll be working mostly in /application/(models|views|controllers). You may want to follow a tutorial on CI to help get you familiar with the framework and how it works.