Closed itanshi closed 11 years ago
What commit are you using? In the final commit I see all css include using site_url.
<link href="<?php echo site_url('css/bootstrap.min.css'); ?>" rel="stylesheet">
You're absolutely right about the $this->_php_open()
issues on line 217. I'll fix it and upload.
Actually, the Generate controller was not supposed to be in there at all. It was just a little experiment I started coding but didn't finish and forgot to take out. There's bound to be a lot more errors and spaghetti coding in that class ;)
Your tutorials are great! I'm a new to Codeigniter. I've followed every step you taught, but one problem (database migration) I cannot figure out is I'm using PDO driver instead of MySQL. In database.php I changed some configuration like so $active_group = 'default'; $active_record = TRUE;
$db['default']['hostname'] = 'mysql:host=localhost'; $db['default']['username'] = 'root'; $db['default']['password'] = ''; $db['default']['database'] = 'ci_pdo'; $db['default']['dbdriver'] = 'pdo';
When run a database migration, only one migration table was created, no error. What's the problem of this? Appreciate for your help Thanks!.
Thanks! It seems that PDO doesn't work well at all with dbforge: http://philsturgeon.co.uk/blog/2012/12/5-things-codeigniter-cannot-do-without-a-rewrite
And dbforge is exactly what you're using in migrations...
Sent from my iPhone
Op 22 feb. 2014 om 02:35 heeft Daroath notifications@github.com het volgende geschreven:
Your tutorials are great! I'm a new to Codeigniter. I've followed every step you taught, but one problem (database migration) I cannot figure out is I'm using PDO driver instead of MySQL. In database.php I changed some configuration like so $active_group = 'default'; $active_record = TRUE;
$db['default']['hostname'] = 'mysql:host=localhost'; $db['default']['username'] = 'root'; $db['default']['password'] = ''; $db['default']['database'] = 'ci_pdo'; $db['default']['dbdriver'] = 'pdo';
When run a database migration, only one migration table was created, no error. What's the problem of this? Appreciate for your help Thanks!.
— Reply to this email directly or view it on GitHub.
The css urls lacked the public_html folder name. I changed mine to
base_url().config_item('assets').'/css/bootstrap.min.css'; ?>" rel="stylesheet">
either of these are fine.
base_url().public_html/css/bootstrap.min.css'; ?>" rel="stylesheet">
site_url('public_html/css/bootstrap.min.css'); ?>" rel="stylesheet">
In function _class_open of generate.php controller
$this->_php_open();
should be
$string .= $this->_php_open();
also I found that swapping the last two
function controller ($name, $extends = NULL, $crud = FALSE)
function controller ($name, $crud = FALSE, $extends = NULL)
like so works better, but that's more of an opinion. I just started last November. It's been quite an adventure so far. Thanks for the code and the great tutorials.