1. Introduction to Salesforce Definition : Salesforce is the #1 Cloud-based CRM (Customer Relationship Management) platform that helps businesses manage relationships with customers, automate business processes, and analyze performance. Founded : 1999 by Marc Benioff. Type : SaaS (Software as a Service). Tagline : "No Software" – because everything runs on the cloud, without local installations. 2. Why Salesforce? Traditional CRMs were expensive and required servers, installations, and IT staff. Salesforce revolutionized CRM by moving everything to the cloud . Benefits: 🚀 Faster implementation ☁️ Cloud-based (accessible anywhere) 🔄 Customizable without coding (point-and-click tools) 🤝 Strong ecosystem & AppExchange (marketplace like Google Play for Salesforce apps) 🔐 Security & scalability 3. Salesforce Products & Cloud Offerings Salesforce is not just CRM; it has multiple clouds (modules) for different busine...
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
function __construct()
{
parent::__construct();
$this->load->helper('notice');
}
function index()
{
viewnotice();
}
?>
..............................................................................................................................................................
Library:-
It is similar to helper but it will be declared in OOP'S pattern. if we want to define secure and complex functionality then we can use the library.
CI provide multiple predefine library (session,form_validation,cart ) .
Step to create Library:-
1 Create File and Save it into the application/library folder.
2 Declare Library Using Class Pattern.
3 Call Library Under Controller Constructor or autoload.php
$this->load->library('libraryname');
4 Call Library Method under Controller Method
$this->LibraryClassname->Methodname()
Library Code:-
<?php
class Notice
{
function viewnotice()
{
echo "<marquee><h1 style='color:red;'>CI batch will be finished earlier hence prepare project</marquee></h1>";
}
}
?>
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
function __construct()
{
parent::__construct();
$this->load->helper('notice');
}
function index()
{
viewnotice();
}
?>
..............................................................................................................................................................
Library:-
It is similar to helper but it will be declared in OOP'S pattern. if we want to define secure and complex functionality then we can use the library.
CI provide multiple predefine library (session,form_validation,cart ) .
Step to create Library:-
1 Create File and Save it into the application/library folder.
2 Declare Library Using Class Pattern.
3 Call Library Under Controller Constructor or autoload.php
$this->load->library('libraryname');
4 Call Library Method under Controller Method
$this->LibraryClassname->Methodname()
Library Code:-
<?php
class Notice
{
function viewnotice()
{
echo "<marquee><h1 style='color:red;'>CI batch will be finished earlier hence prepare project</marquee></h1>";
}
}
?>
Comments
Post a Comment
POST Answer of Questions and ASK to Doubt