hai teman yii... apa kabar.. kembali lagi bersama catatan saya..
hai teman yii... apa kabar.. kembali lagi bersama catatan saya..
Normally when we want users to download a file, that file is put in a folder under the web application root and the web server does the rest.
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...
My favourite editor is Komodo Edit (free and crossplatform) and I use it for my everyday coding work. Just recently I found out how to make it help me to work with Yii. :) So follow these steps:
PHPIDS é conhecido projeto que pode ser visto em php-ids.org.
PHPIDS is a well known project that can be found in php-ids.org.
Checkboxes have two possible values, true
and false
, but some applications require that the user select one particular value before proceeding. Examples might be:
This had me stumped for a while so I figured it would be nice to share here to avoid others the grief.
Authentication and Authorization is a good tutorial. Among other topics, it describes basic aspects of Yii's RBAC implementation. But however hard I read the tutorial, I couldn't understand how exactly the hierarchy works. I found how to define authorization hierarchy, how business rules are evaluated, how to configure a...
Delploying anything using joomla's framework is quite difficult. The framework don't provide a good MVC structure and the documentation is very poor.
Almost all Yii applications use CMenu at the top of each page to show options available to the user, and many include drop-down components to allow more fine-grained selection.
You have to extend the widget class and configure it for user login widget
I've seen a lot of people asking about the logging facilities in Yii and thought I'd share a nice little class I wrote that provides near real-time logging.
If you tried this extension with success, maybe you thought how to do it without page submission or ajax calls.
I ran into a problem and on irc we worked it out. Since there is a lack on information on filters in genral i thought i'd start sharing all my findings, might be usefull for other people.
Most controls that are rendered by CHtml have an argument called $htmlOptions. This argument is an array that holds the attributes of the HTML element. For example the following code:
Create a folder where to place an Yii app under wordpress folder (mine is "yii')
In this tutorial we will learn how to realize a create interface using a dialog.
All done, now we can call all the actionProvider actions as controllerID/actionPrefix.actionID. Here is the example:
If you are testing your app and use urlManager in your config, sometimes you will find a problem: you want to test your site independing from urlManager settings. in that way you need to extend your WebTestCase class by this method: