Welcome Guest, Not a member yet? Register   Sign In
Inherited an CI project and am pretty lost with it.
#11

Ok guys, thanks for the help again.

I DID find out the CI_VERSION, but it was not in system/core, but rather in system/codeigniter/CodeIgniter.php.

And the version running is 1.7.2. If CI's version 2 reached EOL in 2015, we're talking about a bit dated system here.

So... no application/core folder, no MX folders. Perhaps this feature wasn't implemented in early 2010's?

This is starting to seem a bit gloomy.

Hmm. I'm going to try and find any differences between my local configuration and the on in production to find out why the routing or url rewriting isn't working. No clue where to start though, any help is still very appreciated..

Cheers,
Janne
Reply
#12

YESSSS! Got it "working".

As suspected, the issue was with routing and with some effort I managed to figure out that the missing key in configs was this line:
PHP Code:
/*
|--------------------------------------------------------------------------
| URI PROTOCOL
|--------------------------------------------------------------------------
|
| This item determines which server global should be used to retrieve the
| URI string.  The default setting of "AUTO" works for most servers.
| If your links do not seem to work, try one of the other delicious flavors:
|
| 'AUTO'            Default - auto detects
| 'PATH_INFO'        Uses the PATH_INFO
| 'QUERY_STRING'    Uses the QUERY_STRING
| 'REQUEST_URI'        Uses the REQUEST_URI
| 'ORIG_PATH_INFO'    Uses the ORIG_PATH_INFO
|
*/
$config['uri_protocol']    = "REQUEST_URI"

I had to change the protocol to use request. 

So now I can actually start to reverse-engineer this to see how things work and possibly make some changes customer wanted in the first place.

First strange thing I noticed, was the use of external ACL database. There's an folder named phpgacl that seems to be responsible for access control, I have yet to figure out why this has been done this way, I would think that that's something an framework do for you?

Hmm.. now there's also the question of to upgrade or not? Should I just make some minor changes that customer wanted or should I first try and get this to somewhat recent release? Recommendations?

Thanks for all your help already!

/ Janne
Reply
#13

@Jannie,

This information may be helpful to you (upgrading info: https://codeigniter.com/user_guide/searc...ea=default )
Reply
#14

Glad that you found it, 1.7.2 is indeed old (Release Date: September 11, 2009) Smile
Updating would be preferable, but as you can see in the upgrade guide posted above me it will take some time.
Reply
#15

@php_rocs

Thanks! I'm gonna check that out. Though that looks like a LOT of work, and I did get the things they actually asked almost done so I may just do fast-and-dirty thing and edit the controller in live. There's no deployments or anything like that here, I think the app has been developed fully in production environment.

Do you have any idea about the phpgacl this app seems to be using? Is it kosher CI stuff or should I keep far away and hope nothing breaks before we get the new app published?
Reply
#16

@Janne,

I have never used phpgacl before. I did find this link: https://sourceforge.net/projects/phpgacl/files/ .

I know that you are trying to keep the lights on but upgrading would be in the best interest of the app especially for security and supported PHP (upgrading PHP to supported version) reasons.
Reply
#17

@php_rocs

Yeah, you're absolutely right. Let's see what the people paying the bills think.. I've already made my case about running 10+ years old Joomla in production and this falls into the same category.

About the phpgacl.. You see any reason why they would have gone with that rather than CI's built in access controls?

Cheers,
Janne
Reply
#18

@Janne,

CI does not have default access controls. The previous developers found something that they liked and integrated it into CI. There are a few choices in CI 3.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB