i am new to yii and i an trying to integrate the jquery plugin datatables into my yii application. Is there any blog or documentation available that shows me how to do this??
If you are already using Yii's version of jQuery, make sure it's compatible with the version of DataTables you are using. If not, you can use the jQuery CDN version or your own local version with a statement like:
Yii::app()->clientScript
->registerScriptFile('http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js')
->registerScriptFile(Yii::app()->baseUrl . '/path/to/datatables/script/datatables.js');
You can define where in your document it will be included with parameters: CClientScript::POS_HEAD, CClientScript::POS_BEGIN, CClientScript::POS_END
See: http://www.yiiframework.com/doc/api/1.1/CClientScript#registerScriptFile-detail
Related
I am new to Joomla . So far I have accomplished the following :
i need to add own custom PHP code file and fetch data using MySQL and display in Joomla web page article
Should i do with PHP and MySQL is there any recommended plugin available
Thanks
Jockham Reports will do that.
If you want more flexibility, you could also use a plugin like Sourcerer to put PHP directly into the article, then use JDatabase. Here is a good tutorial on it: JDatabase, Using the Joomla Database
I cannot locate any official help on the Laravel 5.2 docs, and the only way to use Form::model, and Form::open in my apps using Laravel 5.2 seems to use LaravelCollective.
Any ideas on what is the current best practice for form model binding in Laravel's latest version?
Since 5.0 Laravel Collection HTML & Forms became separated package which should be installed with composer.
If you're using Form or HTML helpers, you will see an error stating
class 'Form' not found or class 'Html' not found. The Form and HTML
helpers have been deprecated in Laravel 5.0; however, there are
community-driven replacements such as those maintained by the Laravel
Collective.
https://laravel.com/docs/master/upgrade#upgrade-5.0
I want to make a email template to use in Joomla back-end. does it possible? how?
I looked up at Joomla docs and didn't find my answer. I use Joomla 2.5.7.
Firstly upgrade your Joomla version to the latest 2.5.x version
As for the e-mail template, you will need to install a component that allows such a feature, like a Newsletter component. I personally would recommend JNews, however more can be found at the following link:
http://extensions.joomla.org/extensions/content-sharing/newsletter
Hope this helps
I've been learning how to work with CodeIgniter for a few weeks now, but I'm a little stuck on how to build a real application with it.
Are there any open source demo's that I could use to see how the flow works in there.
Couldn't find anything on Google.
Getting Started with CodeIgniter and How to Create All Those Great Apps:
Contains 12 easy to follow tutorials to build small apps!
4.1 Build an RSS 2.0 Feed with CodeIgniter
4.2 Generating PDF files using CodeIgniter
4.3 Building a Shopping Cart using CodeIgniter’s Shopping Cart Class
4.4 CodeIgniter Clan Site- Part1 & Part2
4.5 Validating Web Forms with the Code Igniter
4.6 A sample Facebook application with CodeIgniter
4.7 CodeIgniter and Ajax Using JQuery Tutorial
4.8 Real Live Search with Pagination
4.9 How to Update your Twitter Status with CodeIgniter
4.10 Codeigniter Event Calendar
4.11 Live search with CodeIgniter and Mootools
4.12 Creating a File Hosting Site with CodeIgniter
Get a look at the following scripts and apps created by CodeIgniter on hotscripts.com.
http://www.hotscripts.com/search/all-scripts/codeigniter
Please use this github project for demo Codeigniter CMS Aplication
https://github.com/daylightstudio/FUEL-CMS/tree/master/fuel
I looked around a bit and I found this site http://qoodles.phpfogapp.com/ it was built with codeigniter and the source code is on github: https://github.com/hush2/qoodles
Just a quickie. I have tested DOMPDF in a Doctrine enabled Codeigniter 1.7.2 installation and everything works fine. However, when the Cart library and URL Helper are autoloaded as well, DOMPDF doesn't work. BUT, if you 'un-autoload' (ie. dont use) any one of Doctrine, the URL Helper or the Cart Library, DOMPDF works.
Is just a bit annoying as I need DOMPDF, Doctrine, the URL helper and the Cart Library all working together.
Could anyone suggest anything please. Any help very gratefully recieved.
Regards,
Matt
mPDF is bloody brilliant and much much better than domPDF, it works in the same way too in that it reads in a html file with your php code placeholders or whatever to add the dynamic content. I have written a small tutorial on how to use it with Codeigniter if you need it.
If you're using DOMPDF 0.5.1 you could be running into conflicts between the __autoload() methods used by the various libraries. The 0.6.0 code base (currently in beta) has been updated to use spl_autoload_register() which helps to prevent auto-loading conflicts between different libraries.