CodeIgniter Forums
Video tutorial - Blog - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Video tutorial - Blog (/showthread.php?tid=2314)



Video tutorial - Blog - El Forum - 07-29-2007

[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/index.php/blog/scaffolding/add.

Help me somebody and I´m sorry for my english.


Video tutorial - Blog - El Forum - 07-29-2007

[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.


Video tutorial - Blog - El Forum - 07-29-2007

[eluser]fejtis[/eluser]
Ok thx. I updated that row to $config['base_url'] = "../../../";.


Video tutorial - Blog - El Forum - 07-29-2007

[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?


Video tutorial - Blog - El Forum - 07-29-2007

[eluser]fejtis[/eluser]
JJ napadlo mě to hned potom. Sorry teprv ten framework objevuju.


Video tutorial - Blog - El Forum - 07-29-2007

[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


Video tutorial - Blog - El Forum - 07-29-2007

[eluser]Ji31[/eluser]
A máš tam
Code:
$this->load->library('database');
?


Video tutorial - Blog - El Forum - 07-29-2007

[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


Video tutorial - Blog - El Forum - 07-29-2007

[eluser]Ji31[/eluser]
No a povolils ji v autoload.php?


Video tutorial - Blog - El Forum - 07-29-2007

[eluser]fejtis[/eluser]
V autoload mám

$autoload['core'] = array('database');