You should activate extension=
Saturday, August 9, 2014
Fatal error: Call to undefined function bindtextdomain() in
You should activate extension=
Wednesday, August 6, 2014
What are the differences between SVN and Git?
SVN repositories are similar to Git repositories, but there are several differences when it comes to the architecture of your projects.
Directory structure
Each reference, or labeled snapshot of a commit, in a project is organized within specific subdirectories, such as
trunk
, branches
, and tags
. For example, an SVN project with two features under development might look like this: sample_project/trunk/README.md
sample_project/trunk/lib/widget.rb
sample_project/branches/new_feature/README.md
sample_project/branches/new_feature/lib/widget.rb
sample_project/branches/another_new_feature/README.md
sample_project/branches/another_new_feature/lib/widget.rb
An SVN workflow looks like this:
- The
trunk
directory represents the latest stable release of a project. - Active feature work is developed within subdirectories under
branches
. - When a feature is finished, the feature directory is merged into
trunk
and removed.
Git projects are also stored within a single directory. However, Git obscures the details of its references by storing them in a special .git directory. For example, a Git project with two features under development might look like this:
sample_project/.git
sample_project/README.md
sample_project/lib/widget.rb
A Git workflow looks like this:
- A Git repository stores the full history of all of its branches and tags within the .git directory.
- The latest stable release is contained within the
master
branch. - Active feature work is developed in separate branches.
- When a feature is finished, the feature branch is merged into
master
and deleted.
Unlike SVN, with Git the directory structure remains the same, but the contents of the files change based on your branch.
Including subprojects
A subproject is a project that's developed and managed somewhere outside of your main project. You typically import a subproject to add some functionality to your project without needing to maintain the code yourself. Whenever the subproject is updated, you can synchronize it with your project to ensure that everything is up-to-date.
In SVN, a subproject is called an SVN external. In Git, it's called a Git submodule. Although conceptually similar, Git submodules are not kept up-to-date automatically; you must explicitly ask for a new version to be brought into your project.
Here are some external resources that explain the differences in more detail:
Tuesday, June 3, 2014
Validate Email address using php built-in function
Use the filter_var() function.
A common task your web app might need to do is to check if a user has entered a valid email address. You'll no doubt find online a dizzying range of complex regular expressions that all claim to solve this problem, but the easiest way is to use PHP's built-in filter_var() function, which can validate email addresses.
Example
1
2
3
4
| <?php filter_var( 'sgamgee@example.com' , FILTER_VALIDATE_EMAIL); // Returns "sgamgee@example.com". This is a valid email address. filter_var( 'sauron@mordor' , FILTER_VALIDATE_EMAIL); // Returns boolean false! This is *not* a valid email address. ?> |
Further reading
Monday, February 10, 2014
can't install PDT for eclipse kepler
1) Go to help->install new software->select (--All available sites--) for work with.
2) tick the php developmet tools (PDT) in programming languages.
3) next
4) Finish
5) Restart
when you selected another item in work with drop down, then php perspective not loading.
then again you want to go help -> install new software -> click already installed link
uninstalled PDT and try again.
2) tick the php developmet tools (PDT) in programming languages.
3) next
4) Finish
5) Restart
when you selected another item in work with drop down, then php perspective not loading.
then again you want to go help -> install new software -> click already installed link
uninstalled PDT and try again.
Tuesday, February 4, 2014
How to View Module Positions in a Joomla 2.5 Template
You can use any theme on your Joomla hosted website. Joomla 2.5 themes are used not only to define the style of a webpage, but also to define how the page is laid out. For example, it is because of how a specific template is setup that certain items show in the footer of a page, or in the left / right sidebars.
It also makes sense that modules are the only Joomla extensions that are assigned to module positions. For example, when you install a component or a plugin, they do not need to be assigned to a module position.
When working on your Joomla 2.5 site, there may be times when you need to move modules to different parts of the page. Each module is shown in a "place holder", and these place holders are referred to as positions. To move a module to a different position, you'll need to know where each position is set in the template. For example, the footer may have a position labeled as "position-14". You need to know this position name before you can move a module to it.
It also makes sense that modules are the only Joomla extensions that are assigned to module positions. For example, when you install a component or a plugin, they do not need to be assigned to a module position.
When working on your Joomla 2.5 site, there may be times when you need to move modules to different parts of the page. Each module is shown in a "place holder", and these place holders are referred to as positions. To move a module to a different position, you'll need to know where each position is set in the template. For example, the footer may have a position labeled as "position-14". You need to know this position name before you can move a module to it.
To view where module positions are configured within a template:
- Log into your Joomla Dashboard
- In the top menu, under Extensions click Template Manager
- In the top right, click the Options button
- Set Preview Module Positions to Enabled and then click Save & Close
- Click the Templates tab
- Next to the template you would like to view the structure of, click Preview
- A new window will open and it will outline the structure of the template. It may be hard to see, but you should see areas labeled similar to position-12 and position-7
Wednesday, January 29, 2014
simple Jquery in progress image
//start function
function update_consignement_in_details() {
$('#msg_div').html('<img width="20" height="20" src="'+CI.base_url+'images/b_loading.gif">');
$('#msg_div').show();
//function content
$('#msg_div').css("color", "green");
$('#msg_div').html('Cosignment-In updated successfully');
}
function update_consignement_in_details() {
$('#msg_div').html('<img width="20" height="20" src="'+CI.base_url+'images/b_loading.gif">');
$('#msg_div').show();
//function content
$('#msg_div').css("color", "green");
$('#msg_div').html('Cosignment-In updated successfully');
}
How to update a JOINed tables using Codeigniter's Active Record?
Codeigniter active record doesn't allow to update a joined tables.
After trying various method and searching the solution, I have found the following solution which does the exactly same thing i.e. update the multiple join tables. By using following method, you can update multiple table using codeigniter active record.
After trying various method and searching the solution, I have found the following solution which does the exactly same thing i.e. update the multiple join tables. By using following method, you can update multiple table using codeigniter active record.
$this->db->set('a.firstname', 'Pekka'); $this->db->set('a.lastname', 'Kuronen'); $this->db->set('b.companyname', 'Suomi Oy'); $this->db->set('b.companyaddress', 'Mannerheimtie 123, Helsinki Suomi'); $this->db->where('a.id', 1); $this->db->where('a.id = b.id'); $this->db->update('table as a, table2 as b');
Subscribe to:
Posts (Atom)