Welcome Guest, Not a member yet? Register   Sign In
My Pagination Work in local, but error when upload to server
#1

(This post was last modified: 01-12-2021, 05:37 AM by MuhAnhar.)

I have some error with my pagination, and it's my controller :

PHP Code:
$data =
[
'title' => "The Memories Story - Photography",
'validation' => $this->validation,
'photos' => $this->CoverFotoModel->getPhotos(),
'pager' => $this->CoverFotoModel->pager,
'provinces' => $this->ProvinsiModel->provinsi()
];
return 
view('index/photograph'$data); 

My Model : 
PHP Code:
public function getPhotos()
{
return 
$this->table('cover_foto')
->
join('provinces''provinces.id=cover_foto.provinsi_cover')
->
join('regencies''regencies.id=cover_foto.kabupaten_cover')
->
paginate(8'cover_foto');



and this message error : 

PHP Code:
CodeIgniter\View\Exceptions\ViewException
Invalid file
: {0}
SYSTEMPATH/Exceptions/FrameworkException.php at line 21 


SYSTEMPATH/View/View.php : 228 — CodeIgniter\Exceptions\FrameworkException::forInvalidFile ( arguments )

PHP Code:
This the an arguments
$path App
\Views\Pagers\photo_pagination.php 

Nothing different between my code in local or server, but i've this error in server, please help.
Reply
#2

This is the classic error of upper/lower case differences between the filename in your code when you load the view and the actual filename on the server.
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply
#3

(01-12-2021, 03:51 PM)includebeer Wrote: This is the classic error of upper/lower case differences between the filename in your code when you load the view and the actual filename on the server.
Well, thank you so much. Case sensitive in my Pager.php at config folder.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB