[eluser]a.g.r.c[/eluser]
Hey guys,
Recently I started to take the walk on the learning curve of CI. Having read few the introduction docs last night and watching a few video tutorials it was all so clear.
It still is to be honest, I'm probs just doing this wrong.
So the installation went fine, I got some scaffolding set up and managed to translate a template over to CI in a modular way using MVC.
Using $image_properties and img() for embedded images and re-working the html helper to find my assetts folder.
All was well.
Set up a few links and was passing the top nav to sub nav links no problems (easy stuff)
[controller, function] or blog and post
So then it was time to get a result from a DB.
A 3 fielded table with id, message and date.
So I then went on to make a model seting up a query
$data['query'] = $this->db-get('twitterClone');
Then loading the view with the data bound to it ready for selection.
Forgetting to mention that this needs to be a global function so autoload would be the right answer i think.
Problem was every time I passed over the var in header.php and looped over to get the result, it would always return an error
Quote:A PHP Error was encountered
Severity: Notice
Message: Undefined property: stdClass::$My Title
Filename: components/header.php
Line Number: 225
Any ideas guys, where has it all gone wrong? :'(
a.g.r.c