Sorted by viewsX
Displaying 561-570 of 757 result(s).

Profiling using XDebug

Created 2 years ago by le_topHow-tos1 comment – viewed 7,789 times – ( +3 ) – version all
A short explication on how to extract profile information for PHP on your server using XDebug and KCacheGrind or WinCacheGrind.

Make theme and layout option in your site

Created 2 years ago by Narender NegiHow-tos0 comments – viewed 7,768 times – ( +1 )
Here i am writing code how to add option of theme change and layout change in your website.
tags: theme, layouts

How to change Migration Table name and use defined prefix.

Created 2 years ago by JorgeeHow-tos1 comment – viewed 7,767 times – ( +3 ) – version 1.1
To accomplish the task of changing Migration table's name, by default tbl_migration, you need to add the following in your ./protected/config/console.php.

embed a view file of the class which implement the CAction.

Created 4 years ago by DavidhhuanTutorials1 comment – viewed 7,738 times – ( +1 / -1 ) – version 1.1
In Yii, we can define an action class and ask the controller to instantiate it. And we always create ourselves actions class in rootPath/protected/extensions, and the view file we called in the actions class always are located in rootPath/protected/views/ControllerNAME or rootPath/themes/ThemeNAME/ControllerNAME, then when we use the same actions class in different controllers, we have to copy it from one controller to the other controller, so we also need the "same" view file work for us, here is an example.
tags: actions, render, views

Yii tinymce结合syntaxHighlighter和syntax

Created 4 years ago by Darwin WenTutorials0 comments – viewed 7,700 times – ( +1 ) – version 1.1
首先我们需要下载好Yii tinymce扩展,放入你的extensions目录下,

Add model validator in Controller

Created 11 months ago by Kostas Apazidis (KonApaz)Tips4 comments – viewed 7,557 times – ( +1 / -1 ) – version 1.1
There are cases that model validators should be depended by controller/action and you couldn't manipulate on the model class or using scenarios in easy way

Running applications with Docker

Created 8 months ago by schmunkTutorials1 comment – viewed 7,549 times – ( +6 ) – version 2.0
When building PHP web applications you usually have to take care about defining and providing a consistent development and production environment for your team. This includes your application packages, PHP-extensions, database servers and often further components such as a mail server or workers.

Use kartik Growl with Yii2 flash messages

Created 6 months ago by skwordenHow-tos1 comment – viewed 7,543 times – ( +6 ) – version 2.0
This is to show you how to use Yii2 flash messages with Kartik Growl (bootstrap notify wrapper).

two or more different collected data in one CGridView

Created about a year ago by Kostas Apazidis (KonApaz)How-tos2 comments – viewed 7,532 times – ( +3 / -1 ) – version 1.1
Assume that you have teachers and students model.

ClientValidation for files (modern browsers)

Created about a year ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 7,526 times – ( +4 ) – version 1.1
There are cases that you want to validate the file format, size, extension etc but how to do that without submit the form ?