Video tutorial - Blog |
[eluser]fejtis[/eluser]
I download the blog tutorial and I made the blog by instruction. But, in page Scaffolding: entries I want to add new record or view records, but after the click on link I get on the 404 error page. The url is http://localhost/code/index.php/blog/ind...olding/add. Help me somebody and I´m sorry for my english.
[eluser]Ji31[/eluser]
It's just because you have to set the url of your site: edit the file /system/application/config/config.php and find the variable $config['base_url'] and put there your URL.
[eluser]fejtis[/eluser]
Ok thx. I updated that row to $config['base_url'] = "../../../";.
[eluser]Ji31[/eluser]
[quote author="fejtis" date="1185753951"]Ok thx. I updated that row to $config['base_url'] = "../../../";.[/quote] A proč na tohle? Snad by tam měla být adresa rootu toho webu ne?
[eluser]fejtis[/eluser]
JJ napadlo mě to hned potom. Sorry teprv ten framework objevuju.
[eluser]fejtis[/eluser]
Další problém: $data['query'] = $this->db->get('entries'); mi vrátí akorát Fatal error: Call to a member function get() on a non-object in C:\dev\www\code\system\application\controllers\blog.php on line 10
[eluser]fejtis[/eluser]
To nemám. To v tom tutoriálu vůbec nebylo. A když to tam dám tak vyjede An Error Was Encountered Unable to load the requested class: database
[eluser]fejtis[/eluser]
V autoload mám $autoload['core'] = array('database'); |
Welcome Guest, Not a member yet? Register Sign In |