Android 4.0
Apple has announced iPhone 4S and iOS 5 update. I need Google to response this news too! Last week, they has announced Galaxy Nexus and Android 4.0. That is the new generation of Google Phone! Moreover, that is the first Android which can use in Tablet and Phone! I hope we can get a Galaxy Nexus soon too!
Reference:
Android Blog
JSON View in Joomla
I have tried to call the json view in the controll, like this:
Code:
Code
$view = &$this->getView('view','json','prefix'); | |
$view->display(); |
But that is still with the default html template, even I have used, json_encode.
I have found out I have to put "format=json" in the request url.
How to pass the value from the controller to a view
I am implementing a MVC component. I wish to pass a value from the controller to the view for displaying. This is very easy. You need to assign the value from the controller.
Code
$view = &$this->getView('viewname','fromat','prefix'); | |
$view->assign('ids','1,2,4'); |
Then in the view:
Code
$ids=$this->get('ids'); |
That is easy.
Not Displaying Template in Joomla Component.
Joomla is using the MVC Pattern. There is another feature. You can override display function in controller to trigger whether the controller will display the template. In the following example, I will not display the template when the form is submitted.
Code
function display(){ | |
$task = JRequest::getVar('task'); | |
if( $task != 'enter' ){ | |
parent::display(); | |
} | |
} |
No Reasons to upgrade to Galaxy S II
I got a Galaxy S. I just upgraded to Android 2.3.4. That is the latest version of Android. That is similar with Galaxy SII. I do not play games. Thus, I do not need a fast CPU. Moreover, I am still happy about the screen quality. That is better to keep my old Galaxy S.