how to change theme in codeigniter like wordpress or other cms?
How to change theme or template in code igniter like word press or other content management system.
See also questions close to this topic
Session auto terminate in Codeigniter after i download file
An user of my system need to login first to used the function available in the system (then it will create an session for the user). However, if the user download a content from the system, the session will auto terminate. The download will be from my own server as i run it on localhost. As far as i know, the session will terminate if only i run the session_destroy() by clicking the logout button.
This is my form, if the user click download it will run the download function
<form class="" method="post" action="<?php echo base_url()?>index.php/com_auth/download">
<input type="submit" name="submit" id="submit" value="Download">
Hope someone can help me as download function is essential for my system. Thanks in advance!
Maintain the same project within multiple sub-domains
I'm facing a situation and I'd like to have some feedback/guidance about the best approach.
I have a big project developed with PHP and CodeIgniter working as a SaaS solution for more than a year and it's working perfectly. A new client about two months ago asked me if he can use my software but with some new features developed specifically for him. I said yes and created a sub-domain with the base structure of my main project along with the new developments he asked for.
What happens is that now other client asked me the same and whenever I find a bug within the main project I have to go to both sub-domains projects and fix. If the bug involves several files..this is taking me too much time and it may create some errors.
So, what I'm asking here is if there's any better solution than copy-all-files from main project when creating a sub-domain for a specific client?
I thought about this:
- Only create the new files / fixed files with new features in the sub-domain with the correct file structure of the main project.
- Somehow with .htaccess "redirect" to the files from subdomain if they exist?
Is this possible? If so, how?
Not able to receive firebase cloud notification in browser
I have programmed my web app to generate token and save it to database. Then when i use php curl on codeigniter, it says success. enter image description here
But i receiver no any notification in the web browser.