CodeIgniter Forums
My Pagination Work in local, but error when upload to server - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: My Pagination Work in local, but error when upload to server (/showthread.php?tid=78388)



My Pagination Work in local, but error when upload to server - MuhAnhar - 01-12-2021

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.


RE: My Pagination Work in local, but error when upload to server - includebeer - 01-12-2021

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.


RE: My Pagination Work in local, but error when upload to server - MuhAnhar - 01-12-2021

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