Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 11,545
» Latest member: [email protected]
» Forum threads: 67,936
» Forum posts: 424,192

Full Statistics

Latest Threads
Set Base URL to backgroun...
Forum: Choosing CodeIgniter
1 hour ago
» Replies: 0   » Views: 14
Security related to contr...
Forum: General Help
2 hours ago
» Replies: 1   » Views: 34
Github bought by Microsof...
Forum: Lounge
Today, 11:30 AM
» Replies: 3   » Views: 156
devbar on 404
Forum: CodeIgniter 4 Feature Requests
Today, 10:39 AM
» Replies: 1   » Views: 74
PHP 7.2.7 Has just been R...
Forum: Lounge
Today, 10:30 AM
» Replies: 0   » Views: 70
Upgrading CI to last vers...
Forum: Installation & Setup
Today, 09:21 AM
» Replies: 8   » Views: 355
Ajax forbidden 403
Forum: Installation & Setup
Today, 09:03 AM
» Replies: 1   » Views: 100
autoload
Forum: CodeIgniter 4 Discussion
Today, 04:05 AM
» Replies: 3   » Views: 142
Displaying PDF
Forum: CodeIgniter 4 Support
Today, 04:02 AM
» Replies: 2   » Views: 140
XAMPP 7.2.6 Has Been Rele...
Forum: Lounge
Today, 03:06 AM
» Replies: 4   » Views: 224

 
  Set Base URL to background image path in External CSS
Posted by: sanjaya - 1 hour ago - Forum: Choosing CodeIgniter - No Replies

Any one can help me to add base url to my background image path in my external css. My code like below. 

PHP Code:
aside.main-sidebar{
 
   background-imagelinear-gradient(90degrgba(0,0,0,0.4), rgba(0000.2)),
 
           url(/ui/assets/img/bg4.jpg) !important;
 
   background-sizecover;
 
   background-positioncenter;


  Security related to controller URL
Posted by: ppuhan1389 - 5 hours ago - Forum: General Help - Replies (1)

I have a URL for controller 

http://localhost/userTest/test
  

Now when i open the URL in the browser its not showing the forbidden page but the data coming from the Controller function. I need to restrict the same. Please let me know how to do it


  PHP 7.2.7 Has just been Released!
Posted by: InsiteFX - Today, 10:30 AM - Forum: Lounge - No Replies

PHP 7.2.7 Has just been Released!


  Github bought by Microsoft?
Posted by: iridion2015 - Yesterday, 05:48 PM - Forum: Lounge - Replies (3)

Guys,

Now that Microsoft is the owner of Github.

Are you happy?
Are you sad?

It will remain open source by the way said by Microsoft CEO.
Are you still using it?

what is your opinion to this?


  upload
Posted by: Nome - Yesterday, 03:47 AM - Forum: CodeIgniter 4 Discussion - Replies (2)

Hello, tell me how to properly load a file (any)? I turned to the manual and use 

PHP Code:
$this->request->getFile() 

but it did not help, kept getting data about the file "NULL"...

It's embarrassing to ask you, lead or link to a working example.

Specification:
I want to learn how to download a file (by specifying a location) and get some data about it, for example its size or type.

P.s
Thank you for understanding.


  Htaccess config to create page redirection
Posted by: [email protected] - Yesterday, 12:11 AM - Forum: General Help - Replies (1)

May I know what is the meaning of each lines in htaccess whenever a page is redirected? Thanks

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]


  drivers/Session_files_driver.php
Posted by: ofir - 06-19-2018, 09:03 PM - Forum: General Help - Replies (1)

Severity: Warning

Message: unlink(/tmp/ci_session3195883705fdcc11bcc62d0ebc38fa450f2e025a): Operation not permitted

Filename: drivers/Session_files_driver.php

Function: __construct
Function: require_once

Can i get explain what the problem and how to fix it ?


  Subquery
Posted by: snelledre - 06-19-2018, 01:14 PM - Forum: Libraries & Helpers - Replies (2)

Hello,

I'm new to Codeigniter and learn a lot every day
I have a subquery that works perfectly in MSSQL.

Code:
SELECT SUM(Weight) as Total, Recipegroup, Production
FROM (SELECT Rejectspecies, Production, Productionsite, Pullution, Weight, Recipegroup, Recipe, Datetime
FROM dbo.Reject
WHERE (Datetime BETWEEN DATEADD(day, - 7, CONVERT(DATETIME, CONVERT(CHAR(8), GETDATE(), 112) + ' ' + CONVERT(CHAR(8), '15:15:00', 108))) AND
        DATEADD(day, - 7, CONVERT(DATETIME, CONVERT(CHAR(8), GETDATE(), 112) + ' ' + CONVERT(CHAR(8), '23:15:00', 108)))) AND
        (Rejectspecies = 'Diervoeder koek' OR Rejectspecies = 'Diervoerder deeg' OR Rejectspecies = 'Restafval')) AS Totals
GROUP BY Production, Recipegroup

I want this to convert to codeigniet db helper but i wont work.
This is what i have.

PHP Code:
   public function get_reusable_early()
 
   {
 
       $strSubQuery $this->db
            
->select("Rejectspecies, Production, Productionsite, Pullution, Weight, Recipegroup, Recipe, Datetime")
 
           ->from("dbo.Reject")
 
           ->where("(Datetime BETWEEN DATEADD(day, - 7, CONVERT(DATETIME, CONVERT(CHAR(8), GETDATE(), 112) + ' ' + CONVERT(CHAR(8), '15:15:00', 108))) AND 
        DATEADD(day, - 7, CONVERT(DATETIME, CONVERT(CHAR(8), GETDATE(), 112) + ' ' + CONVERT(CHAR(8), '23:15:00', 108)))) AND 
        (Rejectspecies = 'Diervoeder koek' OR Rejectspecies = 'Diervoerder deeg' OR Rejectspecies = 'Restafval')"
)
 
           ->get_compiled_select();

 
       $this->db->select('SUM(Weight) as Total, Recipegroup, Production'false);
 
       $this->db->from($strSubQueryfalse);
 
       $this->db->group_by('Production, Recipegroup');
 
       $this->db->having('Production''Lijn A');
 
       $query $this->db->get();

 
       return $query->result_array();
 
   

But won't work i get the next error.

Code:
A Database Error Occurred
Error Number: 42000/156

[Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Incorrect syntax near the keyword 'FROM'.

SELECT SUM(Weight) as Total, Recipegroup, Production FROM "SELECT" "Rejectspecies", "Production", "Productionsite", "Pullution", "Weight", "Recipegroup", "Recipe", "Datetime" FROM "dbo"."Reject" WHERE (Datetime BETWEEN DATEADD(day, "-" 7, CONVERT(DATETIME, CONVERT(CHAR(8), GETDATE(), 112) + ' ' + CONVERT(CHAR(8), '15:15:00', 108))) AND DATEADD(day, "-" 7, CONVERT(DATETIME, CONVERT(CHAR(8), GETDATE(), 112) + ' ' + CONVERT(CHAR(8), '23:15:00', 108)))) AND ("Rejectspecies" = 'Diervoeder koek' OR "Rejectspecies" = 'Diervoerder deeg' OR "Rejectspecies" = 'Restafval') GROUP BY "Production", "Recipegroup" HAVING "Production" = 'Lijn A'

Filename: C:/inetpub/wwwroot/reject/system/database/DB_driver.php

Line Number: 691

Can anybody help me with the query builder?

Andre
From the Netherlands


  devbar on 404
Posted by: admin0 - 06-19-2018, 08:53 AM - Forum: CodeIgniter 4 Feature Requests - Replies (1)

starting CI4 and getting a lot of 404 .. due to lack of enough examples to do stuff .. 

is there a possibility to show the dev bar on 404 so that it tells exactly why there is a 404 ? 
no erros in apache or php log .. 404  ..


  autoload
Posted by: admin0 - 06-19-2018, 08:46 AM - Forum: CodeIgniter 4 Discussion - Replies (3)

i am playing with CI4 as well, and also developing in CI3. 

In ci4, there is the application/controllers/X.php where i can define controller and call http://localhost/class/method/ and it works fine. 

now what I did is in the same folder where application lives, i created my folder called admin0 


admin0
- Controllers
   - User.php 
- Models
- Views

- applicaiton 
- public 
- system 
- tests
- user_guide_src
- writable 


This is what User.php has: 

<?php namespace admin0\User;

class User extends \CodeIgniter\Controller
{
    public function ping()
    {
        echo "PONG PONG PONG !!!";
    }
}


-- No matter what i tried, I could not make  http://localhost/user/ping work :Sad

how do someone loads this psr4 in CI4  - in the above structure ? 



Thanks,



  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2018 MyBB Group.