Archive for the ‘Yii’ Category
In my recent project there are quite many tasks that run in the background – generate thumbnails, detect colours on the pictures, run DB updates etc. Sure, all that is handled using cron and Yii commands. However there is a little problem. Consider we have DB update routine that should import new stock data from the datafeed. Datafeed is uploaded hourly, but upload can’t be scheduled to minutes – connection speed, different errors may interrupt the upload. On the other hand, sometimes processing takes 5 mins and sometimes – a few hours because in the first variant we just replace records and in the latter – download images for the new products.
Continue reading ‘Concurrent process management in Yii’ »
Posted by Konstantin Mirin on March 25, 2010 at 09:31 under PHP, Programming, Yii.
Tags: experiece, extension, tip, trick, Yii
7 Comments.
Yesterday I’ve read a post on The Developer’s Day blog. Then tested this thing in Yii. There is a jQuery in my application, so I created test controller and test action, that only outputted “Hello, world” and called it from the firebug console Continue reading ‘Speeding up Yii or why should you use DB sessions’ »
Posted by Konstantin Mirin on March 5, 2009 at 06:02 under Databases, PHP, Yii.
Tags: DB, production, session, tip, trick, Yii
18 Comments.
Nearly every large application has some configuration parameters – site admin email, cache time for different blocks, number of latest news, number of items per search or catalogue page etc.
Continue reading ‘Handling Application Parameters in Yii – Using the Database’ »
Posted by Konstantin Mirin on March 4, 2009 at 11:48 under Databases, Yii.
Tags: DB, extension, framework, tip, trick, Yii
30 Comments.
In Yii you can have all your JS and CSS files together with your PHP. For example, you have some view in /views/user/create.php and you can have your css & js in /views/user/assets/css/ and /views/user/assets/js/. That’s quite convenient when you reuse your views/controllers/components from application to application. But these directories are not accessible from the web, so there is publishing mechanism there. Continue reading ‘Registering group of JS files in Yii’ »
Posted by Konstantin Mirin on March 3, 2009 at 15:27 under Yii.
Tags: framework, tip, trick, Yii
3 Comments.
The history
In December I’ve got a project, that required sophisticated and quite complex DB and that DB was subject to change greatly during first development phase. Before that project I was using Sparx Enterprise Architect both for application design and DB design. But, frankly speaking, it’s not good at databases, especially MySQL. So I decided to pick up a new DB modelling tool.
Continue reading ‘MySQL Workbench – The Database Modeling Tool for MySQL’ »
Posted by Konstantin Mirin on March 1, 2009 at 07:42 under Databases, MySQL, Yii.
Tags: database design, DB, modelling, MySQL, Yii
44 Comments.
Long journey to the framework…
I’m developing web-applications since 2004, I am crazy about nice architecture and first-class CSS+JS frontend. On the server side, I was using my framework, quite basic one. And all my projects were based on it.
In the October 2008 I finished one of my projects using my own framework. Then looked at it critically, then saw description of the Zend Framework (it had so many features, that mine didn’t!), and decided to move from my own development to the better product.
Continue reading ‘Yii – the framework of my choice’ »
Posted by Konstantin Mirin on February 24, 2009 at 08:08 under Frameworks, PHP, Yii.
Tags: choice, framework, Yii
13 Comments.
Yii is a great framework. It gives excellent built-in functionality, but, from my experience, is quite sensitive to the server configuration. Mostly because it relies on the newest technologies.
So here is a list of things to check when you experience strange things Continue reading ‘Yii framework – tips when going production’ »
Posted by Konstantin Mirin on February 20, 2009 at 09:17 under Frameworks, PHP, Yii.
Tags: framework, production, tip, Yii
6 Comments.