Тэги:
#Codeigniter_Tutorial_for_Beginners #codeigniter_php_tutorial #codeigniter_tutorial #codeigniter_tutorial_for_beginners_step_by_step #codeigniter_model_tutorial #codeigniter_tutorial_for_beginner #codeigniterКомментарии:
Hello. I am not able to understand how to open models/controllers etc file via xampp on localhost. The way you are doing using the port number is not working for me. Please help or share your contact number if possible. Thanks.
Ответитьur class is good., but i was getting some confusion while calss is going on
ОтветитьI was never ever clear on just how models fit into the MVC structure til now.
You've got a fantastic way of explaining things. Nice work!
Dear You have used "CI_model() " instead of "CI_model" for the class extension in the "Authentication_from_google" model, thats why error is there...
Thanks for the tutorial bdw😊
Can someone help me, the $lastName + $this->lastName();
return "Akshay ", $lastName; won't work on me, it say
Type: ParseError
Message: syntax error, unexpected ',', expecting ';'
Filename: C:\xampp\new\htdocs\CodeIgniter-3.1.2\application\models\My_model.php
Line Number: 5
Backtrace:
File: C:\xampp\new\htdocs\CodeIgniter-3.1.2\application\controllers\my_controller.php
Line: 13
Function: model
File: C:\xampp\new\htdocs\CodeIgniter-3.1.2\index.php
Line: 315
Function: require_once
too much low volume
Ответить2 syntax erros on Authentication from google calss
line 2 remove () after CI_Model
line 10 remove }
tnx
this is the most understandable CI tutorial I've ever watched! your series of tutorial. thank you so much! cheers from the Philippines.
ОтветитьFound the Error of the last part of "authentication from google" part. This is the one in the video.
<?php
class Authentication_from_google CI_Model (){
public function userData(){
return "D";
}
}
?>
it has to be --->
<?php
class Authentication_from_google CI_Model {
public function userData(){
return "D";
}
}
?>
The error is you need to remove "( )" brackets after CI_Model. Then your code will work.
Thanks "Solution Cone" for the tutorials. keep it up. if you have run the code after you typed, you might have caught that at that spot. i'm a beginner to this and i took lot of time to figure it out. but, thanks anyway.
what did i do wrong i get >?php class My_model extends CI_Model{ public function firstName(){ return "Mike"; } private function lastName(){ return "Aspinall"; } } ?>
when i load the page
my code in My_controller is
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class My_controller extends CI_Controller{
public function index()
{
$this->load->view('myindexview');
}
public function test()
{
$this->load->model('my_model');
$firstname = $this->my_model->firstname();
echo "Firstname => ", $firstname;
}
}
?>
you dont know how to access private value in controller please its request to you close channel you are not able to teach....
i report of channel
bakwas
Ответитьpublic function testing()
{
$this->load->model('autication_of_google','google');
$firstName = $this->google->firstName();
echo "firstname => ". $firstName;
}
sir you have use function" firstName()"
add these model create function"userdata()"
let me know use firstName function and what is echo first name
public function testing()
{
$this->load->model('my_model');
$firstName = $this->my_model->firstName();
echo "firstname => ". $firstName;
}
when i run this it only shows my firstname and not with this one "firstname =>" since i echo it it should be there right? please help me thanks
how much coding is required in Codeigniter??? I dont like much coding..
ОтветитьWhat are those Tuiiiiiiiiiiiiiiiiiiiiii Sounds
Anyways Nice Tuts.
Thank You!!!
the last one authenticaion part is not working for me
That shows an error:
A PHP Error was encountered
Severity: Error
Message: Call to undefined method Authenticate::firstName()
Filename: controllers/My_controller.php
Line Number: 16
Backtrace:
What to do???
bhai ye bachon ka kuti cheeka to band krao peechay........
ОтветитьIt's very clear explanation. tnk u very much sir.
ОтветитьUncaught Exception was encountered when I tried to run the same
ОтветитьAn uncaught Exception was encountered
Type: RuntimeException
Message: Unable to locate the model you have specified: Firstname
Filename: F:\xammp\htdocs\project\codeigniter\system\core\Loader.php
Line Number: 344
Backtrace:
File: F:\xammp\htdocs\project\codeigniter\application\controllers\My_controller.php
Line: 22
Function: model
File: F:\xammp\htdocs\project\codeigniter\index.php
Line: 315
Function: require_once
i follow the model class tutorial but not working properly please put correct vedio i'm using codeiginter 3.1.4
Ответитьisn't the function name in "google" method should me "userData()" instead of "firstName()"...........thanks for videos
Ответитьthank you.......i am going to tell you that "I m just following your video"
so keep uploading new video so that i can learn from you.....
you are just awesome ..........
Thnks for this tutorial........
Ответить