Skip to main content

Posts

Showing posts matching the search for codeigniter

Hooks in Codeigniter

Hooks in Codeigniter:-   Hooks are used to providing an implicit event method that will be called during the application flow cycle. for example, if we want to call functionality under before System load, System unloads, Before Constructor, after constructor then we can use hooks. Codeigniter Provide Multiple hooks point to define the application functionality. CI provides multiple hooks point to write functionality. The following is a list of available hook points. pre_system:-  call before application load pre_controller:-  call before controller load post_controller_constructor: -  call with constructor initialization post_controller  Called immediately after your controller is fully executed. display_override  Overrides the  _display()  method, cache_override  Enables you to call your own method instead of the  _display_cache()  method in the  Output Library . post_system  Called after the final ren...

User Define Helper and Library in Codeigniter

Helper:- It is used to contain predefine functionality under a Codeigniter application. Codeigniter provides cookie, URL, etc helper to provide features. Helper always will be declared as a procedural pattern. If we want to provide common features in an application then we can create a helper. Step to create helper:- 1 create helper file under application/helper directory 2 _helper must be declared under filename as a suffix   filename_helper.php 3 define function under the helper file as a procedural pattern.   function functionname()   {   } 4 load this helper file in autoload.php  or constructor  $this->load->helper('helperfile') 5 Call helper under the controller method. helper file code:- <?php function viewnotice() { echo "<marquee><h1 style='color:red;'>CI batch will be finished earlier hence prepare project</marquee></h1>"; } ?> Controller:- <?php  functi...

Today Jobs Vacancy For JAVA, PHP,.NET CODEIGNITER, NODE JS, QA and more.

JOB VACANCY  IN MNC'S (IMPETUS, GALAXY WEBLINKS, YASH TECHNOLOGY) ON JAVA, PHP, .NET, QA, NODE JS. I Am Posting Job Updates For You With My Professional references , You can apply according to your skills. Email and mobile are mentioned on Job Post Banner , You can share this post to other JOB SEEKERS for there better future. You have to mail your resume,   HR  email  mentioned below or you can visit the company website. Subscribe our blog to get more JOB ALERTS . I am providing information to all Job seekers freely . If you want to prepare for technical interview, project work, learn new technologies then you can freely call Shiva Concept Placement cell 7805063968,0731-4069788,4907880. 

Session and Cookies in Codeigniter?

A session is a persistent object that is used to retain data of an application after server response under browser cookie. Session data can be accessed into multiple web pages directly hence it is also called a global variable of PHP. In Codeigniter session has been defined under the predefine library hence first we load the session from the session library under autoload.php or constructor of controller. before use session encryption key should be set on the config.php file for security concerns. Syntax of session to set data in the session $this->session->set_userdata('key','value'); to get data from the session $this->session->userdata("key"); to destroy session data if we destroy particular data then we can use this -> session -> unset_userdata ( 'some_name' ); $this->sessio->sess_destory(); We should always set sessions under the login page and they should be verified under the dashboard page. A session is used to provide i...

What is Codeigniter

What is Codeigniter:- it is an MVC framework that is used to distribute the code in a layered architecture . M means Model which is used to provide d atabase connectivity operation. V means View:-  it will contain the design layer of an application using HTML, CSS, JS, and Jquery. C means Controller:- it will contain the Program Code or Program Logic of an application. it is a start-up layer of an application. MVC is a design pattern to distribute the project on multiple project layers. The flow of MVC:-                             2  1                          View Controller ->                             3                             Model means the first controller will be load...

Ajax Tutorials in Codeigniter

Ajax Implementation in Codeigniter Ajax means Asynchronous Javascript and XML, it is used to partially update the content of a web page excluding complete web form. Ajax improves the performance of web application and provide dynamic programming approach without reloading and submit the data. for example, if we create a registration form and we want to check that email already exists when user switches to next text field then we can create ajax code to check the email id. when we select country then the state list and when we select the state then the city list will be populated by AJAX. when we search from Facebook or Google search box then data will be populated when we press any key that will be managed by Ajax. Role of JavaScript or Jquery:- It is used to handle the event in Ajax Process, which means if we select a dropdown list and display data into another dropdown list will be managed by AJAX. Role of XML:- XML means Extensible markup language which is us...

Recent Job vacancy for Java Developer, PHP, Python, QA, REACT, NODE, BDE Profile

Recent Job Vacancy for Java Developer, PHP, Python, QA, REACT, NODE, BDE Profile Many companies hiring at this critical time, It is a great opportunity for you. If you want to update your skills or learn any programming, designing,technology then you can freely  contact us at 7805063968,0731-4069788,4907880

Cart Library in Codeigniter

Using this we can create Shopping cart features in an application. CI Provide cart library to implement this functionality. Step to Implement Card Functionality:- 1)  Create Controller 2 ) Load cart library under Controller Constructor $this->load->library('cart') 3) Create Controller  Index method and Add Multiple Items into cart 4) Create View  and show cart content Complete Code of Cart:- <?php class Shoppingcart extends CI_Controller {  function __construct()  {   parent::__construct();   $this->load->library('cart');     }      function index()      {       $this->cart->destroy();        $data = array(         array(                 'id'      => 'sku_123ABC',         ...

Create Test Case for following Test Scenerio of Live Project

I am creating a Test Scenario to implement the Integration Testing of the EroomRent application. Test Scenario for Component Testing:- 1)  Test header component of EroomRent.in Guest 2)  Test footer component of EroomRent. as a Guest 3)  Test Search component of EroomRent.in 4)  Test Registration and login of Tenant 5)  Test Registration and login of Owner 6)  Test Contact us page of EroomRent 7)  Test Owner Dashboard Section 8) Test Add room and View Room  option of Owner Dashboard  9)  Test Tenant Login ----> Search(Recently added room)  --- Listing ---> Booking --->Logout--> Owner Login ---> View Booking  (Test only valid data) 10)  Test Tenant Dashboard 11)  Test Booking Options of Tenant Dashboard 13)  Test Registration and login of Broker 14)  Test Add Room and View Room Options to Broker 15)  Test View Booking Options to Broker 16)  Test Edit Room options to Broker Integration...

Learn programming from home by Shiva Concept Digital Platform only at 800 RS .

Learn programming from home by Shiva Concept Digital Platform only at 800 RS:-. We are the first learning portal in the world that provides all course accessibility in single course booking in just 800 RS. Now Shiva Concept Solution Provides Digital Courses for various programming languages Java, PYTHON, PHP, Software Testing,C#,ASP.NET, Codeigniter, Selenium Automation Testing, Django, WordPress, Advanced Java, etc. Using this digital platform you can learn programming languages from home by Shiva Concept Solution Training team only at 800 RS  for new students and 500 RS for Shiva Concept Registered Students with all course accessibility in Single package. This offer is valid for a limited time, this is specially offered for lockdown period to help students to learn or revise programming languages from home. No one can provide all course accessibility in 800 RS .means you can register for Core Java then access Advanced Java, Python, PHP, Designing all course accessibility. Click...

Ajax Example With Country ,State and City in Codeigniter

1)First Create database and Table Complete Code of Controller:- <?php class AjaxExample2 extends CI_Controller {    function __construct()    {     parent::__construct();     $this->load->model('stumodel');    }    function index()    {       $data['r'] = $this->stumodel->getCountry();     $this->load->view('countryview',$data);    }    function searchdata($id)    {                   $data['res']=$this->stumodel->statesearch($id);             $this->load->view('stview',$data);    } } ?> Complete Code of Model <?php class Stumodel extends CI_Model {     function __construct()     {     parent::__construct();     $this->load->database()...

How to create form to take input from user's in CI

How to create a form to take input from user's in CI:- 1:-   Create Controller and define  index() 2     Create view file and design form for simple interest (3 text field,1 submit button with form tag) 3  write form action with the controller method name     <form action="<?php echo site_url(); ?>/Controllername/methodname" method="post">    </form> 4 load view under index() of controller 5 create an action method to write code on the controller 6 define  url helper to use base_url() in application/config/autoload.php 7 set route Program Code Controller <?php class SI extends CI_Controller {     function index()     {       $this->load->view('siview');     }     function silogic()     {     //$p= $_POST['txtp'];     //$r= $_POST['txtr'];     //$t =$_POST['txtt']; ...

Database Connectivity in Codeigniter with MYSQL Database

Database connectivity from MySQL to CI? ......................................................................................... steps1st:- create database and table from MySQL database using PHPMyAdmin step2nd:- open project folder and edit config/database.php and edit username, password, database username=root password=' ' database= dbname step3rd:- create controller and load view and create an action method in the controller step4th create view form according to the table in the view file step5th create a model class and define a method for data insertion under the model folder class Modelname extends CI_Model {       function methodname()       {       }    } step6:- load database.php file under model class constructor function __construct() {    parent::__construct();    $this->load->database(); } step7:- create a method on the model and write data i...

Recent Job Details for QA,WEB DEVELOPER,ANDROID,JAVA,PYTHON and PHP Web Developer

Job Vacancies  for QA, WEB DEVELOPER, ANDROID, JAVA, PYTHON and PHP Web Developer In Company like TCS, IMPETUS I am posting some job updates for you with my professional references, you can apply according to your skills. Email and mobile are mentioned on Job Post Picture.you can share this post more to apply other job seekers. You can mail your resume to the mail of HR mentioned below or you can visit the company website. Subscribe our blog to get more job alerts. I want to provide information to all Job seekers freely. If you want to prepare for technical interview, project work, learn new languages then you can freely call Shiva Concept Placement cell 7805063968,0731-4069788,4907880. 

Rails Framework

 Rail is a framework of ruby language that is used to create complete web applications and Restful API for mobile applications. It is an open-source web framework that follows the MVC design pattern, MVC means Model, View, and Controller. Model is used to create data access layer, the view is used to created user access layer and controller is used to create business access layer and application intermediate layer. MVC flow is different from their name because the first controller layer will start the application after that model and the view layer will be loaded. MVC is the modern design pattern, that follows by many application technologies. SPRING MVC in JAVA, ASP.NET MVC for .NET, Laravel and Codeigniter for PHP, DJANGO for Python, and Rail for Ruby. Rails Architecture:- How to install ruby:- gem install rails

PHP Introduction, What is PHP?, Scope of PHP

PHP means a Personal Home Page, It is a server-side script-based language that is specially designed to create a dynamic web application. but now PHP is professionally known as Hypertext preprocessor. Hypertext:-  PHP provide text within tag with a complete block that is Hypertext block . <?php ?> here <?   ?> is called Hypetext block Preprocessor:-  All in-built or predefined functionality will be integrated by default under PHP Hypertext block, no need to import header files and library separately. The server-side script will be executed by Web Server and communicate with the Database server for dynamic application development. For example, PHP is a Server-side script which will be executed by Apache Server and communicate with MYSQL Database , Oracle Database , MS-SQL , MongoDB, PostgreSQL , etc PHP is open-source and free source web technology that provides multiple Web Framework( Codeigniter, Laravel, YI, CakePHP, etc ) and CMS ( Content Manageme...

Which programming language is best , after lockdown

Which programming language is best, after lockdown:- Corona is measure natural disasters in a world, we already know that our software development work is depended on the USA, Australia, Britain Country. We all know the USA share is about 80% in IT Industry hence Software development field will be definitely affected by COVID-19. It is 100% true. But you should never be feared with your career in IT, IT demands will be increased because now 70% of users will prefer online work for everything, it can be a new opportunity for IT students, learners, and Jobseeker. You should learn technologies in-depth only basic knowledge is not enough. Computer degree Btech ,  MCA is not enough for you .  You  should have good technical skills and expertise in any programming language . Many students satisfy with the current time and they are enjoyed ,  misused this time . it can harmful to your career ,  Enjoyment is best for happiness but if you want to groom in your career the...