ciblog | Simple blog built on Codeigniter | Web Framework library
kandi X-RAY | ciblog Summary
kandi X-RAY | ciblog Summary
Simple blog built on Codeigniter
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Handles the login form
- Edit a post
- Handles the registration page .
- List all recent posts
- Create a new comment
- Get posts
- Create a post
- View a page .
- Create a post comment
- Display posts page
ciblog Key Features
ciblog Examples and Code Snippets
Community Discussions
Trending Discussions on ciblog
QUESTION
I am working on a basic blog application in Codeigniter 3.1.8 and Bootstrap 4.
I have added a registration and login system to this application. I am current working on a password reset system.
In the Changepasword controller, the index
method takes the parameters $email
and $token
:
ANSWER
Answered 2021-Feb-28 at 13:48Change these 2 lines!
QUESTION
I am having problem autoloading the form_validation
library in Codeigniter. I have a controller Posts
with a create function which works great.
ANSWER
Answered 2018-Dec-26 at 06:30As the documentation says ref you have to validate like this :
I have seen mistake behind the run() method
Please fix it with :
if ($this->form_validation->run() == FALSE)
Also you can check by loading form_validation library directly by updating your constructor
QUESTION
I am working on a basic blog application with Codeigniter 3.1.8. and Bootstrap 4. The application has a search posts functionality.
The form in the header view:
...ANSWER
Answered 2018-Sep-30 at 12:45Here is a solution:
QUESTION
I am working on a basic blog application in Codeigniter 3.1.8.
The posts are diaplayed on the homepage and also filtered by categories.
Whenever I try to view a post from a category page its url has the category id at the end, instead of the post id. All post in the category with id 1 link to http://localhost/ciblog/posts/post/1
.
In the Posts_model model there is:
...ANSWER
Answered 2018-May-03 at 23:49You need to SELECT the table where you are retrieving the data your Post_module should look like:
QUESTION
I am working on a basic blog application in Codeigniter 3.1.8.
There is a create post and an update post functionality.
When a post is created, there is the option to upload a post thumbnail, else a default image is displayed. In the post controller there is the method for creating posts:
...ANSWER
Answered 2018-Apr-30 at 21:32Solved it:
In the edit post form, I have added an input of type hidden above the file input, in order to "capture" the posts image from the database:
QUESTION
I'm new to PHP and CodeIgniter, and I'm having trouble setting up the routing of static pages in my CodeIgniter app.
I have the ciblog/pages/views/about
and it works.
I want to change it into ciblog/about
.
I already have in the routes.php the $route['(:any)'] = 'pages/view/$1';
and it doesn't work it says in the browser:
page not found..
Please please help me I want to learn how to set up a static page....
Here is the code in the routes.php
...ANSWER
Answered 2018-Jan-05 at 22:47It will work, If your Controller is along the lines of... This is the simplest, bare bones option.
QUESTION
So here is what I had before. If I'd go to ciblog/categories/posts/5/, it would take me to a page showing all posts with a category with the id of 5.
And here is what I want to do. I want to go to ciblog/categories/posts/5 and it would show be 5 posts lets say. Then when I go to ciblog/categories/posts/5/3 it would offset by 3 so now I have the next 3 posts.
Currently I have 4 posts, just for testing. If I directly through my url go to ciblog/categories/posts/5 it shows 3 posts, and if I go to ciblog/categories/posts/5/3 it shows my one other post, so the amount of posts I am getting is correct based on the url.
BUT at the bottom it always shows that I am on page 2. When I use F12 and look at the elements both my pagination links show ciblog/categories/posts/5 So its not adding on the number at the end
Here is what I have for the pagination for this page. I used print_r and everything in $config is correct.
...ANSWER
Answered 2017-Jul-13 at 01:10$config['base_url'] = base_url().'categories/posts/'. $id . '/' . $offset;
$config['uri_segment'] = 4;
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ciblog
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page