Welcome Guest, Not a member yet? Register   Sign In
Codecrafter - can't get resulting controllers and views to work
#1

[eluser]Unknown[/eluser]
Hi,
I'd like to try Codecrafter - but I'm haveing problems. I've managed to get it to generate controllers and views - but nothing works when I copy them over to my codeigniter folders and try to load them. I can no longer get anything at all to work now via my codeIgniter urls- not even the welcome page.

Short tags don't work on my test machine - which is Mac OS X. I set the pref in Codecrafter to generate long tags - but I notice that that hasn't happened in the code, i.e. the views ares still using short tags. I've also set short tags to true in my CodeIgniter config - but still no joy.

Any ideas?

Thanks.

Jim
#2

[eluser]Unknown[/eluser]
I've started to get some bits working. Some of the <?php tags were mangled - some like <?phphph

I've done a search and replace on all the short tags.

Now getting some errors when accessing main.php - including:

"A PHP Error was encountered
Severity: Notice
Message: Undefined variable: page_contents
Filename: site/main.php
Line Number: 7"


Clicking the Add new link I get:

An Error Was Encountered
Unable to load the requested class: layout

Clicking the browse link gives me the error about being unable to load the layout class.

The Find just gives a 404.

Jim
#3

[eluser]Unknown[/eluser]
Hi,

I think you should first of all make use of the 'cake-like' layout library: http://codeigniter.com/wiki/layout_library/ because CI asks for it




Theme © iAndrew 2016 - Forum software by © MyBB