charles07
-
Posts
9 -
Joined
-
Last visited
Posts posted by charles07
-
-
got it
Yii::app()->clientScript->registerScriptFile('scripts/myfile.js',CClientScript::POS_END);
- 1
-
how to include js file in controller
ie. some thing like this
public function actionIndex()
{
//load js file here
$this->render('index');
}
requirement is to load js file in a new page
-
thanks Antonio
i knw diff btwn session & cookie, i was referring to deleting session . i wrote it wrong.
regards
charles
-
Yii::app()->session->destroy('sessionName');
this did the trick.
-
thanks edward
i was using yii dummycache
i switched to memcache
still i can't use Yii::app()->cache->set('2', 'name');
i need to call $cache - new Memcache;
$cache['var'] = 'helloworld';
- 1
-
hi
am trying to use
Yii::app()->cache->set('2', 'name'); & access it using echo Yii::app()->cache->get('2');
but it's not printing any result, any idea why ?
regards
charlkes
-
no it's not being recreated, let me try it again
-
hi
am trying to delete the browser cookie PHPSESSID on logout using the following code
unset(Yii::app()->request->cookies['PHPSESSID']);
Yii::app()->request->cookies->clear();
but the cookie stays there even after this, is there any other way to clear these cookies?
regards
charles
Load External Js File From Controller
in The Yii Book
Posted
yup,
i just wanted to load this file in a single page, if i load it in layouts/main.php page file would be loaded in entire site.
regards
charles