A PHP Error was encountered

Severity: Warning

Message: fopen(/tmp/ci_session2fa1f63d3894f89db24ae2a4b871aab6): failed to open stream: Disk quota exceeded

Filename: drivers/Session_files_driver.php

Line Number: 156

Backtrace:

File: /home/s949hbuup34l/public_html/webphplearn.com/index.php
Line: 292
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_start(): Failed to read session data: user (path: /tmp)

Filename: Session/Session.php

Line Number: 140

Backtrace:

File: /home/s949hbuup34l/public_html/webphplearn.com/index.php
Line: 292
Function: require_once

How and Why to create filter in angularjs , How to create filter in angularjs
Apply for Zend Framework Certification Training

AngularJs




In this blog we will see how to create filter 

Step 1  Filter will be created outside controller 
   myapp.filter('mydate', function ($filter) {
    return function (input)
    {
        if (input == null) {
            return "";
        }
        var dd = input.split(' ');
        var _date = $filter('date')(dd['0'], 'dd-MM-yyyy');
        return _date.toUpperCase();
    };
}); 

In this filter we have created an filter to change Date format 
received from Database using PHP and to Change Date Format at
FrontEnd 


myapp.filter('getFirstWord', function ($filter) {
        return function (input)
        {
            
            //content = content.substring(0, maxCharacters);
            var dd = input.split(' ');
            
            if(dd[0].length >=10)
            {
                return dd[0].substring(0, 10)+" "+"...";
            }
            if(dd[0].length <10)
            {
                return dd[0]+" "+"...";
            }
        };

    });                                    

< Daily expense Listing of Data From Database and models In ZendFramework2 >



Ask a question



  • Question:
    {{questionlistdata.blog_question_description}}
    • Answer:
      {{answer.blog_answer_description  }}
    Replay to Question


Back to Top