I have a problem to integrate the zend framework 2 (i want use the barcode class) in CI 2.1.3.
This is the tutorial i used
http://www.beyondcoding.com/2008/02/21/using-zend-framework-with-codeigniter/
but this error massage is shown after I load the barcode zend class ($this->zend->load(‘Zend/Barcode/Barcode’))
Error:Fatal error: Class ‘Zend_Barcode’ not found
So far I found no answer at google….
The tuts are only for older versions…
There must be something wrong with the path
ini_set(‘include_path’,
ini_get(‘include_path’) . PATH_SEPARATOR . APPPATH . ‘libraries’);
require_once(): Failed opening required ‘Zend/Barcode.php’ (include_path=’.;C:\\\\xampp\\\\php\\\\PEAR;application/libraries’)
and if i you use require direct i got this error: Class ‘Zend_Barcode’ not found.
Do you have any solution for this problem?
]]>A new stable version of No-CMS has been released today, 0.6.0 rev 1, Codename: Ishoni.
You can just download it for free, and start your new adventure.
So, what are you waiting for? Get it for yourself, and do your job fastly, painlessly ....
]]>I would like to announce the release of ‘flexi auth’, a user authentication (login) library.
The flexi auth library initially started out as a modified version of the popular Ion Auth library.
As the original library was tweaked with feature after feature being added, the original code base had transformed into a new library all of its own.
For those that have used the Ion Auth library, the general structure of the library may be familiar, but to help anyone wanting to get a running start with using flexi auth, there is an comprehensive user guide and demo covering every function within the library.
The flexi auth library includes the following core features:
Core Functions
+ User registration, with options to send an activation email, auto activate or suspend an account pending review by an admin.
+ Login function including a ‘Remember me’ option.
+ Logout function, with the option to log a user out of all computers they are logged into, or just the current computer.
+ User permission validation functions to check a users user group, privileges and login status.
+ Functions to reset forgotten passwords.
+ Functions to validate a users change of email address.
+ Password validation helper functions.
+ Many functions for obtaining user data stored within the database.
+ Admin CRUD functions to manage records within the libraries database tables.
Security
+ Passwords are hashed using the popular PHPASS library.
+ Login sessions are managed via a hashed session token technique as described by Barry Jaspan.
+ Users making multiple failed login attempts can be set to have any further login attempts throttled by preventing them from making any further attempts for a short definable time period.
+ Googles reCAPTCHA or a custom math based question and answer CAPTCHA can be deployed to login and registration forms.
Miscellaneous
+ The library includes fully customisable email templates for account activation, forgotten password, new password and validate updated email.
+ Multilingual and customisable status and error messages.
Highly Customisable
+ A highly configurable config file allows you to customise how features within the library behave, ranging from password validation to login session expiry settings.
+ All database tables and column names are renamable via just one config file setting to match whatever name coding convention you prefer.
+ The library consists of only 5 tables to provide every feature within flexi auth.
+ Unlimited additional custom tables can be added and related to the core library tables, allowing you to capture whatever data you require.
+ The 5 core library tables can be modified with the addition of new columns that can then be managed via library functions.
The purpose of the flexi auth library is to offer modularised user authentication features, that allow a developer to pick and choose which features they require, without having to include features that are surplus to the clients requirements.
The library, documentation, and a comprehensive live online demo are available from the flexi auth site.
http://haseydesign.com/flexi-auth
The work on the library started well over a year ago and has been used for some of my own client sites.
I would now like to release the code to the public so that others can also make use of it.
Enjoy =)
P.s. If anyone particularly likes the style of this library, I have also built a comprehensive shopping cart library called ‘flexi cart’. Like the flexi auth library, it is highly customisable including features like shipping, taxes, discounts, reward points, multiple currencies, localisation plus much much more.
The flexi cart library is available from http://haseydesign.com/flexi-cart
A very basic lightweight but powerful Ajax Framework that complements Codeigniter
New Download Location:
Download here
Current Version 5.0-RC3.zip
https://sourceforge.net/projects/cjax/files/CodeIgnater/
Docs/Wiki
http://codeigniter.com/wiki/Ajax_Framework_For_CodeIgniter
Download Plugins
https://sourceforge.net/projects/cjax/files/Plugins/
Old Download Location (reference)
http://code.google.com/p/ajax-framework-for-codeigniter/downloads/list
This framework separates your normal controllers from your ajax controllers (don’t you think it is a mess to have them all in the same place?.
I would like to announce the release of ‘flexi cart’, a comprehensive shopping cart library for CodeIgniter.
Whilst CodeIgniter does indeed come with its own cart library, the library is quite basic in functionality and is only aimed at creating simple e-commerce stores.
The flexi cart library includes the following features:
Shipping
+ Base available shipping options and charges on a customers location.
+ Calculate shipping charges based on the weight and value of an order.
+ Include or exclude specific shipping options from discount offers.
+ Set shipping charges for specific items purchased from the store.
Example: Item A ships free of charge, Item B ships for $10 on top of the carts standard shipping charge.
+ Ban specific items from being shipped to specific locations.
Taxes
+ Base available tax rates on a customers ‘billing to’ or ‘shipping to’ location.
+ Define specific tax rates for specific items in the cart.
+ Customers can toggle whether to show cart prices include or excluding taxes.
Localisation
+ Setup locations like countries, states, cities, post/zip codes to even specific streets and door numbers.
+ Locations can be grouped into zones, where rules can then be applied to all locations within a zone, rather than setting the rule for each location.
Discounts and Reward Points/Vouchers
+ Setup complex rule conditions for specific items and groups of items that are added to the cart based on customer location, cart/item value, item quantities and whether other items are present within the cart.
+ Define how tax should be applied to specific discounts. E.g. Whether tax should be applied before or after the discount is applied.
+ Allow customers to earn reward points from purchasing items that they can then later exchange for a discount voucher.
Plus many more features…
+ Multiple currencies
+ Item stock control
+ Surcharges
+ Save/load incomplete carts for later shopping
+ Multilingual custom status and error messages
+ Currency and weight conversion tools
The purpose of the flexi cart library is to offer modularised shopping cart features, that allow a developer to pick and choose which features they require, without having to include features that are surplus to the clients requirements.
flexi cart is flexible enough to be used to create simple 10 item ecommerce stores, up to creating huge online stores rivaling the functionality of ecommerce giants like Magento, Opencart and X-cart. The tools are provided, you just have to put them together.
The library, documentation, and a comprehensive live online demo are available from the flexi cart site.
http://haseydesign.com/flexi-cart
The library has been a long time in the making and has been used for some of my own client sites.
I would now like to release the code to the public so that others can also make use of it.
Enjoy =)
P.s. If anyone does particularly like the style of this library, I have also built a user authentication system that was originally based on Ben Edmunds popular Ion Auth library.
The ‘flexi auth’ library is highly customisable like flexi cart including features like PHPASS password hashing, Google reCaptcha, user groups and privileges, plus much much more.
The Country Names are coded in ISO 3166-1 alpha-2.
The usage is really simple:
# Load the helper
$this->load->helper("flags");
# echo the dropdown select
# @param string $field_name = is the name of the field.
# @param string $country_selected = is the default value for the field.
echo select_countries('flags', 'pa');
You can use and abuse it and you can find the code at GitHub
]]>i am using codeigniter to send emails.
but in one webmail agent (centrum.sk) there is bad encoding.
All other emails in this webmail agent are good except my from codeigniter
Everywhere i setted up UTF-8 charset.
this config i am using:
$config['mailtype'] = 'html';
$config['charset'] = 'utf-8';
$config['crlf'] = "\r\n";
$config['newline'] = "\r\n";
i also set http headers to utf-8
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
.
all script files are utf-8 encoded - checked in notepad++
database connection is utf-8
database collation is utf8_general_ci
here is the mail header
Delivered-To: xxxx
Received: from ironport4.centrum.cz (unknown [10.32.3.102])
by gmmr7.centrum.cz (Postfix) with ESMTP id 362D98036967
for <xxxxx>; Wed, 15 May 2013 17:49:18 +0200 (CEST)
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AuUEAJmrk1ElCayHf2dsb2JhbABbgkMCBXSCdUe+GBYOAQEJDQoIFCiCSR0BAQcxEwEEAwM+AkJBh38IkEKaMXKDTQEFjWAGjzuCLIEThzuRJIRhjkY
Received: from mailout-6.websupport.sk ([37.9.172.135])
by mx.centrum.cz with ESMTP/TLS/ADH-AES256-SHA; 15 May 2013 17:49:17 +0200
Received: from lb2.websupport.sk (localhost [127.0.0.1])
by smtp-cf.websupport.sk (Postfix) with ESMTP id C79B610033E8
for <xxx@centrum.sk>; Wed, 15 May 2013 17:49:17 +0200 (CEST)
Received: from xxxx (data16.websupport.sk [37.9.168.12])
(Authenticated sender: xxxxxx)
by mail1.websupport.sk (Postfix) with ESMTPA
for <xxxxxx>; Wed, 15 May 2013 17:49:17 +0200 (CEST)
User-Agent: CodeIgniter
Date: Wed, 15 May 2013 17:49:17 +0200
From: "xxx" <xxx>
To: xxxxx
Subject: =?utf-8?Q?xxx_-_nov=c3=a1_spr=c3=a1va?=
Reply-To: "xxxx" <xxxx>
X-Sender: xxxx
X-Mailer: CodeIgniter
X-Priority: 3 (Normal)
Message-ID: <5193ae7dacf87@xxxx>
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="B_ALT_5193ae7dacfc8"
X-Virus-Checked: Checked by ClamAV on lb2.websupport.sk
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xxxx; s=mail;
t=1368632957; bh=i8TpiTscCjUX9qzPwAOxdWqMG1OgAMMuQM69n2/BZiA=;
h=Date:From:To:Subject:Reply-To;
b=JNKqLk0N+iApK0tspdAvj+ezErBymJSpLf3H/mql2rUMJJWPo7+BsuBsUBGTpZtpE
T3EPlRPdiPe4qTQIn0RQI27XhYpP7LYNCpwbwfQhTwDnB7r4LJcToN2omleyaufGgX
qRK345TXQGC8rBn5Qx+gSzKAVYsTBw1+IapHZoOc=
This is a multi-part message in MIME format.
Your email application may not support this format.
--B_ALT_5193ae7dacfc8
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Download the Latest Version Here
View the change log and the upgrade process
Having issues? Please look through the Troubleshooting Guide & FAQs
View the Complete Manual
Search the Manual
(Due to the server’s caching configuration, you may need to forcibly refresh your browser to see the changes in the manual.)
DataMapper (DM) is an Object-Relational Mapper that builds on ActiveRecord. Data is loaded from database tables into objects, and relationships can be managed through simple, easy-to-read functions.
To install DataMapper ORM, the (fairly simple) upgrade process is described here.
DataMapper offers these features:
• Everything is an object!
• Easy to setup, easy to use.
• Custom Validation on object properties.
• Lazy Loading (related objects are only loaded upon access).
• Relations and their integrity are automatically managed for you.
• One to One, One to Many, and Many to Many relations fully supported.
• Select data in the style of Active Record (with or without Method Chaining).
You can learn much more from the manual.
———————————————————————————————————
Version 1.8.2:
* New Features
o Backported the DataMapper 2.0 bootstrap to get access to core classes in CodeIgniter version 2.0.3 and above.
o Changed the way watched methods are processed. This allows extensions to replace core methods.
o Add support for an absolute path for “extensions_path”.
o Added a all_to_single_array() method to the array extension.
* Bug Fixes
o Added a default for nestedsets root field name as described in the documentation.
o Fixed ignoring model configuration properties with a NULL or FALSE value.
o Fixed broken trans_status() method.
* Other Changes
o Improved the way the available model paths are determined.
o Several corrections to the documentation.
This version introduces a bootstrap loader that needs to be installed in your index.php file, and will allow DataMapper to access CodeIgniters protected core methods and properties, while keeping CodeIgniters core extension mechanism operational (DataMapper does not introduce MY_ versions of libraries).
Make sure to check out the changelog — you won’t want to skip this update!
————————————————————————————————————————
Bug reports and feature requests:
DataMapper has moved to Github for the development of version 2.0. Please use the issue register / bug tracker on github to report new bugs or for new feature requests. If you do, please include in your description is link to the thread on this forum discussing the issue (if possible), so I have a link between the two and can keep track of all issues.
————————————————————————————————————————
Older Discussions: Version 1.8.1, Version 1.8.0, Version 1.7.1, Version 1.6.2, Version 1.5.4, Version 1.5.3 and older.
Thanks goes to Overzealous, for all he has achieved with DMZ. And to stensi, for providing such an amazing code base to work on.
]]>CodeIgniter version 1.7 is no longer supported.
]]>