A simple mvc PHP with friendly url and some functions.
Copy the project to the root of your site and test it.
1.Friendly url
2.Caching system
3.Easy image uploader with create thumbnail of it
4.A few other useful functions
Modify the base_url value in the core file according to the folder where you place the project.
Modify the values in the send_email file in core folder according to the your gmail account.
example :
for (input type="email" name="email" required) ---> $data = form_valid('email', 'email' ,1)
(1 for required and 0 for not).
(type : text or email).
this function returns a array with -->
array[0] (0 for Not accepted and 1 for accepted)
array[1] (the value of input)
example:
$data = image_upload('file' ,'view/uploads/', 500000)
$data[0] = (0 for Not accepted and 1 for accepted)
$data[1] = name of file
image upload and create thumbnail of it
example:
$data = image_upload_thumbnail('file' , 'view/uploads/' , 500000 , 'view/uploads/thumbs/' , 0.2)
$data[0] = (0 for Not accepted and 1 for accepted)
$data[1] = name of main file
$data[2] = name of thumbnail file
example:
$data = pagination($con , 'library' , 7 , 2)
$data[0] = start in qurey for each page
$data[1] = number of all pages