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

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 7,784
» Latest member: WaynePopa
» Forum threads: 65,332
» Forum posts: 411,395

Full Statistics

Latest Threads
Json Handling in ViewCI
Forum: General Help
11 minutes ago
» Replies: 2   » Views: 29
How to using sweet alert ...
Forum: General Help
2 hours ago
» Replies: 1   » Views: 43
Codeigniter database conn...
Forum: General Help
2 hours ago
» Replies: 2   » Views: 56
What is the smtp server C...
Forum: General Help
3 hours ago
» Replies: 3   » Views: 49
Changing my hosts file is...
Forum: General Help
3 hours ago
» Replies: 0   » Views: 16
Community Auth Add User R...
Forum: Addins
5 hours ago
» Replies: 8   » Views: 109
CodeIgniter 3.1.3 Release...
Forum: News & Discussion
8 hours ago
» Replies: 9   » Views: 5,994
Upgrade from 3.07?
Forum: Installation & Setup
10 hours ago
» Replies: 4   » Views: 72
Authentication
Forum: CodeIgniter 4 Feature Requests
11 hours ago
» Replies: 20   » Views: 1,627
Call A Raw PHP File
Forum: General Help
11 hours ago
» Replies: 4   » Views: 126

 
  Json Handling in ViewCI
Posted by: shakeelahmed.cfs - 1 hour ago - Forum: General Help - Replies (2)

hey everyone .. I am a nwebiew to CI and a fresher too  neeed your help , 
I have a wordpress blog from where i have fetch posts through JSON and tat JSON data i want to view in CI VIEW 
i am sharing the code of controller 

Code:
<?php

class Code extends CI_Controller{

public function __construct()
{
    
    parent::__construct();
}    
    
    
    
public function test()
{      
        // echo "daewd"; die();
    //$otherdb = $this->load->database('blogs', TRUE); // the TRUE paramater tells CI that you'd like to return the database object.
      //$query = $otherdb->get('wp_users');
      //$data['wp_users']=$query->result_array();
      $data = file_get_contents('http://wordpress-34240-73651-202010.cloudwaysapps.com/wp-json/wp/v2/posts');
     $decode=json_decode($data, true);
      var_dump($decode);
       //print_r($decode['0']);  
      //echo implode(" ",$data);
      //print_r("<pre>");  
     // print_r($data['wp_posts']);      
    
    // $this->load->view('post',$data);
}    


    
}

so please tell me how i can show my posts and tiles of posts in the view


  Changing my hosts file is not working
Posted by: meSmashsta - 3 hours ago - Forum: General Help - No Replies

I'm trying to redirect bing.com to google.com, so when I enter bing.com on my browser address I should be redirected to google.com instead but it's just not working...

I opened the hosts file using notepad as an administrator, and change it to

172.217.25.110 bing.com # should redirect to google but not!

I'm trying to learn something and this is a part of the tutorial that I'm reading on, this is just an excerpt that is somehow related to Codeigniter.


  How to using sweet alert in codeigniter
Posted by: Raynaldi_ST - 5 hours ago - Forum: General Help - Replies (1)

I want to make validation form login user when form validation error show error form controller to view codeigniter ? anyone can help me


  What is the smtp server Codeigniter uses?
Posted by: meSmashsta - 5 hours ago - Forum: General Help - Replies (3)

I don't have a smtp server on my machine, but Codeigniter allows me to send emails, how is that possible? Does Codeigniter comes with an smtp server?


  Log file styling lib
Posted by: zurtri - 11 hours ago - Forum: General Help - No Replies

Hi all,

I'm seeking a library that provide the CI log files in a view that is styled nicely.

Eg ERROR levels log items are red, Debug is blue etc.

Anyone know of such a project kicking around?


Many thanks


  Can I run mysql query in constant.php file to make constant dynamic
Posted by: shaheb - 11 hours ago - Forum: Addins - No Replies

question could be funky, can I run mysql query into application/config/constant.php file to make constant dynamic or any proper way to make constant dynamic based on value coming from db.


  All CI4 files have outdated copyright.
Posted by: InsiteFX - Yesterday, 02:08 PM - Forum: CodeIgniter 4 Support - Replies (2)

@kilishan

Looking at the latest build files of CI 4 all of the copyright dates are still saying 2016.

These should be updated to 2017 in all CI 4 files.


  Upgrade from 3.07?
Posted by: sneakyimp - Yesterday, 12:57 PM - Forum: Installation & Setup - Replies (4)

I echoed CI_VERSION and get:

Code:
3.0.7-dev
I can't seem to find any instructions on upgrading to the latest 3.1. Should I just follow the 3.06 to 3.1 and then get on the path here?

Also, can anyone explain to me why the version numbering jumped from 3.0 to 3.1?


  Codeigniter database connection error
Posted by: bhanuteja4 - Yesterday, 08:13 AM - Forum: General Help - Replies (2)

Unable to connect to database in Codeigniter:

I have changed mysql to mysqli in database.php but unable to connect to database.

$active_group = 'default';
$query_builder = TRUE;

$db['default'] = array(
'dsn' => '',
'hostname' => 'localhost',
'username' => 'root',
'password' => 'administrator',
'database' => 'industry',
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => (ENVIRONMENT !== 'production'),
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array(),
'save_queries' => TRUE
);

A PHP Error was encountered

Severity: Warning

Message: mysqli::real_connect(): (HY000/2002): No connection could be made because the target machine actively refused it.

Filename: mysqli/mysqli_driver.php

Line Number: 201


  hi guys, need some help going on production
Posted by: maorz99 - Yesterday, 08:12 AM - Forum: General Help - Replies (2)

hi guys, 
hope you could help me out..
so i build a simple ci project and i'm moving it from the local host to my web host.
now i don't want to put all the project public right(public_html)?
so put it on the server as follows:

root:
--ci
   |-application
   |-assets
   |-system

--public_html
   |-index.php

i configured the index.php application and system folders.
but for some reason my css and scripts won't work
is there any way to link  my css and scripts without putting them on public?



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