Jump to content
Stef's Coding Community

longki

Member
  • Content Count

    25
  • Joined

  • Last visited

Community Reputation

0 Neutral

About longki

  • Rank
    Member
  1. Hello, I'm using codeigniter to construct my website. And, there is something strange. when I open this : http://localhost/kamarlpoas/news/blog/rik_maslao_aslku_huner_as_smaio/1/1/1/1/1/1/1/1/12/12/23/3/23/3/23/23/23/34/3/31 It will open http://localhost/kamarlpoas/news/blog/rik_maslao_aslku_huner_as_smaio So, in this case, my website ignore /1/1/1/1/1....etc My Question, how to make if someone open "http://localhost/kamarlpoas/news/blog/rik_maslao_aslku_huner_as_smaio/1/1/1/1/1/1/1/1/12/12/23/3/23/3/23/23/23/34/3/31", it will go to show_404 ?
  2. Thanks Ben. I've understood has used my own library :cheers:
  3. Hello, i try to make an Ajax pagination, but I got error. Here is my code : Here is My Panel Controller : <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Panel extends MY_AuthController { public function __construct() { parent::__construct(); $this->load->model("paneldata"); } public function index() { $this->load->view('template/header/panel.php'); $this->load->view('containt/panel.php'); $this->load->view('template/footer/panel.php'); } public function general_post($awal = 0) { $this->
  4. I'm sorry Ben, I still do not understand enough to construct my own Library. I have used some instruction in your link, and get nothing. Here is my code. I think it's so tedious and troublesome to use this method. Here is my core controller <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class MY_HeaderController extends CI_Controller { public function __construct() { parent::__construct(); if(!($this->uri->segment(1))) { $this->data['tithead'] = 'Home - Paluadv'; }else if($this->uri->segment(3)){ if($this->u
  5. Sorry, "Template" here is a helper ? as what i've understnad, in the template we have some functions that call menu1 (Menu that can be seen by user : Home, About, Contact Us, Gallery), and the other function is function that call menu2 (Menu that can be seen by admin : Home, About, Contact Us, Gallery, Settings).
  6. Hello, I just used Codeigniter here. And i'm just a beginner. In this case, i want to make a homepage. If guests open the homepage, the main menu will be : -Home -Gallery -About -Contact Us But, if admin open the homepage (After log in), the main menu will be : -Home -Gallery -About -Contact Us So, I tried to use this code FOR EACH CONTROLLER : public function index() { $this->load->helper('html'); $this->load->helper('url'); if($this->session->userdata('logged_in')) { $session_data = $this->sessio
  7. longki

    Php Framework Vs Cms

    That's the answer.. Thanks Ben.. Thanks so much.. your parable makes me understand
  8. longki

    Php Framework Vs Cms

    Sorry, I mean CMS ..
  9. longki

    Php Framework Vs Cms

    What kind of Web application that Joommla can't make, but PHP framework can ?
  10. What is the advantages and disadvantages of using CMS like joomla, wrodpress ? What is the different with using PHP framework?
  11. longki

    Laravel

    Hello Ben, it's simple question.. i Can't attach CSS Style in Laravel.. i'm so confuse, where is the precise place to save the css style ?
  12. longki

    Laravel

    Hello Ben, i've red the article that you gave to me.. Btw, i'm little bit confuse about this..
  13. longki

    Laravel

    Hello Ben, sorry for bothering you many times i have 1 question here.. 1. I have red about Filter in Laravel guide in http://palusport.com/l4.pdf (in page 20).. I don't quite understand about this code : Route::get('user', array('before' => 'old', function() { return 'You are over 200 years old!'; })); that I don't understand, what is the use of "Before" (There is After Function also) ? for example, i run this on my browser : http://localhost/public/index.php/user, it will be redirected to home.. i Know that, because inside filter.php, i found this : Route::filte
  14. longki

    Laravel

    http://palusport.com/l4.pdf This is the article that i read..
×
×
  • Create New...