Welcome Guest, Not a member yet? Register   Sign In
Video tutorial - Blog
#1

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

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

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

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

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

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

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

[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
#9

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

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

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




Theme © iAndrew 2016 - Forum software by © MyBB